mirror of
https://github.com/bringout/oca-ocb-l10n_americas.git
synced 2026-04-27 20:12:06 +02:00
14 lines
489 B
Python
14 lines
489 B
Python
# 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()
|
|
)
|