make the field users.portal_id always readonly
bzr revid: rco@openerp.com-20110330073659-conld7ey2r0p4wvs
This commit is contained in:
@@ -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')),
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user