Skip to content

Commit b4a995a

Browse files
committed
[MIG] scrap_reason_code : Migration to version 18.0
1 parent 2d5fa6f commit b4a995a

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

scrap_reason_code/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{
44
"name": "Scrap Reason Code",
5-
"version": "17.0.1.0.1",
5+
"version": "18.0.1.0.0",
66
"license": "AGPL-3",
77
"summary": "Reason code for scrapping",
88
"author": "Open Source Integrators, Odoo Community Association (OCA)",

scrap_reason_code/tests/test_scrap_reason_code.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,16 @@ def setUp(self):
3030
self.scrap_product = self.env["product.product"].create(
3131
{
3232
"name": "Scrap Product A",
33-
"type": "product",
33+
"type": "consu",
34+
"is_storable": True,
3435
"categ_id": self.categ_1.id,
3536
}
3637
)
3738
self.scrap_product_2 = self.env["product.product"].create(
3839
{
3940
"name": "Scrap Product A",
40-
"type": "product",
41+
"type": "consu",
42+
"is_storable": True,
4143
"categ_id": self.categ_2.id,
4244
}
4345
)

scrap_reason_code/views/reason_code_view.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@
3333
<field name="name">scrap.reason.code.list</field>
3434
<field name="model">scrap.reason.code</field>
3535
<field name="arch" type="xml">
36-
<tree>
36+
<list>
3737
<field name="name" />
3838
<field name="description" />
3939
<field name="location_id" />
4040
<field name="product_category_ids" widget="many2many_tags" />
41-
</tree>
41+
</list>
4242
</field>
4343
</record>
4444
<record id="open_view_scrap_reason_code_form" model="ir.actions.act_window">
4545
<field name="name">Scrap Reason Codes</field>
4646
<field name="res_model">scrap.reason.code</field>
47-
<field name="view_mode">tree,form</field>
47+
<field name="view_mode">list,form</field>
4848
</record>
4949
<menuitem
5050
action="open_view_scrap_reason_code_form"

0 commit comments

Comments
 (0)