Skip to content

[19.0][MIG] portal_sale_personal_data_only: Migration to version 19.0#4166

Open
cristina-hidalgo-tecnativa wants to merge 19 commits intoOCA:19.0from
Tecnativa:19.0-mig-portal_sale_personal_data_only
Open

[19.0][MIG] portal_sale_personal_data_only: Migration to version 19.0#4166
cristina-hidalgo-tecnativa wants to merge 19 commits intoOCA:19.0from
Tecnativa:19.0-mig-portal_sale_personal_data_only

Conversation

@cristina-hidalgo-tecnativa
Copy link
Copy Markdown
Contributor

  • Changed groups_idgroup_ids in user creation (Odoo 19 standard field rename)
  • Added explicit message_subscribe() calls in tests
  • In Odoo 19, partners are no longer automatically added as followers on sale order creation. Partners must be explicitly subscribed to be visible to portal users.
  • Added .sudo() in sale order creation within tests cause portal users don't have create permissions for sale orders

@Tecnativa TT58680
@christian-ramos-tecnativa @pedrobaeza

@cristina-hidalgo-tecnativa cristina-hidalgo-tecnativa force-pushed the 19.0-mig-portal_sale_personal_data_only branch from 3285818 to 836ecff Compare February 20, 2026 19:57
@pedrobaeza
Copy link
Copy Markdown
Member

/ocabot migration portal_sale_personal_data_only

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Feb 21, 2026
Comment thread portal_sale_personal_data_only/tests/test_partner_access.py Outdated
Copy link
Copy Markdown

@alexey-pelykh alexey-pelykh left a comment

Choose a reason for hiding this comment

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

Thanks for the migration, @cristina-hidalgo-tecnativa!

Looks good. The 19.0 adaptations are clean and correct:

  • groups_id -> group_ids rename: standard Odoo 19 change
  • .sudo() on Form(self.env["sale.order"].sudo()): needed since portal users don't have sale order create rights
  • Explicit message_subscribe(): properly handles the Odoo 19 change where partners are no longer auto-subscribed as followers on SO creation

Hooks, security rules, and manifest are all in order. Tests pass on both Odoo and OCB. LGTM.

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.