[IMP] website_sale: remove product 'Service' from the shop list of products

bzr revid: chm@openerp.com-20131114113845-xgs79iq2eq2bqgmm
This commit is contained in:
Christophe Matthieu 2013-11-14 12:38:45 +01:00
parent 3ef7c80aa6
commit 62f00f6941
1 changed files with 4 additions and 0 deletions

View File

@ -324,6 +324,10 @@ class Ecommerce(http.Controller):
domain = [("sale_ok", "=", True)]
# remove product_product_consultant from ecommerce editable mode, this product never be publish
ref = request.registry.get('ir.model.data').get_object_reference(request.cr, SUPERUSER_ID, 'product', 'product_product_consultant')
domain += [("id", "!=", ref[1])]
if post.get("search"):
domain += ['|', '|', '|',
('name', 'ilike', "%%%s%%" % post.get("search")),