Initial commit: L10N_Americas packages

This commit is contained in:
Ernad Husremovic 2025-08-29 15:20:52 +02:00
commit 12b27ce151
714 changed files with 79328 additions and 0 deletions

View file

@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import res_partner
from . import res_company

View file

@ -0,0 +1,16 @@
# coding: utf-8
from odoo import models, fields
class ResCompany(models.Model):
_inherit = 'res.company'
l10n_ca_pst = fields.Char(related='partner_id.l10n_ca_pst', string='PST', store=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)

View file

@ -0,0 +1,8 @@
# coding: utf-8
from odoo import api, fields, models, _
class ResPartner(models.Model):
_inherit = 'res.partner'
l10n_ca_pst = fields.Char('PST')