Skip to content
Snippets Groups Projects
Commit b27693d9 authored by Victor Feyens's avatar Victor Feyens Committed by fw-bot
Browse files

[FIX] product: disable variants duplication.

The product copy was fixed in https://github.com/odoo/odoo/pull/38303


but the result is still not intuitive.

You could duplicate one of the multiple variants of a template and see
another variant form opened than the one you just duplicated.

closes odoo/odoo#38739

X-original-commit: b64e2f93
Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
parent 7ecb8d3f
No related branches found
No related tags found
No related merge requests found
......@@ -214,7 +214,7 @@
<field name="model">product.product</field>
<field name="mode">primary</field>
<field name="arch" type="xml">
<form string="Variant Information">
<form string="Variant Information" duplicate="false">
<sheet>
<div class="oe_button_box" name="button_box"/>
<widget name="web_ribbon" text="Archived" bg_color="bg-danger" attrs="{'invisible': [('active', '=', True)]}"/>
......@@ -298,7 +298,7 @@
<field name="model">product.product</field>
<field eval="7" name="priority"/>
<field name="arch" type="xml">
<tree string="Product Variants" multi_edit="1">
<tree string="Product Variants" multi_edit="1" duplicate="false">
<field name="default_code" optional="show" readonly="1"/>
<field name="barcode" optional="hide" readonly="1"/>
<field name="name" readonly="1"/>
......@@ -325,6 +325,7 @@
<field name="arch" type="xml">
<form position="attributes">
<attribute name="string">Product Variant</attribute>
<attribute name="duplicate">false</attribute>
</form>
<field name="type" position="after">
<field name="default_code"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment