mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-27 14:52:02 +02:00
15 lines
473 B
Python
15 lines
473 B
Python
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models
|
|
|
|
|
|
class ResCompany(models.Model):
|
|
_inherit = 'res.company'
|
|
|
|
def _localization_use_documents(self):
|
|
# OVERRIDE
|
|
self.ensure_one()
|
|
return self.chart_template == 'pe' or self.account_fiscal_country_id.code == "PE" or super()._localization_use_documents()
|
|
|
|
def _is_latam(self):
|
|
return super()._is_latam() or self.country_code == 'PE'
|