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 authored and hildickethan committed Apr 29, 2024
1 parent 8f34c76 commit 801bb1b
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def setUpClass(cls):
cls.account_invoice_model = cls.env["account.move"]
cls.journal_model = cls.env["account.journal"]
cls.payment_method_model = cls.env["account.payment.method"]
cls.payment_method_line_model = cls.env["account.payment.method.line"]
cls.account_account_model = cls.env["account.account"]
cls.payment_model = cls.env["account.payment"]
cls.report = cls.env[
Expand Down Expand Up @@ -63,9 +64,13 @@ def setUpClass(cls):
"type": "bank",
"code": "bank",
"check_manual_sequencing": True,
# "outbound_payment_method_ids": [
# (4, cls.payment_method_check.id, None)
# ],
}
)
cls.payment_method_line_check = cls.payment_method_line_model.create(
{
"name": "Check",
"payment_method_id": cls.payment_method_check.id,
"journal_id": cls.bank_journal.id,
}
)
cls.acc_payable = cls._create_account(
Expand All @@ -85,7 +90,7 @@ def setUpClass(cls):
{
"date": time.strftime("%Y") + "-07-15",
"journal_id": cls.bank_journal.id,
"payment_method_line_id": cls.payment_method_check.id,
"payment_method_line_id": cls.payment_method_line_check.id,
}
)
register_payments.action_post()
Expand Down

0 comments on commit 801bb1b

Please sign in to comment.