@ -1 +1,8 @@
import im_notif_models
def pre_uninstall(cr, registry):
query = ("UPDATE res_partner "
"SET notify_email = 'always' "
"WHERE notify_email LIKE 'im%';")
cr.execute(query)
@ -14,4 +14,5 @@
'im_notif_views.xml',
],
'installable': True
'uninstall_hook': 'pre_uninstall',
}