Skip to content

Commit

Permalink
[ADD] check_printing: Multiple check payments
Browse files Browse the repository at this point in the history
Be able to add multipe checks payment method on journal

accountamatata task 3130305

closes odoo#109774

Signed-off-by: Nicolas Viseur (vin) <vin@odoo.com>
  • Loading branch information
zaoral committed Mar 7, 2023
1 parent f873a16 commit 5c69197
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions addons/account_check_printing/models/account_journal.py
Expand Up @@ -102,3 +102,10 @@ def action_checks_to_print(self):
default_payment_method_line_id=payment_method_line.id,
),
}

@api.model
def _get_reusable_payment_methods(self):
""" We are able to have multiple times Checks payment method in a journal """
res = super()._get_reusable_payment_methods()
res.add("check_printing")
return res

0 comments on commit 5c69197

Please sign in to comment.