[FIX]portal: add share flag to portaltemplate user and portal demo user
bzr revid: dle@openerp.com-20131001155901-3hmb81sw6yvjmuav
This commit is contained in:
parent
bc9bfe0f24
commit
882184a80f
|
@ -227,6 +227,7 @@ 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
|
||||||
|
values['share'] = True
|
||||||
return self.copy(cr, uid, template_user_id, values, context=context)
|
return self.copy(cr, uid, template_user_id, values, context=context)
|
||||||
|
|
||||||
def reset_password(self, cr, uid, login, context=None):
|
def reset_password(self, cr, uid, login, context=None):
|
||||||
|
|
|
@ -103,4 +103,10 @@
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
|
<data>
|
||||||
|
<record id="auth_signup.default_template_user" model="res.users">
|
||||||
|
<field name="share" eval="True"/>
|
||||||
|
</record>
|
||||||
|
</data>
|
||||||
</openerp>
|
</openerp>
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
Mr Demo Portal</field>
|
Mr Demo Portal</field>
|
||||||
<!-- Avoid auto-including this user in any default group -->
|
<!-- Avoid auto-including this user in any default group -->
|
||||||
<field name="groups_id" eval="[(5,)]"/>
|
<field name="groups_id" eval="[(5,)]"/>
|
||||||
|
<field name="share" eval="True" />
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<!-- Add the demo user to the portal (and therefore to the portal member group) -->
|
<!-- Add the demo user to the portal (and therefore to the portal member group) -->
|
||||||
|
|
Loading…
Reference in New Issue