diff --git a/sale_layout_category_product/product.py b/sale_layout_category_product/product.py index eff6163..092e0b3 100644 --- a/sale_layout_category_product/product.py +++ b/sale_layout_category_product/product.py @@ -47,7 +47,7 @@ class SaleLayoutCategory(models.Model): string='Products') product_categ_ids = fields.One2many( 'product.category', 'layout_category_id', - string='Product Categories') + string='Product Categories', domain=[('type', '!=', 'view')]) class SaleOrderLine(models.Model): diff --git a/sale_layout_category_product/product_view.xml b/sale_layout_category_product/product_view.xml index 8bbf9c1..82d072e 100644 --- a/sale_layout_category_product/product_view.xml +++ b/sale_layout_category_product/product_view.xml @@ -26,13 +26,12 @@ - + - sale_layoutcategory_product.form.view @@ -41,10 +40,10 @@ - + - +