17 lines
482 B
Python
17 lines
482 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from odoo import models
|
|
from odoo.tools.misc import format_date
|
|
|
|
|
|
class AccountPayment(models.Model):
|
|
_inherit = 'account.payment'
|
|
|
|
def _check_build_page_info(self, i, p):
|
|
page = super()._check_build_page_info(i, p)
|
|
page.update({
|
|
'date_label': self.company_id.account_check_printing_date_label,
|
|
'payment_date_canada': format_date(self.env, self.date, date_format='yyyy-MM-dd'),
|
|
})
|
|
return page
|