Skip to content

Commit

Permalink
[MIG] rma_scrap: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JasminSForgeFlow committed Nov 29, 2024
1 parent 3c5f311 commit 96d0cb6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion rma_scrap/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "RMA Scrap",
"version": "17.0.1.0.0",
"version": "18.0.1.0.0",
"license": "LGPL-3",
"category": "RMA",
"summary": "Allows to scrap the received/ordered products in odoo",
Expand Down
6 changes: 3 additions & 3 deletions rma_scrap/tests/test_rma_scrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ def setUpClass(cls):

# Create products
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(
{
"name": "Test Product 2",
"type": "product",
"is_storable": True,
"list_price": 150.0,
"tracking": "lot",
}
)
cls.product_3 = cls.product_obj.create(
{
"name": "Test Product 3",
"type": "product",
"is_storable": True,
"list_price": 150.0,
"tracking": "serial",
}
Expand Down
2 changes: 1 addition & 1 deletion rma_scrap/views/rma_operation_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<odoo>

<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="inherit_id" ref="rma.rma_operation_tree" />
<field name="arch" type="xml">
Expand Down
2 changes: 1 addition & 1 deletion rma_scrap/views/rma_order_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<field name="scrap_count" widget="statinfo" string="Scraps" />
</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" />
</xpath>
</field>
Expand Down
4 changes: 2 additions & 2 deletions rma_scrap/wizards/rma_scrap_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<form string="Select lines for picking" name="lines">
<separator string="Select lines for Scrap" />
<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="product_id" />
<field name="product_qty" />
Expand All @@ -17,7 +17,7 @@
<field name="company_id" invisible="1" />
<field name="line_id" invisible="1" />
<field name="uom_id" groups="uom.group_uom" />
</tree>
</list>
</field>
<footer>
<button
Expand Down

0 comments on commit 96d0cb6

Please sign in to comment.