[FIX] l10n_ca: fix document layout override

During the refactor of the module the override
of base.document.layout was removed by mistake,
This is needed to add the PST number to the template

related commit: fd2c6dce8e5bee5ac526e7f3edeb398a992f84b1

runbot build errors: 23816, 23817, 23800, 23801,
23802, 23803, 23804, 23829

closes odoo/odoo#130790

X-original-commit: 32ab5d9b2591a288606f77779d479384bb3b2599
Signed-off-by: Brice Bartoletti (bib) <bib@odoo.com>
This commit is contained in:
Julien Alardot (jual)
2023-08-03 21:57:01 +02:00
parent 39b1b3b136
commit 1453b42fa4
+7
View File
@@ -5,3 +5,10 @@ class ResCompany(models.Model):
_inherit = 'res.company'
l10n_ca_pst = fields.Char(related='partner_id.l10n_ca_pst', string='PST Number', store=False, readonly=False)
class BaseDocumentLayout(models.TransientModel):
_inherit = 'base.document.layout'
l10n_ca_pst = fields.Char(related='company_id.l10n_ca_pst', readonly=True)
account_fiscal_country_id = fields.Many2one(related="company_id.account_fiscal_country_id", readonly=True)