[IMP]put domainin ecommerce_get_product_domain method of website to restrict the product_template which has not variants(ecommerce view).

bzr revid: dka@tinyerp.com-20140116093347-tz9mn24r01xbfdp0
This commit is contained in:
Darshan Kalola (OpenERP)
2014-01-16 15:03:47 +05:30
parent 79778888e7
commit 27da32873e
+1 -1
View File
@@ -145,4 +145,4 @@ class Website(orm.Model):
return super(Website, self).preprocess_request(cr, uid, ids, request, context=None)
def ecommerce_get_product_domain(self):
return [("sale_ok", "=", True)]
return [("sale_ok", "=", True),("product_variant_ids","!=",False)]