Skip to content

Commit

Permalink
[FIX] account_check_printing_report_base: fix test to use correct pay…
Browse files Browse the repository at this point in the history
…ment method line in account payment

TT47880
  • Loading branch information
pilarvargas-tecnativa committed Feb 19, 2024
1 parent 4a78da3 commit 5f82265
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def setUp(self):
self.account_invoice_model = self.env["account.move"]
self.journal_model = self.env["account.journal"]
self.payment_method_model = self.env["account.payment.method"]
self.payment_method_line_model = self.env["account.payment.method.line"]
self.account_account_model = self.env["account.account"]
self.payment_model = self.env["account.payment"]
self.report = self.env[
Expand Down Expand Up @@ -64,9 +65,13 @@ def setUp(self):
"type": "bank",
"code": "bank",
"check_manual_sequencing": True,
# "outbound_payment_method_ids": [
# (4, self.payment_method_check.id, None)
# ],
}
)
self.payment_method_line_check = self.payment_method_line_model.create(
{
"name": "Check",
"payment_method_id": self.payment_method_check.id,
"journal_id": self.bank_journal.id,
}
)
self.acc_payable = self._create_account(
Expand All @@ -86,7 +91,7 @@ def setUp(self):
{
"date": time.strftime("%Y") + "-07-15",
"journal_id": self.bank_journal.id,
"payment_method_line_id": self.payment_method_check.id,
"payment_method_line_id": self.payment_method_line_check.id,
}
)
register_payments.action_post()
Expand Down

0 comments on commit 5f82265

Please sign in to comment.