Small modifs

bzr revid: fp@tinyerp.com-d84ed92c57405ccc07d2c620f413aad40edc307e
This commit is contained in:
Fabien Pinckaers
2007-05-25 14:56:25 +00:00
parent 867f2fc877
commit 8b5055e98e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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
+1 -1
View File
@@ -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):