blob: 8821be52e20fd2225a21f824049cef47d9907a2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
# -*- 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"
def _localization_use_documents(self):
""" Chilean localization use documents """
self.ensure_one()
return self.country_id.code == "CL" or super()._localization_use_documents()
|