summaryrefslogtreecommitdiff
path: root/addons/portal/wizard
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-10-28 14:01:10 +0100
committerDenis Ledoux <dle@odoo.com>2015-10-28 14:01:10 +0100
commitdcd8d65fd1c9316f202a34203497ddd937d64244 (patch)
tree62520ac606847649ba4ca2cd44343499ecdfdabb /addons/portal/wizard
parentc8d6b3663277b10e7f5479dbdc483b9ffbe607b6 (diff)
parent6a306a03beceec46c4b9a4d5890212789b6d8c3b (diff)
[MERGE] forward port of branch saas-6 up to 6a306a03beceec46c4b9a4d5890212789b6d8c3b
Diffstat (limited to 'addons/portal/wizard')
-rw-r--r--addons/portal/wizard/portal_wizard.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/portal/wizard/portal_wizard.py b/addons/portal/wizard/portal_wizard.py
index 74bbc7d1237..a48d730ad03 100644
--- a/addons/portal/wizard/portal_wizard.py
+++ b/addons/portal/wizard/portal_wizard.py
@@ -140,8 +140,8 @@ class wizard_user(osv.osv_memory):
wizard_user.user_id.write({'active': True, 'groups_id': [(4, portal.id)]})
# prepare for the signup process
wizard_user.user_id.partner_id.signup_prepare()
+ self._send_email(cr, uid, wizard_user.id, context)
wizard_user.refresh()
- self._send_email(cr, uid, wizard_user.id, context)
else:
# remove the user (if it exists) from the portal group
if wizard_user.user_id and (portal in wizard_user.user_id.groups_id):