477
def name_get(self, cr, user, ids, context={}):
479
def name_get(self, cr, user, ids, context=None):
480
484
result = [ (r['id'], str(r['obj_num'])+' - '+r['name']) for r in self.read(cr, user, ids, ['name','obj_num'])]
483
def name_search(self, cr, user, name, args=[], operator='ilike', context={}):
487
def name_search(self, cr, user, name, args=[], operator='ilike', context=None):
485
ids = self.search(cr, user, [('obj_num','=',int(name))]+ args)
491
ids = self.search(cr, user, [('obj_num','=',int(name))]+ args,context=context)