# Copyright 2015-2017 Onestein (<http://www.onestein.eu>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

def uninstall_hook(env):
    recs = env["bi.sql.view"].search([])
    for rec in recs:
        rec.button_set_draft()
