mirror of
https://gitlab.com/flectra-community/reporting-engine.git
synced 2024-11-15 02:32:05 +00:00
12 lines
369 B
Python
12 lines
369 B
Python
|
# Copyright 2015-2017 Onestein (<http://www.onestein.eu>)
|
||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
||
|
from flectra import SUPERUSER_ID
|
||
|
from flectra.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()
|