[FIX]portal: add share flag to portaltemplate user and portal demo user

bzr revid: dle@openerp.com-20131001155901-3hmb81sw6yvjmuav
This commit is contained in:
Denis Ledoux 2013-10-01 17:59:01 +02:00
parent bc9bfe0f24
commit 882184a80f
3 changed files with 8 additions and 0 deletions

View File

@ -227,6 +227,7 @@ 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):

View File

@ -103,4 +103,10 @@
</record>
</data>
<data>
<record id="auth_signup.default_template_user" model="res.users">
<field name="share" eval="True"/>
</record>
</data>
</openerp>

View File

@ -18,6 +18,7 @@
Mr Demo Portal</field>
<!-- Avoid auto-including this user in any default group -->
<field name="groups_id" eval="[(5,)]"/>
<field name="share" eval="True" />
</record>
<!-- Add the demo user to the portal (and therefore to the portal member group) -->