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.

12 lines
487 B

  1. # -*- coding: utf-8 -*-
  2. # © 2016 Serpent Consulting Services Pvt. Ltd. (support@serpentcs.com)
  3. # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
  4. def uninstall_hook(cr, registry):
  5. cr.execute("""SELECT id FROM ir_act_window
  6. WHERE res_model = 'mass.editing.wizard'""")
  7. for res in cr.dictfetchall():
  8. value = 'ir.actions.act_window,%s' % res.get('id')
  9. cr.execute("DELETE FROM ir_values WHERE value = '%s'" % value)
  10. return True