__init__.py 469 B

12345678910111213
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. from . import models
  4. from odoo import api, SUPERUSER_ID
  5. def l10n_eu_oss_post_init(cr, registry):
  6. env = api.Environment(cr, SUPERUSER_ID, {})
  7. env['res.company']._map_all_eu_companies_taxes()
  8. def l10n_eu_oss_uninstall(cr, registry):
  9. cr.execute("DELETE FROM ir_model_data WHERE module = 'l10n_eu_oss' and model in ('account.tax.group', 'account.account');")