diff options
| author | Thibault Delavallée <tde@openerp.com> | 2013-04-25 10:52:56 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2013-04-25 10:52:56 +0200 |
| commit | ca4ccafb37b352c4caa74b3b28e50c99f0cd5e06 (patch) | |
| tree | 1dc5e30b2782870cbfff6b165140e81ee6bd1ffc /addons/mail/wizard/invite.py | |
| parent | 92e09ed8c4959f7e3072ae29ea5ff0f1e78eb491 (diff) | |
[FIX] mail: invite: avoid sendign a void invite message; but cleditor produces <br> instead of a void message when deleting the widget content.
bzr revid: tde@openerp.com-20130425085256-6jpfesyhbo7qgis3
Diffstat (limited to 'addons/mail/wizard/invite.py')
| -rw-r--r-- | addons/mail/wizard/invite.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mail/wizard/invite.py b/addons/mail/wizard/invite.py index 091f8c3b569..fe75e45c6b8 100644 --- a/addons/mail/wizard/invite.py +++ b/addons/mail/wizard/invite.py @@ -59,8 +59,8 @@ class invite_wizard(osv.osv_memory): new_follower_ids = [p.id for p in wizard.partner_ids if p.id not in document.message_follower_ids] model_obj.message_subscribe(cr, uid, [wizard.res_id], new_follower_ids, context=context) - # send an email - if wizard.message: + # send an email only if a personal message exists + if wizard.message and not wizard.message == '<br>': # when deleting the message, cleditor keeps a <br> # add signature user_id = self.pool.get("res.users").read(cr, uid, [uid], fields=["signature"], context=context)[0] signature = user_id and user_id["signature"] or '' |
