[MIG] bi_sql_editor: Migration to 17.0

This commit is contained in:
chien
2023-12-21 10:15:33 +07:00
parent c127fa06ec
commit c8471a0f63
8 changed files with 134 additions and 161 deletions

View File

@@ -1,11 +1,8 @@
# Copyright 2015-2017 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import SUPERUSER_ID
from odoo.api import Environment
def uninstall_hook(cr, registry):
env = Environment(cr, SUPERUSER_ID, {})
def uninstall_hook(env):
recs = env["bi.sql.view"].search([])
for rec in recs:
rec.button_set_draft()