Browse Source

Fix partner notify_email before uninstall

pull/183/head
app 9 years ago
committed by Ivan Yelizariev
parent
commit
f8e41cbd0a
  1. 7
      im_notif/__init__.py
  2. 1
      im_notif/__openerp__.py

7
im_notif/__init__.py

@ -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)

1
im_notif/__openerp__.py

@ -14,4 +14,5 @@
'im_notif_views.xml',
],
'installable': True
'uninstall_hook': 'pre_uninstall',
}
Loading…
Cancel
Save