mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-27 07:12:01 +02:00
Initial commit: L10N_Americas packages
This commit is contained in:
commit
12b27ce151
714 changed files with 79328 additions and 0 deletions
15
odoo-bringout-oca-ocb-l10n_cl/l10n_cl/models/res_company.py
Normal file
15
odoo-bringout-oca-ocb-l10n_cl/l10n_cl/models/res_company.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class ResCompany(models.Model):
|
||||
_inherit = "res.company"
|
||||
|
||||
l10n_cl_activity_description = fields.Char(
|
||||
string='Company Activity Description', related='partner_id.l10n_cl_activity_description', readonly=False)
|
||||
|
||||
def _localization_use_documents(self):
|
||||
""" Chilean localization use documents """
|
||||
self.ensure_one()
|
||||
return self.account_fiscal_country_id.code == "CL" or super()._localization_use_documents()
|
||||
Loading…
Add table
Add a link
Reference in a new issue