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 56441ae1..b1bb3b0e 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 @@ -96,7 +96,12 @@ class TestAccountInvoiceConstraintChronology(common.TransactionCase): active_ids=self.invoice_1.ids, ) .create( - {"date": self.today, "reason": "no reason", "refund_method": "refund"} + { + "date": self.today, + "reason": "no reason", + "refund_method": "refund", + "journal_id": self.invoice_1.journal_id.id, + } ) .reverse_moves() ) @@ -113,7 +118,12 @@ class TestAccountInvoiceConstraintChronology(common.TransactionCase): active_ids=self.invoice_1.ids, ) .create( - {"date": self.today, "reason": "no reason", "refund_method": "refund"} + { + "date": self.today, + "reason": "no reason", + "refund_method": "refund", + "journal_id": self.invoice_1.journal_id.id, + } ) .reverse_moves() )