diff --git a/account_move_line_rma_order_line/__manifest__.py b/account_move_line_rma_order_line/__manifest__.py index 1d1f37b5..a45402e0 100644 --- a/account_move_line_rma_order_line/__manifest__.py +++ b/account_move_line_rma_order_line/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Account Move Line Rma Order Line", "summary": "Introduces the rma order line to the journal items", - "version": "11.0.1.0.0", + "version": "12.0.1.0.0", "author": "Eficent, " "Odoo Community Association (OCA)", "website": "http://www.github.com/OCA/account-financial-tools", diff --git a/account_move_line_rma_order_line/tests/test_account_move_line_rma_order_line.py b/account_move_line_rma_order_line/tests/test_account_move_line_rma_order_line.py index d192ecbc..106253c6 100644 --- a/account_move_line_rma_order_line/tests/test_account_move_line_rma_order_line.py +++ b/account_move_line_rma_order_line/tests/test_account_move_line_rma_order_line.py @@ -60,7 +60,7 @@ class TestAccountMoveLineRmaOrderLine(common.SavepointCase): acc_type, name, code, cls.company) # Create Product cls.product = cls._create_product() - cls.product_uom_id = cls.env.ref('product.product_uom_unit') + cls.product_uom_id = cls.env.ref('uom.product_uom_unit') # Create users cls.rma_user = cls._create_user( 'rma_user', [cls.group_rma_user, @@ -252,7 +252,7 @@ class TestAccountMoveLineRmaOrderLine(common.SavepointCase): 'description': 'Test refund', }) make_refund.invoice_refund() - rma_line.refund_line_ids.invoice_id.invoice_validate() + rma_line.refund_line_ids.invoice_id.action_invoice_open() for aml in rma_line.refund_line_ids.invoice_id.move_id.line_ids: if aml.product_id == rma_line.product_id and aml.invoice_id: self.assertEqual(