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 @@