| 1 |
from odoo import models, api |
| 2 |
|
| 3 |
|
| 4 |
class AccountPaymentMethod(models.Model): |
| 5 |
_inherit = 'account.payment.method' |
| 6 |
|
| 7 |
@api.model |
| 8 |
def _get_payment_method_information(self): |
| 9 |
res = super()._get_payment_method_information() |
| 10 |
res['new_third_party_checks'] = {'mode': 'multi', 'type': ('cash',)} |
| 11 |
res['in_third_party_checks'] = {'mode': 'multi', 'type': ('cash',)} |
| 12 |
res['out_third_party_checks'] = {'mode': 'multi', 'type': ('cash',)} |
| 13 |
res['return_third_party_checks'] = {'mode': 'multi', 'type': ('bank',)} |
| 14 |
res['own_checks'] = {'mode': 'multi', 'type': ('bank',)} |
| 15 |
return res |