[MIG] base_product_merge: Migration to 17.0

This commit is contained in:
FernandoRomera
2024-08-06 09:40:10 +02:00
parent d9bb2f012c
commit 891aa6f4b0
3 changed files with 6 additions and 8 deletions

View File

@@ -4,7 +4,7 @@
{
"name": "Base Products Merge",
"summary": "Merge duplicate products",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"author": "ForgeFlow, " "Odoo Community Association (OCA)",

View File

@@ -7,7 +7,7 @@ from odoo.tests.common import TransactionCase
class TestBaseProductMerge(TransactionCase):
@classmethod
def setUpClass(cls):
super(TestBaseProductMerge, cls).setUpClass()
super().setUpClass()
cls.product_model = cls.env["product.product"]
cls.base_product_merge_model = cls.env["base.product.merge"]

View File

@@ -15,12 +15,12 @@
products from this list to avoid merging them.
</p>
<field name="ptype" invisible="1" />
<group attrs="{'invisible' :[('ptype' ,'!=' ,'product.product' )]}">
<group invisible="ptype != 'product.product'">
<group>
<field
name="dst_product_id"
domain="[('id', 'in', product_ids)]"
attrs="{'required' :[('ptype' ,'=' ,'product.product' )]}"
required="ptype == 'product.product'"
options="{'no_create_edit': True, 'no_create': True}"
/>
<field
@@ -31,14 +31,12 @@
</group>
<field name="product_ids" nolabel="1" />
</group>
<group
attrs="{'invisible' :[('ptype' ,'!=' ,'product.template' )]}"
>
<group invisible="ptype != 'product.template'">
<group>
<field
name="dst_product_tmpl_id"
domain="[('id', 'in', product_tmpl_ids)]"
attrs="{'required' :[('ptype' ,'=' ,'product.template')]}"
required="ptype == 'product.template'"
options="{'no_create_edit': True, 'no_create': True}"
/>
<field