From 3befe66f432d02178512ba52c6d9fdfc314e9ff9 Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Mon, 22 Jun 2015 11:46:12 +0200 Subject: [PATCH] [IMP] product : Improve variant usability - Add an option in the General Settings : Use product variant. - If this option is disabled : don't show any reference to variants - When going on the product template view, and clinking on the stat button under the tab Variants, the form view should display only the information related to the variant - Fields moves from product_template to product_product : weight, volume, cost price, - DO NOT display these fields on the product_template if there are more than 1 variants. - In product variant view, set some fields readonly and add a link to edit it from Template. --- addons/base_setup/res_config_view.xml | 2 +- addons/mrp/mrp_view.xml | 6 +- addons/product/pricelist_view.xml | 4 +- addons/product/product.py | 58 +++++++-- addons/product/product_view.xml | 129 +++++++++++++++---- addons/product/res_config.py | 3 + addons/product/res_config_view.xml | 9 ++ addons/product/security/product_security.xml | 5 + addons/report_intrastat/report_intrastat.py | 4 +- addons/stock_account/product_view.xml | 4 +- 10 files changed, 180 insertions(+), 44 deletions(-) diff --git a/addons/base_setup/res_config_view.xml b/addons/base_setup/res_config_view.xml index d9855c93a80..01410131d93 100644 --- a/addons/base_setup/res_config_view.xml +++ b/addons/base_setup/res_config_view.xml @@ -29,7 +29,7 @@ -