Skip to content

[ADD] portal_ux: grant portal access to all contacts in one click - #418

Closed
gal-adhoc wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-t-70085-gal
Closed

[ADD] portal_ux: grant portal access to all contacts in one click#418
gal-adhoc wants to merge 1 commit into
ingadhoc:19.0from
adhoc-dev:19.0-t-70085-gal

Conversation

@gal-adhoc

Copy link
Copy Markdown
Contributor

Summary

Adds a new horizontal module portal_ux that adds a "Grant Access to All" button to the native portal access wizard (portal.wizard). It grants portal access to every contact listed in the wizard with a valid email in a single action, instead of requiring "Grant Access" to be clicked row by row.

  • New method action_grant_access_all() on portal.wizard, iterating user_ids and delegating to the existing per-row action_grant_access() on portal.wizard.user (so any override of that method from other installed modules keeps applying).
  • New view inheriting portal.wizard_view, adding the button after welcome_message.

This generalizes functionality that previously existed only inside the academic module (vertical, education-specific), so it becomes available on any database. academic migration is in a follow-up PR on ingadhoc/odoo-academic.

Test plan

  • Install portal_ux on a clean 19.0 database.
  • Select several res.partner records with valid emails → Action → "Grant portal access".
  • Click "Grant Access to All" → verify all contacts with email_state == 'ok' get portal access in one pass; invalid/duplicate emails are skipped without error.
  • Unit tests in portal_ux/tests/test_portal_wizard.py pass.

@roboadhoc

Copy link
Copy Markdown
Contributor

Pull request status dashboard

@gal-adhoc
gal-adhoc force-pushed the 19.0-t-70085-gal branch 2 times, most recently from 30a8421 to 895321b Compare July 21, 2026 14:45
Adds a "Grant Access to All" button to the portal access wizard
(portal.wizard) that grants portal access to every contact listed in
the wizard with a valid email in a single action, instead of having
to click "Grant Access" row by row.
@lef-adhoc

Copy link
Copy Markdown
Contributor

@roboadhoc r+ nobump

@roboadhoc

Copy link
Copy Markdown
Contributor

@gal-adhoc @lef-adhoc linked pull request(s) ingadhoc/odoo-academic#431 not ready. Linked PRs are not staged until all of them are ready.

roboadhoc pushed a commit to ingadhoc/odoo-academic that referenced this pull request Jul 22, 2026
The generic "Grant Access to All" button on the portal wizard was
academic-specific but had no academic logic in it. It now lives in
the horizontal module portal_ux, available on any database. academic
depends on portal_ux to keep the button; the partner_type-based group
assignment override on portal.wizard.user is untouched and keeps
applying through polymorphism.

closes #431

Related: ingadhoc/miscellaneous#418
Signed-off-by: Nicolas Mac Rouillon (ADV) <nmr@adhoc.inc>
@roboadhoc roboadhoc closed this in db84c57 Jul 22, 2026
@roboadhoc
roboadhoc deleted the 19.0-t-70085-gal branch July 22, 2026 13:45
@roboadhoc roboadhoc added the 18.1 label Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants