mirror of
https://github.com/bringout/oca-ocb-l10n_asia-pacific.git
synced 2026-04-27 01:42:04 +02:00
19.0 vanilla
This commit is contained in:
parent
7dc55599c6
commit
7f43bbbfcc
650 changed files with 45260 additions and 33436 deletions
|
|
@ -0,0 +1,13 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from odoo import models, api, _
|
||||
|
||||
|
||||
class AccountPayment(models.Model):
|
||||
_inherit = 'account.payment'
|
||||
|
||||
@api.depends('country_code', 'partner_type')
|
||||
def _compute_payment_receipt_title(self):
|
||||
# OVERRIDE
|
||||
super()._compute_payment_receipt_title()
|
||||
for payment in self.filtered(lambda p: p.country_code == 'NZ' and p.partner_type == 'supplier'):
|
||||
payment.payment_receipt_title = _('Remittance Advice')
|
||||
Loading…
Add table
Add a link
Reference in a new issue