__init__.py 420 B

123456789101112131415
  1. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  2. from . import models
  3. from odoo import api, SUPERUSER_ID
  4. def _set_default_identification_type(cr, registry):
  5. env = api.Environment(cr, SUPERUSER_ID, {})
  6. env.cr.execute(
  7. """
  8. UPDATE res_partner
  9. SET l10n_latam_identification_type_id = %s
  10. """,
  11. [env.ref('l10n_latam_base.it_vat').id]
  12. )