diff options
| author | Denis Vermylen (dve) <dve@odoo.com> | 2016-09-30 11:49:10 +0200 |
|---|---|---|
| committer | Denis Vermylen (dve) <dve@odoo.com> | 2016-09-30 11:49:10 +0200 |
| commit | 88977a90e7a7deb0756a499ca00a7b18c19dc600 (patch) | |
| tree | c4bf09333144a11efbc36e190d40e6a4ad2bc5b0 /addons | |
| parent | 0d65c27dea4854e305ec0a2624f9267a0b272a63 (diff) | |
[FIX] portal: fix new api forward-port migration
_create_user was called on self instead of wizard_user
(for wizard_user in self...)
This created an ensure_one crash later on if more than one record in self.
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/portal/wizard/portal_wizard.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/portal/wizard/portal_wizard.py b/addons/portal/wizard/portal_wizard.py index 18e3d62ece5..f3c645d2eb9 100644 --- a/addons/portal/wizard/portal_wizard.py +++ b/addons/portal/wizard/portal_wizard.py @@ -138,7 +138,7 @@ class PortalWizardUser(models.TransientModel): # create a user if necessary, and make sure it is in the portal group if not user: company_id = wizard_user.partner_id.company_id.id - user_portal = self.sudo().with_context(company_id=company_id)._create_user() + user_portal = wizard_user.sudo().with_context(company_id=company_id)._create_user() else: user_portal = user wizard_user.write({'user_id': user_portal.id}) |
