diff --git a/account_invoice_constraint_chronology/__manifest__.py b/account_invoice_constraint_chronology/__manifest__.py index 1b03bca7..89be9e2b 100644 --- a/account_invoice_constraint_chronology/__manifest__.py +++ b/account_invoice_constraint_chronology/__manifest__.py @@ -3,7 +3,7 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). { "name": "Account Invoice Constraint Chronology", - "version": "15.0.1.0.1", + "version": "16.0.1.0.1", "author": "Odoo Community Association (OCA), ACSONE SA/NV, CorporateHub", "website": "https://github.com/OCA/account-financial-tools", "license": "AGPL-3", diff --git a/account_invoice_constraint_chronology/tests/test_account_invoice_constraint_chronology.py b/account_invoice_constraint_chronology/tests/test_account_invoice_constraint_chronology.py index b1bb3b0e..e55bfbea 100644 --- a/account_invoice_constraint_chronology/tests/test_account_invoice_constraint_chronology.py +++ b/account_invoice_constraint_chronology/tests/test_account_invoice_constraint_chronology.py @@ -39,10 +39,10 @@ class TestAccountInvoiceConstraintChronology(common.TransactionCase): ) as invoice_form: invoice_form.invoice_date = cls.today invoice_form.partner_id = cls.partner_2 - invoice_form.journal_id = cls.sale_journal with invoice_form.invoice_line_ids.new() as line_form: line_form.product_id = cls.product cls.invoice_1 = invoice_form.save() + cls.invoice_1.update({"journal_id": cls.sale_journal}) cls.invoice_2 = cls.invoice_1.copy() cls.AccountMoveReversal = cls.env["account.move.reversal"]