[IMP] website_sale: remove product 'Service' from the shop list of products
bzr revid: chm@openerp.com-20131114113845-xgs79iq2eq2bqgmm
This commit is contained in:
parent
3ef7c80aa6
commit
62f00f6941
|
@ -324,6 +324,10 @@ class Ecommerce(http.Controller):
|
||||||
|
|
||||||
domain = [("sale_ok", "=", True)]
|
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"):
|
if post.get("search"):
|
||||||
domain += ['|', '|', '|',
|
domain += ['|', '|', '|',
|
||||||
('name', 'ilike', "%%%s%%" % post.get("search")),
|
('name', 'ilike', "%%%s%%" % post.get("search")),
|
||||||
|
|
Loading…
Reference in New Issue