__init__.py 542 B

12345678910111213141516
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. from odoo import api, SUPERUSER_ID
  4. from . import models
  5. def _post_init_hook(cr, registry):
  6. _preserve_tag_on_taxes(cr, registry)
  7. env = api.Environment(cr, SUPERUSER_ID, {})
  8. env.ref('l10n_lu.lu_2011_chart_1').process_coa_translations()
  9. def _preserve_tag_on_taxes(cr, registry):
  10. from odoo.addons.account.models.chart_template import preserve_existing_tags_on_taxes
  11. preserve_existing_tags_on_taxes(cr, registry, 'l10n_lu')