odoo-2-flectra-converter/flectra/ks_dashboard_ninja/__init__.py
2020-11-03 16:59:00 +01:00

13 lines
331 B
Python

from . import models
from . import controllers
from flectra.api import Environment, SUPERUSER_ID
def uninstall_hook(cr, registry):
env = Environment(cr, SUPERUSER_ID, {})
for rec in env['ks_dashboard_ninja.board'].search([]):
rec.ks_dashboard_client_action_id.unlink()
rec.ks_dashboard_menu_id.unlink()