From 92be0df468c3f467e078be18a13ab1cf5215f376 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Wed, 19 Apr 2017 15:53:07 +0200 Subject: [PATCH] [FIX] stock: display variant fields on variant form The structure of the product.{product,template} form is the following: product.product_template_form_view* (both) |-- product.product_template_only_form_view* (template) | \-- stock.product_template_form_view_procurement_button | |-- product.product_normal_form_view* (product) | \-- stock.product_form_view_procurement_button | \-- stock.view_template_property_form (both) Previous view was adding weight, volume fields on both view with a attrs that applies only to the product.template (display only if no template). This means that the weight was not displayed on product.product form if opened from a Many2one (using the default product.product view) while the attrs should not hide it. Closes #16541 Fixes #16428 --- addons/stock/views/product_views.xml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/addons/stock/views/product_views.xml b/addons/stock/views/product_views.xml index 31a85012856..822da3067ae 100644 --- a/addons/stock/views/product_views.xml +++ b/addons/stock/views/product_views.xml @@ -118,6 +118,7 @@ + product.template.stock.property.form.inherit product.template @@ -131,13 +132,13 @@ -