[FIX] forgot to remove a field
bzr revid: abo@openerp.com-20120928171139-v9m5a2rahqnhd8t1
This commit is contained in:
@@ -195,7 +195,7 @@ class res_company(osv.osv):
|
||||
]
|
||||
|
||||
ids = proxy.search(cr, uid, args, context=context)
|
||||
user = self.pool.get('res.users').browse(cr, SUPERUSER_ID, uid, ['company_id'], context=context)
|
||||
user = self.pool.get('res.users').browse(cr, SUPERUSER_ID, uid, context=context)
|
||||
for rule in proxy.browse(cr, uid, ids, context):
|
||||
if eval(rule.expression, {'context': context, 'user': user}):
|
||||
return rule.company_dest_id.id
|
||||
|
||||
Reference in New Issue
Block a user