diff --git a/addons/account/account.py b/addons/account/account.py index 5c17b3cd84f..4016e06546c 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -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 []