[MERGE] [FIX] crm: post message for logged/scheduled call in use timezone instead...
authorMartin Trigaux <mat@openerp.com>
Tue, 7 Jan 2014 15:49:42 +0000 (23:49 +0800)
committerMartin Trigaux <mat@openerp.com>
Tue, 7 Jan 2014 15:49:42 +0000 (23:49 +0800)
Use <time> html element containing UTC time.
Updated POT to contains new translation value

bzr revid: mat@openerp.com-20140107154942-w3xx5914yzej4jb3

1  2 
addons/crm/crm_lead.py
addons/crm/i18n/crm.pot

@@@ -1061,11 -1061,13 +1061,13 @@@ class crm_lead(base_stage, format_addre
      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'
++            message = _('Logged a call for {date}. {description}')
          else:
--            prefix = 'Scheduled'
--        suffix = ' %s' % phonecall.description
-         message = _("%s a call for %s.%s") % (prefix, phonecall.date, suffix)
++            message = _('Scheduled a call for {date}. {description}')
+         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)
 -        message = _("%s a call for %s.%s") % (prefix, phonecall_usertime, suffix)
++        html_time = "<time datetime='%s+00:00'>%s</time>" % (phonecall.date, phonecall_usertime)
++        message = message.format(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):
@@@ -6,8 -6,8 +6,8 @@@ msgid "
  msgstr ""
  "Project-Id-Version: OpenERP Server 7.0\n"
  "Report-Msgid-Bugs-To: \n"
--"POT-Creation-Date: 2013-06-07 19:36+0000\n"
--"PO-Revision-Date: 2013-06-07 19:36+0000\n"
++"POT-Creation-Date: 2014-01-07 15:37+0000\n"
++"PO-Revision-Date: 2014-01-07 15:37+0000\n"
  "Last-Translator: <>\n"
  "Language-Team: \n"
  "MIME-Version: 1.0\n"
@@@ -26,7 -26,7 +26,7 @@@ msgid "Allows you to configure your inc
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_lead.py:898
++#: code:addons/crm/crm_lead.py:897
  #: selection:crm.case.stage,type:0
  #: view:crm.lead:0
  #: selection:crm.lead,type:0
@@@ -147,7 -147,7 +147,7 @@@ msgid "Rule Name
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_phonecall.py:280
++#: code:addons/crm/crm_phonecall.py:282
  #, python-format
  msgid "It's only possible to convert one phonecall at a time."
  msgstr ""
@@@ -180,9 -180,9 +180,10 @@@ msgid "Holds the Chatter summary (numbe
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_lead.py:640
--#: code:addons/crm/crm_lead.py:761
--#: code:addons/crm/crm_phonecall.py:280
++#: code:addons/crm/crm_lead.py:637
++#: code:addons/crm/crm_lead.py:758
++#: code:addons/crm/crm_phonecall.py:282
++#: code:addons/crm/wizard/crm_lead_to_opportunity.py:92
  #, python-format
  msgid "Warning!"
  msgstr ""
@@@ -209,7 -209,7 +210,7 @@@ msgid "Schedule Other Call
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_phonecall.py:209
++#: code:addons/crm/crm_phonecall.py:211
  #: view:crm.phonecall:0
  #, python-format
  msgid "Phone Call"
@@@ -246,11 -246,11 +247,6 @@@ msgid "Assigned to My Team(s)
  msgstr ""
  
  #. module: crm
--#: view:crm.segmentation:0
--msgid "Excluded Answers :"
--msgstr ""
--
--#. module: crm
  #: model:ir.model,name:crm.model_crm_merge_opportunity
  msgid "Merge opportunities"
  msgstr ""
@@@ -292,7 -292,7 +288,7 @@@ msgid "Prospect Partner
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_lead.py:1002
++#: code:addons/crm/crm_lead.py:1018
  #, python-format
  msgid "No Subject"
  msgstr ""
@@@ -383,7 -383,7 +379,6 @@@ msgid "Unread Messages
  msgstr ""
  
  #. module: crm
--#: view:crm.segmentation:0
  #: field:crm.segmentation.line,segmentation_id:0
  #: model:ir.actions.act_window,name:crm.crm_segmentation-act
  msgid "Segmentation"
@@@ -407,12 -407,12 +402,6 @@@ msgid "Team Leader
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_lead.py:1052
--#, python-format
--msgid "%s a call for %s.%s"
--msgstr ""
--
--#. module: crm
  #: help:crm.case.stage,probability:0
  msgid "This percentage depicts the default/average probability of the Case for this stage to be a success"
  msgstr ""
@@@ -433,7 -433,7 +422,7 @@@ msgid "#Opportunities
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_lead.py:640
++#: code:addons/crm/crm_lead.py:637
  #, python-format
  msgid "Please select more than one element (lead or opportunity) from the list view."
  msgstr ""
@@@ -512,7 -512,7 +501,7 @@@ msgid "Planned Revenue
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_lead.py:988
++#: code:addons/crm/crm_lead.py:1004
  #, python-format
  msgid "Customer Email"
  msgstr ""
@@@ -530,8 -530,8 +519,8 @@@ msgid "October
  msgstr ""
  
  #. module: crm
--#: view:crm.segmentation:0
--msgid "Included Answers :"
++#: view:crm.phonecall:0
++msgid "Reset to Todo"
  msgstr ""
  
  #. module: crm
@@@ -567,17 -567,17 +556,12 @@@ msgid "Reminder on Lead: [[object.id ]
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_lead.py:762
++#: code:addons/crm/crm_lead.py:759
  #, python-format
  msgid "No customer name defined. Please fill one of the following fields: Company Name, Contact Name or Email (\"Name <email@address>\")"
  msgstr ""
  
  #. module: crm
