__init__.py 430 B

1234567891011121314
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. from . import models
  4. from . import controllers
  5. from odoo import api, SUPERUSER_ID
  6. def uninstall_hook(cr, registry):
  7. env = api.Environment(cr, SUPERUSER_ID, {})
  8. dt = env.ref('website_slides.badge_data_certification_goal', raise_if_not_found=False)
  9. if dt:
  10. dt.domain = "[('completed', '=', True), (0, '=', 1)]"