make the field users.portal_id always readonly

bzr revid: rco@openerp.com-20110330073659-conld7ey2r0p4wvs
This commit is contained in:
Raphael Collet
2011-03-30 09:36:59 +02:00
parent 763ea64342
commit 4153aecb1a
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -173,7 +173,8 @@ class users(osv.osv):
_name = 'res.users'
_inherit = 'res.users'
_columns = {
'portal_id': fields.many2one('res.portal', string='Portal',
'portal_id': fields.many2one('res.portal', readonly=True,
string='Portal',
help=_('If given, the portal defines customized menu and access rules')),
}
+1 -1
View File
@@ -66,7 +66,7 @@ added to (resp. removed from) the portal's users.
<field name="arch" type="xml">
<page string="User" position="after">
<page string="Portal">
<field name="portal_id" readonly="1"/>
<field name="portal_id"/>
</page>
</page>
</field>