From b3ffcdc7ea1c88358b55589ea24a4d647aa3b15c Mon Sep 17 00:00:00 2001 From: Pierre Masereel Date: Tue, 27 Dec 2016 16:29:31 +0100 Subject: [PATCH] [IMP] product: improve product packagings management First of all we restrict the domain, of the action that shows product packagings, to only show the packagings having a 'product_id' which means that they are 'Product packagings' and not 'delivery' or 'stock' packagings. We also add the field product packaging to the 'product.packaging' form view to easily create product packagings from the product packaging tree view. --- addons/product/views/product_views.xml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/addons/product/views/product_views.xml b/addons/product/views/product_views.xml index db8786e77fb..3bbc078c6cf 100644 --- a/addons/product/views/product_views.xml +++ b/addons/product/views/product_views.xml @@ -55,7 +55,8 @@ options="{'no_create': True}"/> - + + @@ -64,7 +65,7 @@ colspan="4" attrs="{'invisible':['|', ('type', 'not in', ['product', 'consu']), ('product_variant_count', '>', 1)]}" groups="product.group_stock_packaging"> - + @@ -182,6 +183,7 @@
+