mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-27 08:52:06 +02:00
Initial commit: L10N_Americas packages
This commit is contained in:
commit
12b27ce151
714 changed files with 79328 additions and 0 deletions
12
odoo-bringout-oca-ocb-l10n_pe/l10n_pe/models/res_company.py
Normal file
12
odoo-bringout-oca-ocb-l10n_pe/l10n_pe/models/res_company.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# 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.account_fiscal_country_id.code == "PE" or super()._localization_use_documents()
|
||||
Loading…
Add table
Add a link
Reference in a new issue