[IMP]mrp : improve litle bit code
bzr revid: mma@tinyerp.com-20121017095202-eg3pedyqgjk0x22i
This commit is contained in:
+1
-1
@@ -154,7 +154,7 @@ class mrp_bom(osv.osv):
|
||||
if context is None:
|
||||
context = {}
|
||||
ids = self.search(cr, user, [('code', '=', name)]+ args, limit=limit, context=context)
|
||||
ids += self.search(cr, user, [('product_id.name',operator,name)] + args, limit=limit, context=context)
|
||||
ids += self.search(cr, user, [('product_id',operator,name)] + args, limit=limit, context=context)
|
||||
return self.name_get(cr, user, ids, context)
|
||||
|
||||
def _child_compute(self, cr, uid, ids, name, arg, context=None):
|
||||
|
||||
Reference in New Issue
Block a user