[FIX] auth_signup: refresh is no longer needed with the new api
authorDenis Ledoux <dle@odoo.com>
Mon, 20 Oct 2014 15:06:30 +0000 (17:06 +0200)
committerDenis Ledoux <dle@odoo.com>
Mon, 20 Oct 2014 15:06:30 +0000 (17:06 +0200)
Besides, it leads to a invalidation of the cache, which is not needed here.

addons/auth_signup/res_users.py

index 97bcea5..620298c 100644 (file)
@@ -64,7 +64,6 @@ class res_partner(osv.Model):
             # when required, make sure the partner has a valid signup token
             if context.get('signup_valid') and not partner.user_ids:
                 self.signup_prepare(cr, uid, [partner.id], context=context)
-                partner.refresh()
 
             route = 'login'
             # the parameters to encode for the query