From c456d5f1a71c35d223dd208b10ab9025bdd3f491 Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Tue, 20 Oct 2015 14:26:09 +0200 Subject: [PATCH] [FIX] portal: access management, do not re-send emails When confirming the portal access management wizard, the invitation email was sent to users already having access to the portal, while it should be sent only to the users for who the access has just been granted. opw-650357 --- addons/portal/wizard/portal_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/portal/wizard/portal_wizard.py b/addons/portal/wizard/portal_wizard.py index a687c224778..2c7f7162964 100644 --- a/addons/portal/wizard/portal_wizard.py +++ b/addons/portal/wizard/portal_wizard.py @@ -175,8 +175,8 @@ class wizard_user(osv.osv_memory): user.write({'active': True, 'groups_id': [(4, portal.id)]}) # prepare for the signup process user.partner_id.signup_prepare() + self._send_email(cr, uid, wizard_user, context) wizard_user.refresh() - self._send_email(cr, uid, wizard_user, context) else: # remove the user (if it exists) from the portal group if user and (portal in user.groups_id):