blob: c6bc869b6c640037b39bae6f43371df3f107ebe9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
# 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]
)
|