Skip to content

Commit 629dc38

Browse files
JasminSForgeFlowChrisOForgeFlow
authored andcommitted
[MIG] mrp_unbuild_valuation_layer_link: Migration to 16.0
1 parent 0cda5d9 commit 629dc38

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

mrp_unbuild_valuation_layer_link/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Valuation layers for unbuild orders",
3-
"version": "14.0.1.0.1",
3+
"version": "16.0.1.0.1",
44
"license": "LGPL-3",
55
"category": "Manufacture",
66
"summary": "Unbuild orders display the connected valuation layers",

mrp_unbuild_valuation_layer_link/tests/test_mrp__unbuild_valuation_layer_link.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44

55

66
class TestUnbuild(TestMrpCommon):
7-
def setUp(self):
8-
super(TestUnbuild, self).setUp()
9-
self.stock_location = self.env.ref("stock.stock_location_stock")
10-
self.env.ref("base.group_user").write(
11-
{"implied_ids": [(4, self.env.ref("stock.group_production_lot").id)]}
7+
@classmethod
8+
def setUpClass(cls):
9+
super().setUpClass()
10+
cls.stock_location = cls.env.ref("stock.stock_location_stock")
11+
cls.env.ref("base.group_user").write(
12+
{"implied_ids": [(4, cls.env.ref("stock.group_production_lot").id)]}
1213
)
1314

1415
def test_unbuild_with_valuation_layer(self):

mrp_unbuild_valuation_layer_link/views/mrp_unbuild_views.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<field name="name">mrp.unbuild.view.inherited - Button Valuation</field>
44
<field name="model">mrp.unbuild</field>
55
<field name="inherit_id" ref="mrp.mrp_unbuild_form_view" />
6-
<field name="groups_id" eval="[(4, ref('stock.group_stock_manager'))]" />
76
<field name="arch" type="xml">
87
<xpath expr="//div[@name='button_box']" position="inside">
98
<button
@@ -12,7 +11,7 @@
1211
name="action_view_stock_valuation_layers"
1312
class="oe_stat_button"
1413
icon="fa-dollar"
15-
groups="base.group_no_one"
14+
groups="base.group_no_one,stock.group_stock_manager"
1615
attrs="{'invisible': [('state', '=', 'draft')]}"
1716
/>
1817
</xpath>

0 commit comments

Comments
 (0)