'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
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):