diff --git a/rma/__manifest__.py b/rma/__manifest__.py index 48098c97..ae99bfdb 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/account-budgeting", + "website": "https://github.com/OCA/https://github.com/ForgeFlow/stock-rma", "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 77cbb5ce..3d7f987f 100644 --- a/rma/models/rma_order_line.py +++ b/rma/models/rma_order_line.py @@ -343,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 70bd756a..b23e07ca 100644 --- a/rma/tests/test_rma.py +++ b/rma/tests/test_rma.py @@ -533,9 +533,7 @@ 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( @@ -613,9 +611,7 @@ 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 9011456a..a0c0e07e 100644 --- a/rma/wizards/rma_add_stock_move_view.xml +++ b/rma/wizards/rma_add_stock_move_view.xml @@ -6,15 +6,10 @@
- + - + @@ -88,15 +83,10 @@ - + - +