mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[MIG] rma_scrap: Migration to 18.0
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -23,12 +23,12 @@ class TestRmaScrap(common.SingleTransactionCase):
|
||||
|
||||
# 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",
|
||||
}
|
||||
@@ -36,7 +36,7 @@ class TestRmaScrap(common.SingleTransactionCase):
|
||||
cls.product_3 = cls.product_obj.create(
|
||||
{
|
||||
"name": "Test Product 3",
|
||||
"type": "product",
|
||||
"is_storable": True,
|
||||
"list_price": 150.0,
|
||||
"tracking": "serial",
|
||||
}
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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" />
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user