diff --git a/account_move_force_removal/__manifest__.py b/account_move_force_removal/__manifest__.py index 4397bf2ba..1957bfcfb 100644 --- a/account_move_force_removal/__manifest__.py +++ b/account_move_force_removal/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Account Move Force Removal", "summary": """Allow force removal account moves""", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "category": "Account", "license": "AGPL-3", "website": "https://github.com/OCA/account-financial-tools", diff --git a/account_move_force_removal/readme/CONTRIBUTORS.rst b/account_move_force_removal/readme/CONTRIBUTORS.rst index 5fb713053..5d1cd2f83 100644 --- a/account_move_force_removal/readme/CONTRIBUTORS.rst +++ b/account_move_force_removal/readme/CONTRIBUTORS.rst @@ -2,3 +2,4 @@ * Víctor Martínez * Pedro M. Baeza +* Alex Comba diff --git a/account_move_force_removal/tests/test_move.py b/account_move_force_removal/tests/test_move.py index 7fee734ec..5d90d8a9b 100644 --- a/account_move_force_removal/tests/test_move.py +++ b/account_move_force_removal/tests/test_move.py @@ -24,6 +24,11 @@ class TestMove(SavepointCase): cls.product = cls.env["product.product"].create( {"name": "Test product", "type": "service"} ) + account_type = cls.env.ref("account.data_account_type_other_income") + cls.income_account = cls.env["account.account"].search( + [("user_type_id", "=", account_type.id)], limit=1 + ) + invoice = Form( cls.env["account.move"].with_context( default_type="out_invoice", default_company_id=cls.env.company.id @@ -36,6 +41,7 @@ class TestMove(SavepointCase): line_form.product_id = cls.product line_form.quantity = 1.0 line_form.price_unit = 10 + line_form.account_id = cls.income_account invoice = invoice.save() invoice.action_post() cls.invoice = invoice