Skip to content

[19.0][MIG] portal_invitation_by_website: Migration to 19.0 - #1216

Merged
OCA-git-bot merged 9 commits into
OCA:19.0from
Tecnativa:19.0-MIG-portal_invitation_by_website
Aug 24, 2026
Merged

[19.0][MIG] portal_invitation_by_website: Migration to 19.0#1216
OCA-git-bot merged 9 commits into
OCA:19.0from
Tecnativa:19.0-MIG-portal_invitation_by_website

Conversation

@CarlosRoca13

Copy link
Copy Markdown
Contributor

Currently translated at 100.0% (6 of 6 strings)

Translation: website-17.0/website-17.0-portal_invitation_by_website
Translate-URL: https://translation.odoo-community.org/projects/website-17-0/website-17-0-portal_invitation_by_website/it/
…tation footer

Use the website domain in the portal invitation email footer instead of
always using the company website.

A single company can manage multiple websites, so using the company
website may display the default website URL instead of the website from
which the portal invitation is being sent.

TT61856
Currently translated at 100.0% (11 of 11 strings)

Translation: website-17.0/website-17.0-portal_invitation_by_website
Translate-URL: https://translation.odoo-community.org/projects/website-17-0/website-17-0-portal_invitation_by_website/it/
@OCA-git-bot OCA-git-bot added series:19.0 mod:portal_invitation_by_website Module portal_invitation_by_website labels Aug 20, 2026
@CarlosRoca13
CarlosRoca13 force-pushed the 19.0-MIG-portal_invitation_by_website branch from dc9fac7 to 5b37819 Compare August 20, 2026 12:03
@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot migration portal_invitation_by_website

Isn't the new core feature "Share users between websites" (unchecking it) aiding with this showing the possible websites in the invitation wizard, or this is still needed?

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Aug 20, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Aug 20, 2026
14 tasks
@CarlosRoca13

Copy link
Copy Markdown
Contributor Author

The "Shared Customer Accounts" setting (website.specific_user_account) doesn't cover this. It only acts on the frontend signup: res.users._signup_create_user() stamps website_id = current website when a visitor registers from that website (and only when there's a request).

What core adds to the wizard (https://github.com/odoo/odoo/blob/638f9477ee7a6c301e79e65e33816f700520f535/addons/website/wizard/portal_wizard.py) is just reading partner_id.website_id to compute if there is any duplicated email, but there is no website selector anywhere in the wizard. So with plain core you have to open each contact form and set its Website field before launching the wizard; once that's set, the signup URL already points to the right domain thanks to get_base_url().

image

And I think that the powerfull feature that this module provides is choosing the website from the wizard itself.

image

@pedrobaeza

Copy link
Copy Markdown
Member

Perfect, thanks for the explanation. Then it makes sense to continue having this module.

"website": "https://github.com/OCA/website",
"license": "AGPL-3",
"category": "Website",
"depends": ["auth_signup", "portal", "website"],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"depends": ["auth_signup", "portal", "website"],
"depends": ["portal", "website"],

https://github.com/odoo/odoo/blob/57c7c9938725d392a6f2cd6c89a861d2a8385c44/addons/portal/__manifest__.py#L17

@CarlosRoca13
CarlosRoca13 force-pushed the 19.0-MIG-portal_invitation_by_website branch from 5b37819 to de64aea Compare August 24, 2026 08:23
@CarlosRoca13

Copy link
Copy Markdown
Contributor Author

Change done @pilarvargas-tecnativa

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code reviewed and tested locally and on runbot, LGTM!

@pedrobaeza

Copy link
Copy Markdown
Member

/ocabot merge nobump

@OCA-git-bot

Copy link
Copy Markdown
Contributor

On my way to merge this fine PR!
Prepared branch 19.0-ocabot-merge-pr-1216-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot
OCA-git-bot merged commit 706d30f into OCA:19.0 Aug 24, 2026
5 of 7 checks passed
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at f74af4a. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza
pedrobaeza deleted the 19.0-MIG-portal_invitation_by_website branch August 24, 2026 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants