[IMP] Add test + several fixes

This commit is contained in:
aheficent
2017-07-17 17:14:49 +02:00
committed by David James
parent 8425bcd972
commit 5c5eeac34a
13 changed files with 228 additions and 107 deletions

12
bi_sql_editor/hooks.py Normal file
View File

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