From 6a97dbded0b0e50aa9a61b6a33b5a55fd86400fe Mon Sep 17 00:00:00 2001 From: Eduardo De Miguel Date: Thu, 31 Mar 2022 16:39:29 +0200 Subject: [PATCH] [FIX] Add journal_id when creating account move reversal on tests --- .../test_account_invoice_constraint_chronology.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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() )