mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-27 15:12:05 +02:00
19.0 vanilla
This commit is contained in:
parent
89c6e82fe7
commit
1b82c20a58
572 changed files with 43570 additions and 53303 deletions
|
|
@ -0,0 +1,3 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from . import portal
|
||||
14
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/controllers/portal.py
Normal file
14
odoo-bringout-oca-ocb-l10n_uy/l10n_uy/controllers/portal.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo.http import request
|
||||
|
||||
from odoo.addons.l10n_latam_base.controllers.portal import L10nLatamBasePortalAccount
|
||||
|
||||
|
||||
class L10nUYPortalAccount(L10nLatamBasePortalAccount):
|
||||
|
||||
def _l10n_get_default_identification_type_id(self):
|
||||
return (
|
||||
(self.env.company.country_code == 'UY' and request.env.ref('l10n_uy.it_ci'))
|
||||
or super()._l10n_get_default_identification_type_id()
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue