[FIX] users: add action_get method on res users (not opened user->preference)
bzr revid: mra@tinyerp.com-20100113062506-ui30jzmmz60tabkl
This commit is contained in:
parent
e5510865c2
commit
288fc76f29
|
@ -255,6 +255,11 @@ class users(osv.osv):
|
|||
return False
|
||||
return True
|
||||
|
||||
def action_get(self, cr, uid, context={}):
|
||||
dataobj = self.pool.get('ir.model.data')
|
||||
data_id = dataobj._get_id(cr, 1, 'base', 'action_res_users_my')
|
||||
return dataobj.browse(cr, uid, data_id, context).res_id
|
||||
|
||||
_constraints = [
|
||||
(_check_company, 'This user can not connect using this company !', ['company_id']),
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue