19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:21 +01:00
parent 7dc55599c6
commit 7f43bbbfcc
650 changed files with 45260 additions and 33436 deletions

View file

@ -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')