14 lines
430 B
Python
14 lines
430 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from . import models
|
|
from . import controllers
|
|
|
|
from odoo import api, SUPERUSER_ID
|
|
|
|
def uninstall_hook(cr, registry):
|
|
env = api.Environment(cr, SUPERUSER_ID, {})
|
|
dt = env.ref('website_slides.badge_data_certification_goal', raise_if_not_found=False)
|
|
if dt:
|
|
dt.domain = "[('completed', '=', True), (0, '=', 1)]"
|