[FIX]portal: previous commit was wrong. I was distracted. auth_signup do not depends on share, portal is, so moving the values['share'] = true to portal module

bzr revid: dle@openerp.com-20131001173020-kv8upxloazihz5uh
This commit is contained in:
Denis Ledoux
2013-10-01 19:30:20 +02:00
parent 882184a80f
commit 7311b698a2
2 changed files with 6 additions and 1 deletions
-1
View File
@@ -227,7 +227,6 @@ class res_users(osv.Model):
# create a copy of the template user (attached to a specific partner_id if given)
values['active'] = True
values['share'] = True
return self.copy(cr, uid, template_user_id, values, context=context)
def reset_password(self, cr, uid, login, context=None):
+6
View File
@@ -31,3 +31,9 @@ class portal(osv.osv):
'is_portal': fields.boolean('Portal', help="If checked, this group is usable as a portal."),
}
class res_users(osv.Model):
_inherit = 'res.users'
def _signup_create_user(self, cr, uid, values, context=None):
values['share'] = True
return super(res_users, self)._signup_create_user(cr, uid, values, context=context)