OCA reporting engine fork for dev and update.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
363 B

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