From 7daccf507424617412cf4b8fc3b4e1ed2fc89171 Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Wed, 20 Feb 2013 09:27:07 +0100 Subject: [PATCH] [IMP] product: re-enabled the multi variant feature bzr revid: qdp-launchpad@openerp.com-20130220082707-x6r4pwcscmymkrz2 --- addons/product/product_view.xml | 44 +++++++++++++++++++++++++------- addons/sale/res_config.py | 3 +++ addons/sale/res_config_view.xml | 4 +++ addons/stock/res_config.py | 3 --- addons/stock/res_config_view.xml | 4 --- 5 files changed, 42 insertions(+), 16 deletions(-) diff --git a/addons/product/product_view.xml b/addons/product/product_view.xml index 3e360594b19..6c82b4a2027 100644 --- a/addons/product/product_view.xml +++ b/addons/product/product_view.xml @@ -38,7 +38,6 @@ - @@ -90,11 +89,6 @@ - - - - - @@ -615,6 +609,7 @@ + product.variant.form product.product @@ -623,7 +618,7 @@ - + @@ -631,22 +626,53 @@ - product.variant.tree product.product - + + + + + + Product Variants + ir.actions.act_window + + product.product + form + tree,form,kanban + + + +

+ Click to define a new variant of product. +

+
+
+ + + tree + + + + + + form + + + + + product.template.product.tree product.template diff --git a/addons/sale/res_config.py b/addons/sale/res_config.py index a693fd11024..9a9f093a7b4 100644 --- a/addons/sale/res_config.py +++ b/addons/sale/res_config.py @@ -55,6 +55,9 @@ Example: 10% for retailers, promotion of 5 EUR on this product, etc."""), 'group_discount_per_so_line': fields.boolean("Allow setting a discount on the sales order lines", implied_group='sale.group_discount_per_so_line', help="Allows you to apply some discount per sales order line."), + 'group_product_variant': fields.boolean("Support multiple variants per products ", + implied_group='product.group_product_variant', + help="""Allow to manage several variants per product. As an example, if you sell T-Shirts, for the same "Linux T-Shirt", you may have variants on sizes or colors; S, M, L, XL, XXL."""), 'module_warning': fields.boolean("Allow configuring alerts by customer or products", help="""Allow to configure notification on products and trigger them when a user wants to sale a given product or a given customer. Example: Product: this product is deprecated, do not purchase more than 5. diff --git a/addons/sale/res_config_view.xml b/addons/sale/res_config_view.xml index b150fb276b7..9d5b5d071fc 100644 --- a/addons/sale/res_config_view.xml +++ b/addons/sale/res_config_view.xml @@ -69,6 +69,10 @@