From ea20effa7e9a2aea84867690af5543fa61a44197 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Wed, 1 Feb 2017 10:41:35 +0100 Subject: [PATCH] Fine tuning of the sale_layout_category_product module --- sale_layout_category_product/product.py | 2 +- sale_layout_category_product/product_view.xml | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) 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 @@ - + - +