[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: b64e2f93465f16112d719ed0a28c82051066dbf3 Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user