[FIX] auth_signup: no alias for signuped users
bzr revid: chs@openerp.com-20131129130958-e89ex1psthcckcgt
This commit is contained in:
parent
7c9fd1f2dd
commit
06e0b3045a
|
@ -11,6 +11,8 @@
|
||||||
<field name="active" eval="False"/>
|
<field name="active" eval="False"/>
|
||||||
<!-- Avoid auto-including this user in any default group, just like a typical portal member -->
|
<!-- Avoid auto-including this user in any default group, just like a typical portal member -->
|
||||||
<field name="groups_id" eval="[(5,)]"/>
|
<field name="groups_id" eval="[(5,)]"/>
|
||||||
|
<!-- no alias for portal users -->
|
||||||
|
<field name="alias_name" eval="False"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="default_template_user_config" model="ir.config_parameter">
|
<record id="default_template_user_config" model="ir.config_parameter">
|
||||||
|
|
|
@ -234,6 +234,8 @@ class res_users(osv.Model):
|
||||||
|
|
||||||
# create a copy of the template user (attached to a specific partner_id if given)
|
# create a copy of the template user (attached to a specific partner_id if given)
|
||||||
values['active'] = True
|
values['active'] = True
|
||||||
|
if 'alias_name' not in values: # allow behavior change via inheritance (like using the name)
|
||||||
|
values['alias_name'] = False
|
||||||
context = dict(context or {}, no_reset_password=True)
|
context = dict(context or {}, no_reset_password=True)
|
||||||
return self.copy(cr, uid, template_user_id, values, context=context)
|
return self.copy(cr, uid, template_user_id, values, context=context)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue