[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:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user