mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-25 22:32:02 +02:00
10 lines
274 B
Python
10 lines
274 B
Python
from odoo import models
|
|
|
|
|
|
class ResCompany(models.Model):
|
|
|
|
_inherit = "res.company"
|
|
|
|
def _localization_use_documents(self):
|
|
self.ensure_one()
|
|
return self.account_fiscal_country_id.code == "EC" or super(ResCompany, self)._localization_use_documents()
|