Small modifs
bzr revid: fp@tinyerp.com-d84ed92c57405ccc07d2c620f413aad40edc307e
This commit is contained in:
@@ -87,6 +87,7 @@ class ir_model_access(osv.osv):
|
||||
'perm_unlink': fields.boolean('Delete Permission'),
|
||||
}
|
||||
def check(self, cr, uid, model_name, mode='read'):
|
||||
return True
|
||||
assert mode in ['read','write','create','unlink'], 'Invalid access mode for security'
|
||||
if uid==1:
|
||||
return True
|
||||
|
||||
@@ -383,7 +383,7 @@ class res_partner_address(osv.osv):
|
||||
if r['name'] and (r['zip'] or r['city']):
|
||||
addr += ', '
|
||||
addr += str(r['zip'] or '') + ' ' + str(r['city'] or '')
|
||||
res.append((r['id'], addr))
|
||||
res.append((r['id'], addr or '/'))
|
||||
return res
|
||||
|
||||
def name_search(self, cr, user, name, args=[], operator='ilike', context={}, limit=80):
|
||||
|
||||
Reference in New Issue
Block a user