[MIG] rma_scrap: Migration to 18.0

This commit is contained in:
JasminSForgeFlow
2024-11-29 14:22:36 +05:30
parent 3c5f311f84
commit 96d0cb61da
5 changed files with 8 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "RMA Scrap", "name": "RMA Scrap",
"version": "17.0.1.0.0", "version": "18.0.1.0.0",
"license": "LGPL-3", "license": "LGPL-3",
"category": "RMA", "category": "RMA",
"summary": "Allows to scrap the received/ordered products in odoo", "summary": "Allows to scrap the received/ordered products in odoo",

View File

@@ -23,12 +23,12 @@ class TestRmaScrap(common.SingleTransactionCase):
# Create products # Create products
cls.product_1 = cls.product_obj.create( cls.product_1 = cls.product_obj.create(
{"name": "Test Product 1", "type": "product", "list_price": 100.0} {"name": "Test Product 1", "is_storable": True, "list_price": 100.0}
) )
cls.product_2 = cls.product_obj.create( cls.product_2 = cls.product_obj.create(
{ {
"name": "Test Product 2", "name": "Test Product 2",
"type": "product", "is_storable": True,
"list_price": 150.0, "list_price": 150.0,
"tracking": "lot", "tracking": "lot",
} }
@@ -36,7 +36,7 @@ class TestRmaScrap(common.SingleTransactionCase):
cls.product_3 = cls.product_obj.create( cls.product_3 = cls.product_obj.create(
{ {
"name": "Test Product 3", "name": "Test Product 3",
"type": "product", "is_storable": True,
"list_price": 150.0, "list_price": 150.0,
"tracking": "serial", "tracking": "serial",
} }

View File

@@ -2,7 +2,7 @@
<odoo> <odoo>
<record id="rma_operation_tree" model="ir.ui.view"> <record id="rma_operation_tree" model="ir.ui.view">
<field name="name">rma.operation.tree</field> <field name="name">rma.operation.list</field>
<field name="model">rma.operation</field> <field name="model">rma.operation</field>
<field name="inherit_id" ref="rma.rma_operation_tree" /> <field name="inherit_id" ref="rma.rma_operation_tree" />
<field name="arch" type="xml"> <field name="arch" type="xml">

View File

@@ -17,7 +17,7 @@
<field name="scrap_count" widget="statinfo" string="Scraps" /> <field name="scrap_count" widget="statinfo" string="Scraps" />
</button> </button>
</button> </button>
<xpath expr="//field[@name='rma_line_ids']/tree" position="inside"> <xpath expr="//field[@name='rma_line_ids']/list" position="inside">
<field name="scrap_policy" invisible="True" /> <field name="scrap_policy" invisible="True" />
</xpath> </xpath>
</field> </field>

View File

@@ -7,7 +7,7 @@
<form string="Select lines for picking" name="lines"> <form string="Select lines for picking" name="lines">
<separator string="Select lines for Scrap" /> <separator string="Select lines for Scrap" />
<field name="item_ids"> <field name="item_ids">
<tree editable="bottom" create="false"> <list editable="bottom" create="false">
<field name="rma_id" groups="rma.group_rma_groups" /> <field name="rma_id" groups="rma.group_rma_groups" />
<field name="product_id" /> <field name="product_id" />
<field name="product_qty" /> <field name="product_qty" />
@@ -17,7 +17,7 @@
<field name="company_id" invisible="1" /> <field name="company_id" invisible="1" />
<field name="line_id" invisible="1" /> <field name="line_id" invisible="1" />
<field name="uom_id" groups="uom.group_uom" /> <field name="uom_id" groups="uom.group_uom" />
</tree> </list>
</field> </field>
<footer> <footer>
<button <button