mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-28 04:31:59 +02:00
19.0 vanilla
This commit is contained in:
parent
89c6e82fe7
commit
1b82c20a58
572 changed files with 43570 additions and 53303 deletions
14
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/models/res_company.py
Normal file
14
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/models/res_company.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# 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):
|
||||
""" Uruguayan localization use documents """
|
||||
self.ensure_one()
|
||||
return self.chart_template == 'uy' or self.account_fiscal_country_id.code == "UY" or super()._localization_use_documents()
|
||||
|
||||
def _is_latam(self):
|
||||
return super()._is_latam() or self.country_code == 'UY'
|
||||
Loading…
Add table
Add a link
Reference in a new issue