mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[MIG] base_product_merge: Migration to 17.0
This commit is contained in:
@@ -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)",
|
||||
|
||||
@@ -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"]
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user