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':
- message = _('Logged a call for {date}. {description}')
+ message = _('Logged a call for %(date)s. %(description)s')
else:
- message = _('Scheduled a call for {date}. {description}')
+ message = _('Scheduled a call for %(date)s. %(description)s')
phonecall_date = datetime.strptime(phonecall.date, tools.DEFAULT_SERVER_DATETIME_FORMAT)
phonecall_usertime = fields.datetime.context_timestamp(cr, uid, phonecall_date, context=context).strftime(tools.DEFAULT_SERVER_DATETIME_FORMAT)
html_time = "<time datetime='%s+00:00'>%s</time>" % (phonecall.date, phonecall_usertime)
- message = message.format(date=html_time, description=phonecall.description)
+ message = message % dict(date=html_time, description=phonecall.description)
return self.message_post(cr, uid, ids, body=message, context=context)
def log_meeting(self, cr, uid, ids, meeting_subject, meeting_date, duration, context=None):
msgstr ""
"Project-Id-Version: OpenERP Server 7.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-01-07 15:37+0000\n"
-"PO-Revision-Date: 2014-01-07 15:37+0000\n"
+"POT-Creation-Date: 2014-01-07 16:56+0000\n"
+"PO-Revision-Date: 2014-01-07 16:56+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
msgstr ""
#. module: crm
+#: code:addons/crm/crm_lead.py:1064
+#, python-format
+msgid "Logged a call for %(date)s. %(description)s"
+msgstr ""
+
+#. module: crm
#: field:crm.lead,company_currency:0
msgid "Currency"
msgstr ""
msgstr ""
#. module: crm
-#: code:addons/crm/crm_lead.py:1064
-#, python-format
-msgid "Logged a call for {date}. {description}"
-msgstr ""
-
-#. module: crm
#: selection:crm.opportunity2phonecall,action:0
#: selection:crm.phonecall2phonecall,action:0
msgid "Schedule a call"
#. module: crm
#: code:addons/crm/crm_lead.py:1066
#, python-format
-msgid "Scheduled a call for {date}. {description}"
+msgid "Scheduled a call for %(date)s. %(description)s"
msgstr ""
#. module: crm