summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2013-07-26 12:43:42 +0200
committerThibault Delavallée <tde@openerp.com>2013-07-26 12:43:42 +0200
commitfa7fc1277b879e23381c276ef531940d50d681eb (patch)
tree05338e553d4841d396bab66724f987541c2057e3
parentd83c7aeccc0a162278a0fdf85d94c81c39bdb761 (diff)
[FIX] mail_compose_message: keep empty domains
bzr revid: tde@openerp.com-20130726104342-8o5s2k85d7sjuwoy
-rw-r--r--addons/mail/wizard/mail_compose_message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/wizard/mail_compose_message.py b/addons/mail/wizard/mail_compose_message.py
index 432840d50ef..6ab1f0e81ff 100644
--- a/addons/mail/wizard/mail_compose_message.py
+++ b/addons/mail/wizard/mail_compose_message.py
@@ -73,7 +73,7 @@ class mail_compose_message(osv.TransientModel):
res_id = context.get('default_res_id', context.get('active_id'))
message_id = context.get('default_parent_id', context.get('message_id', context.get('active_id')))
active_ids = context.get('active_ids')
- if context.get('active_domain'):
+ if 'active_domain' in context: # not context.get() because we want to keep global [] domains
result['use_active_domain'] = True
result['active_domain'] = '%s' % context.get('active_domain')
else: