diff --git a/rma/__manifest__.py b/rma/__manifest__.py index ae99bfdb..48098c97 100644 --- a/rma/__manifest__.py +++ b/rma/__manifest__.py @@ -9,7 +9,7 @@ "summary": "Introduces the return merchandise authorization (RMA) process " "in odoo", "author": "ForgeFlow", - "website": "https://github.com/OCA/https://github.com/ForgeFlow/stock-rma", + "website": "https://github.com/OCA/account-budgeting", "depends": ["stock", "mail", "web"], "demo": ["demo/stock_demo.xml"], "data": [ diff --git a/rma/models/rma_order_line.py b/rma/models/rma_order_line.py index 42025e25..77cbb5ce 100644 --- a/rma/models/rma_order_line.py +++ b/rma/models/rma_order_line.py @@ -217,6 +217,7 @@ class RmaOrderLine(models.Model): ) operation_id = fields.Many2one( comodel_name="rma.operation", + required=True, string="Operation", readonly=True, states={"draft": [("readonly", False)]}, @@ -342,7 +343,7 @@ class RmaOrderLine(models.Model): string="Delivery Policy", default="no", readonly=True, - ondelete="cascade", + ondelete='cascade', states={"draft": [("readonly", False)]}, ) in_route_id = fields.Many2one( diff --git a/rma/tests/test_rma.py b/rma/tests/test_rma.py index b23e07ca..70bd756a 100644 --- a/rma/tests/test_rma.py +++ b/rma/tests/test_rma.py @@ -533,7 +533,9 @@ class TestRma(common.SavepointCase): self.assertEqual( list(set(lines.mapped("qty_outgoing"))), [0], "Wrong qty_outgoing" ) - self.assertEqual(list(set(lines.mapped("qty_delivered"))), [0], "qty_delivered") + self.assertEqual( + list(set(lines.mapped("qty_delivered"))), [0], "qty_delivered" + ) # product specific self._check_equal_quantity( @@ -611,7 +613,9 @@ class TestRma(common.SavepointCase): self.assertEqual( list(set(lines.mapped("qty_received"))), [0], "Wrong qty_received" ) - self.assertEqual(list(set(lines.mapped("qty_delivered"))), [0], "qty_delivered") + self.assertEqual( + list(set(lines.mapped("qty_delivered"))), [0], "qty_delivered" + ) # product specific self._check_equal_quantity( diff --git a/rma/wizards/rma_add_stock_move_view.xml b/rma/wizards/rma_add_stock_move_view.xml index a0c0e07e..9011456a 100644 --- a/rma/wizards/rma_add_stock_move_view.xml +++ b/rma/wizards/rma_add_stock_move_view.xml @@ -6,10 +6,15 @@
- + - + @@ -83,10 +88,15 @@ - + - +