Merge lp:~openerp-dev/openobject-addons/trunk-addons9-sale-apa-sale-kbh

bzr revid: jam@tinyerp.com-20120913054400-nw95l9v4ybymh1jp
This commit is contained in:
Jigar Amin - OpenERP
2012-09-13 11:14:00 +05:30
+8
View File
@@ -743,6 +743,14 @@ class product_product(osv.osv):
else:
return super(product_product, self).copy(cr, uid, id, default=default,
context=context)
def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False):
if context is None:
context = {}
if context and context.get('search_default_categ_id', False):
args.append((('categ_id', 'child_of', context['search_default_categ_id'])))
return super(product_product, self).search(cr, uid, args, offset, limit, order, context, count)
product_product()
class product_packaging(osv.osv):