add partner_email_sync_portal_login

This commit is contained in:
Luis 2026-10-06 12:10:26 +02:00
parent 3c5809774f
commit 3be3de173e
11 changed files with 388 additions and 0 deletions

View file

@ -0,0 +1 @@
from . import portal_wizard

View file

@ -0,0 +1,14 @@
# Copyright 2026 Criptomart
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
from odoo import models
class PortalWizardUser(models.TransientModel):
_inherit = "portal.wizard.user"
def _update_partner_email(self):
# The portal wizard already sends its own invitation email
return super(
PortalWizardUser, self.with_context(portal_login_sync_no_mail=True)
)._update_partner_email()