Browse Source

Fix partner notify_email before uninstall

pull/117/head
app 9 years ago
committed by Ildar Nasyrov
parent
commit
c726ab8d3a
No known key found for this signature in database GPG Key ID: D1FDACDF9B83578
  1. 7
      im_notif/__init__.py
  2. 3
      im_notif/__openerp__.py

7
im_notif/__init__.py

@ -1 +1,8 @@
import im_notif_models 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)

3
im_notif/__openerp__.py

@ -13,5 +13,6 @@
'im_notif_data.xml', 'im_notif_data.xml',
'im_notif_views.xml', 'im_notif_views.xml',
], ],
'installable': False
'installable': False,
'uninstall_hook': 'pre_uninstall',
} }
Loading…
Cancel
Save