Odoo18-Base/addons/l10n_latam_base/__init__.py
2025-03-10 11:12:23 +07:00

15 lines
420 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models
from odoo import api, SUPERUSER_ID
def _set_default_identification_type(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
env.cr.execute(
"""
UPDATE res_partner
SET l10n_latam_identification_type_id = %s
""",
[env.ref('l10n_latam_base.it_vat').id]
)