summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2013-03-06 15:01:07 +0100
committerThibault Delavallée <tde@openerp.com>2013-03-06 15:01:07 +0100
commitc164cac08c0bdda79ec6f788065bb28599bb55d6 (patch)
treeb93b83662a077d79f62f8d1672a779f8b8998f38
parent7f8d7e3518d5ba550268342a22e3658426a2c470 (diff)
[IMP] crm: logging/schedulign a call now adds the description in the chatter message.
bzr revid: tde@openerp.com-20130306140107-myvtia1tsham9yuv
-rw-r--r--addons/crm/crm_lead.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py
index 2b7d9a7672d..e5d07b2df42 100644
--- a/addons/crm/crm_lead.py
+++ b/addons/crm/crm_lead.py
@@ -1024,9 +1024,12 @@ class crm_lead(base_stage, format_address, osv.osv):
def schedule_phonecall_send_note(self, cr, uid, ids, phonecall_id, action, context=None):
phonecall = self.pool.get('crm.phonecall').browse(cr, uid, [phonecall_id], context=context)[0]
- if action == 'log': prefix = 'Logged'
- else: prefix = 'Scheduled'
- message = _("<b>%s a call</b> for the <em>%s</em>.") % (prefix, phonecall.date)
+ if action == 'log':
+ prefix = 'Logged'
+ else:
+ prefix = 'Scheduled'
+ suffix = ' %s' % phonecall.description
+ message = _("%s a call for %s.%s") % (prefix, phonecall.date, suffix)
return self.message_post(cr, uid, ids, body=message, context=context)
def onchange_state(self, cr, uid, ids, state_id, context=None):