--#: view:crm.segmentation:0
--msgid "Profiling Options"
--msgstr ""
--
--#. module: crm
  #: view:crm.phonecall.report:0
  msgid "#Phone calls"
  msgstr ""
@@@ -689,7 -689,7 +673,7 @@@ msgid "Statistics Dashboard
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_lead.py:878
++#: code:addons/crm/crm_lead.py:877
  #: model:crm.case.stage,name:crm.stage_lead2
  #: selection:crm.case.stage,type:0
  #: view:crm.lead:0
@@@ -753,7 -753,7 +737,7 @@@ msgid "Exclusive
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_lead.py:600
++#: code:addons/crm/crm_lead.py:597
  #, python-format
  msgid "From %s : %s"
  msgstr ""
@@@ -880,12 -880,12 +864,6 @@@ msgid "Send Email
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/wizard/crm_lead_to_opportunity.py:89
--#, python-format
--msgid "Warning !"
--msgstr ""
--
--#. module: crm
  #: help:crm.case.section,message_unread:0
  #: help:crm.lead,message_unread:0
  #: help:crm.phonecall,message_unread:0
@@@ -934,7 -934,7 +912,7 @@@ msgid "Next Action
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_lead.py:780
++#: code:addons/crm/crm_lead.py:777
  #, python-format
  msgid "<b>Partner</b> set to <em>%s</em>."
  msgstr ""
@@@ -1023,7 -1023,7 +1001,7 @@@ msgid "If opt-out is checked, this cont
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_lead.py:715
++#: code:addons/crm/crm_lead.py:712
  #, python-format
  msgid "Lead <b>converted into an Opportunity</b>"
  msgstr ""
@@@ -1212,7 -1212,7 +1190,7 @@@ msgid "Days to Close
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_lead.py:1057
++#: code:addons/crm/crm_lead.py:1075
  #: field:crm.case.section,complete_name:0
  #, python-format
  msgid "unknown"
@@@ -1265,7 -1265,7 +1243,7 @@@ msgid "Sales Marketing Department
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_lead.py:585
++#: code:addons/crm/crm_lead.py:582
  #, python-format
  msgid "Merged lead"
  msgstr ""
@@@ -1281,12 -1281,12 +1259,7 @@@ msgid "Phone Calls Assigned to the curr
  msgstr ""
  
  #. module: crm
--#: view:crm.segmentation:0
--msgid "Segmentation Description"
--msgstr ""
--
--#. module: crm
--#: code:addons/crm/crm_lead.py:581
++#: code:addons/crm/crm_lead.py:578
  #, python-format
  msgid "Merged opportunities"
  msgstr ""
@@@ -1566,7 -1566,7 +1539,7 @@@ msgid "Describe the lead...
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_phonecall.py:290
++#: code:addons/crm/crm_phonecall.py:292
  #, python-format
  msgid "Partner has been <b>created</b>."
  msgstr ""
@@@ -1781,7 -1781,7 +1754,7 @@@ msgid "Support Department
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_lead.py:1060
++#: code:addons/crm/crm_lead.py:1078
  #, python-format
  msgid "Meeting scheduled at '%s'<br> Subject: %s <br> Duration: %s hour(s)"
  msgstr ""
@@@ -1840,7 -1840,7 +1813,7 @@@ msgid "Leads
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_lead.py:579
++#: code:addons/crm/crm_lead.py:576
  #, python-format
  msgid "Merged leads"
  msgstr ""
@@@ -2697,7 -2697,7 +2670,7 @@@ msgid "Stage of case
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_lead.py:585
++#: code:addons/crm/crm_lead.py:582
  #, python-format
  msgid "Merged opportunity"
  msgstr ""
@@@ -2708,6 -2708,6 +2681,18 @@@ msgid "Unassigned
  msgstr ""
  
  #. module: crm
++#: code:addons/crm/crm_lead.py:1064
++#, python-format
++msgid "Logged a call for {date}. {description}"
++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"
@@@ -2761,6 -2761,6 +2746,7 @@@ msgstr "
  #. module: crm
  #: field:crm.case.section,note:0
  #: field:crm.phonecall,description:0
++#: view:crm.segmentation:0
  #: field:crm.segmentation,description:0
  msgid "Description"
  msgstr ""
@@@ -2832,8 -2832,8 +2818,9 @@@ msgid "Referred By
  msgstr ""
  
  #. module: crm
--#: view:crm.phonecall:0
--msgid "Reset to Todo"
++#: code:addons/crm/crm_lead.py:1066
++#, python-format
++msgid "Scheduled a call for {date}. {description}"
  msgstr ""
  
  #. module: crm
@@@ -2842,7 -2842,7 +2829,7 @@@ msgid "Working Hours
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/crm_lead.py:986
++#: code:addons/crm/crm_lead.py:1002
  #: view:crm.lead:0
  #: field:crm.lead2opportunity.partner,partner_id:0
  #: field:crm.lead2opportunity.partner.mass,partner_id:0
@@@ -2870,7 -2870,7 +2857,7 @@@ msgid "Lost
  msgstr ""
  
  #. module: crm
--#: code:addons/crm/wizard/crm_lead_to_opportunity.py:89
++#: code:addons/crm/wizard/crm_lead_to_opportunity.py:92
  #, python-format
  msgid "Closed/Cancelled leads cannot be converted into opportunities."
  msgstr ""
@@@ -2909,11 -2909,11 +2896,6 @@@ msgid "Campaign Name
  msgstr ""
  
  #. module: crm
--#: view:crm.segmentation:0
--msgid "Profiling"
--msgstr ""
--
--#. module: crm
  #: model:ir.model,name:crm.model_crm_phonecall_report
  msgid "Phone calls by user and section"
  msgstr ""