Browse Source
Fix partner notify_email before uninstall
pull/117/head
app
9 years ago
committed by
Ildar Nasyrov
No known key found for this signature in database
GPG Key ID: D1FDACDF9B83578
2 changed files with
9 additions and
1 deletions
-
im_notif/__init__.py
-
im_notif/__openerp__.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) |
|
|
@ -13,5 +13,6 @@ |
|
|
|
'im_notif_data.xml', |
|
|
|
'im_notif_views.xml', |
|
|
|
], |
|
|
|
'installable': False |
|
|
|
'installable': False, |
|
|
|
'uninstall_hook': 'pre_uninstall', |
|
|
|
} |