account,account_report,base,product,scrum,stock,kernel: fix name_search
[odoo/odoo.git] / bin / osv / orm.py
index 9915888..07866ce 100644 (file)
@@ -1698,7 +1698,7 @@ class orm(object):
                args=args[:]
                if name:
                        args += [(self._rec_name,operator,name)]
-               ids = self.search(cr, user, args, limit=limit)
+               ids = self.search(cr, user, args, limit=limit, context=context)
                res = self.name_get(cr, user, ids, context)
                return res