[FIX] Account : name_search() of account.tax.code overridden for better search
bzr revid: jma@tinyerp.com-20100512105842-t9o7woyqax27qqmp
This commit is contained in:
@@ -1294,6 +1294,15 @@ class account_tax_code(osv.osv):
|
||||
}
|
||||
|
||||
|
||||
def name_search(self, cr, user, name, args=None, operator='ilike', context=None, limit=80):
|
||||
if not args:
|
||||
args = []
|
||||
if context is None:
|
||||
context = {}
|
||||
ids = self.search(cr, user, ['|',('name',operator,name),('code',operator,name)] + args, limit=limit, context=context)
|
||||
return self.name_get(cr, user, ids, context)
|
||||
|
||||
|
||||
def name_get(self, cr, uid, ids, context=None):
|
||||
if not len(ids):
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user