From f4cd8af0c80fbd07dce5ea89a7c5c0fb1f4ad6a1 Mon Sep 17 00:00:00 2001 From: David Tran Date: Wed, 14 Dec 2016 13:17:56 +0700 Subject: [PATCH] [FIX] crm: multilingual support for crm planner stages translation method _t() added into web_planner_crm.js Closes #12809 --- addons/crm/i18n/crm.pot | 235 +++++++++++++++++++- addons/crm/static/src/js/web_planner_crm.js | 36 +-- 2 files changed, 247 insertions(+), 24 deletions(-) diff --git a/addons/crm/i18n/crm.pot b/addons/crm/i18n/crm.pot index 43e8fabcb28..44be4ff85db 100644 --- a/addons/crm/i18n/crm.pot +++ b/addons/crm/i18n/crm.pot @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 10.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-10-10 08:42+0000\n" -"PO-Revision-Date: 2016-10-10 08:42+0000\n" +"POT-Creation-Date: 2016-12-14 13:41+0000\n" +"PO-Revision-Date: 2016-12-14 13:41+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -1082,6 +1082,13 @@ msgstr "" msgid "Close Date" msgstr "" +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:30 +#, python-format +msgid "Close opportunity if: \"pre-sales days * $500\" < \"expected revenue\" * probability" +msgstr "" + #. module: crm #: model:ir.model.fields,field_description:crm.field_crm_lead_date_closed msgid "Closed Date" @@ -1146,6 +1153,11 @@ msgstr "" msgid "Congratulations, you're done!" msgstr "" +#. module: crm +#: model:crm.lead.tag,name:crm.categ_oppor7 +msgid "Consulting" +msgstr "" + #. module: crm #: model:ir.ui.view,arch_db:crm.crm_planner msgid "Consumers, Retailers" @@ -1262,9 +1274,15 @@ msgstr "" msgid "Create Vendors" msgstr "" +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:31 +#, python-format +msgid "Create a Proof of Concept with consultants" +msgstr "" + #. module: crm #: selection:crm.lead2opportunity.partner,action:0 -#: selection:crm.lead2projectissue.wizard,action:0 #: selection:crm.partner.binding,action:0 msgid "Create a new customer" msgstr "" @@ -1378,7 +1396,6 @@ msgstr "" #: code:addons/crm/models/crm_lead.py:1073 #: model:ir.model.fields,field_description:crm.field_crm_lead2opportunity_partner_mass_partner_id #: model:ir.model.fields,field_description:crm.field_crm_lead2opportunity_partner_partner_id -#: model:ir.model.fields,field_description:crm.field_crm_lead2projectissue_wizard_partner_id #: model:ir.model.fields,field_description:crm.field_crm_lead_partner_id #: model:ir.model.fields,field_description:crm.field_crm_partner_binding_partner_id #: model:ir.ui.view,arch_db:crm.crm_case_form_view_leads @@ -1468,6 +1485,13 @@ msgstr "" msgid "Delete" msgstr "" +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:28 +#, python-format +msgid "Demonstration" +msgstr "" + #. module: crm #: model:ir.ui.view,arch_db:crm.crm_planner msgid "Depending on how complex your business is, it may take between 6 months and 18 months for a new\n" @@ -1494,6 +1518,11 @@ msgstr "" msgid "Description that will be added in the message posted for this subtype. If void, the name will be added instead." msgstr "" +#. module: crm +#: model:crm.lead.tag,name:crm.categ_oppor5 +msgid "Design" +msgstr "" + #. module: crm #: model:ir.ui.view,arch_db:crm.crm_planner msgid "Design efficient email campaigns. Send, convert and track performance." @@ -1536,7 +1565,6 @@ msgstr "" #. module: crm #: selection:crm.lead2opportunity.partner,action:0 #: selection:crm.lead2opportunity.partner.mass,action:0 -#: selection:crm.lead2projectissue.wizard,action:0 #: selection:crm.partner.binding,action:0 msgid "Do not link to a customer" msgstr "" @@ -1729,6 +1757,13 @@ msgstr "" msgid "Field used to link the related model to the subtype model when using automatic subscription on a related document. The field is used to compute getattr(related_document.relation_field)." msgstr "" +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:32 +#, python-format +msgid "Final Proposal sent" +msgstr "" + #. module: crm #: selection:base.partner.merge.automatic.wizard,state:0 msgid "Finished" @@ -1779,6 +1814,13 @@ msgstr "" msgid "From %s : %s" msgstr "" +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:31 +#, python-format +msgid "GAP analysis with customer" +msgstr "" + #. module: crm #: model:ir.ui.view,arch_db:crm.crm_planner msgid "Gain high quality insight from surveys, a great way to engage with prospects" @@ -1978,6 +2020,18 @@ msgstr "" msgid "Incoming Emails" msgstr "" +#. module: crm +#: model:crm.lead.tag,name:crm.categ_oppor4 +msgid "Information" +msgstr "" + +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:23 +#, python-format +msgid "Initial Contact" +msgstr "" + #. module: crm #: model:ir.model.fields,help:crm.field_sale_config_settings_module_crm_voip msgid "Integration with Asterisk" @@ -2082,6 +2136,11 @@ msgstr "" msgid "Last Updated on" msgstr "" +#. module: crm +#: model:ir.model.fields,field_description:crm.field_res_users_calendar_last_notif_ack +msgid "Last notification marked as read from base Calendar" +msgstr "" + #. module: crm #: code:addons/crm/models/crm_lead.py:841 #: selection:crm.activity.report,lead_type:0 @@ -2248,7 +2307,6 @@ msgstr "" #. module: crm #: selection:crm.lead2opportunity.partner,action:0 -#: selection:crm.lead2projectissue.wizard,action:0 #: selection:crm.partner.binding,action:0 msgid "Link to an existing customer" msgstr "" @@ -2291,7 +2349,9 @@ msgid "Log an Activity" msgstr "" #. module: crm +#. openerp-web #: code:addons/crm/models/crm_lead.py:1044 +#: code:addons/crm/static/src/js/web_planner_crm.js:34 #: model:ir.ui.view,arch_db:crm.crm_case_form_view_oppor #: model:ir.ui.view,arch_db:crm.crm_opportunity_report_view_search #: model:ir.ui.view,arch_db:crm.view_crm_case_opportunities_filter @@ -2371,6 +2431,13 @@ msgstr "" msgid "Meeting scheduled at '%s'
Subject: %s
Duration: %s hour(s)" msgstr "" +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:25 +#, python-format +msgid "Meeting with a demo. Set Fields: expected revenue, closing date" +msgstr "" + #. module: crm #: model:ir.actions.act_window,name:crm.act_crm_opportunity_calendar_event_new #: model:ir.actions.act_window,name:crm.calendar_event_partner @@ -2557,7 +2624,27 @@ msgid "Name" msgstr "" #. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:28 +#, python-format +msgid "Needs assessment" +msgstr "" + +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:16 +#: code:addons/crm/static/src/js/web_planner_crm.js:34 +#, python-format +msgid "Negotiation" +msgstr "" + +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:23 +#: code:addons/crm/static/src/js/web_planner_crm.js:28 +#: code:addons/crm/static/src/js/web_planner_crm.js:34 #: model:crm.stage,name:crm.stage_lead1 +#, python-format msgid "New" msgstr "" @@ -2566,6 +2653,13 @@ msgstr "" msgid "New Opportunity" msgstr "" +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:17 +#, python-format +msgid "New propspect assigned to the right salesperson" +msgstr "" + #. module: crm #: model:ir.model.fields,field_description:crm.field_crm_lead_date_action_next msgid "Next Action" @@ -2863,6 +2957,11 @@ msgstr "" msgid "Options" msgstr "" +#. module: crm +#: model:crm.lead.tag,name:crm.categ_oppor8 +msgid "Other" +msgstr "" + #. module: crm #: model:ir.ui.view,arch_db:crm.view_crm_case_opportunities_filter msgid "Overdue Activities" @@ -2878,6 +2977,20 @@ msgstr "" msgid "Owner" msgstr "" +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:28 +#, python-format +msgid "POC Sold" +msgstr "" + +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:32 +#, python-format +msgid "POC demonstration to the customer" +msgstr "" + #. module: crm #: model:ir.model.fields,field_description:crm.field_crm_activity_parent_id msgid "Parent" @@ -2940,6 +3053,13 @@ msgstr "" msgid "Phone" msgstr "" +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:24 +#, python-format +msgid "Phone call with following questions: ..." +msgstr "" + #. module: crm #: model:ir.ui.view,arch_db:crm.crm_planner msgid "Phone scripts" @@ -3047,18 +3167,38 @@ msgstr "" msgid "Probable Turnover" msgstr "" +#. module: crm +#: model:crm.lead.tag,name:crm.categ_oppor1 +msgid "Product" +msgstr "" + +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:23 +#, python-format +msgid "Product Demonstration" +msgstr "" + #. module: crm #: model:ir.ui.view,arch_db:crm.crm_planner msgid "Products" msgstr "" #. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:16 +#: code:addons/crm/static/src/js/web_planner_crm.js:23 +#: code:addons/crm/static/src/js/web_planner_crm.js:28 #: model:ir.ui.view,arch_db:crm.crm_planner +#, python-format msgid "Proposal" msgstr "" #. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:34 #: model:crm.stage,name:crm.stage_lead3 +#, python-format msgid "Proposition" msgstr "" @@ -3068,10 +3208,43 @@ msgid "Qualification form (you can use the survey app for this)" msgstr "" #. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:15 +#: code:addons/crm/static/src/js/web_planner_crm.js:28 +#: code:addons/crm/static/src/js/web_planner_crm.js:34 #: model:crm.stage,name:crm.stage_lead2 +#, python-format msgid "Qualified" msgstr "" +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:15 +#, python-format +msgid "Qualified Sponsor" +msgstr "" + +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:26 +#, python-format +msgid "Quotation sent" +msgstr "" + +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:20 +#, python-format +msgid "Quotation sent to customer" +msgstr "" + +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:21 +#, python-format +msgid "Quotation signed by the customer" +msgstr "" + #. module: crm #: model:ir.model.fields,field_description:crm.field_crm_lead_priority msgid "Rating" @@ -3117,7 +3290,6 @@ msgstr "" #. module: crm #: model:ir.model.fields,field_description:crm.field_crm_lead2opportunity_partner_action #: model:ir.model.fields,field_description:crm.field_crm_lead2opportunity_partner_mass_action -#: model:ir.model.fields,field_description:crm.field_crm_lead2projectissue_wizard_action #: model:ir.model.fields,field_description:crm.field_crm_partner_binding_action msgid "Related Customer" msgstr "" @@ -3297,6 +3469,19 @@ msgstr "" msgid "Sequence" msgstr "" +#. module: crm +#: model:crm.lead.tag,name:crm.categ_oppor3 +msgid "Services" +msgstr "" + +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:18 +#: code:addons/crm/static/src/js/web_planner_crm.js:29 +#, python-format +msgid "Set fields: Expected Revenue, Expected Closing Date, Next Action" +msgstr "" + #. module: crm #: model:ir.actions.server,name:crm.action_set_team_sales_department msgid "Set team to Sales Department" @@ -3362,6 +3547,11 @@ msgstr "" msgid "Slides" msgstr "" +#. module: crm +#: model:crm.lead.tag,name:crm.categ_oppor2 +msgid "Software" +msgstr "" + #. module: crm #: model:ir.ui.view,arch_db:crm.crm_planner msgid "Solution Selling" @@ -3529,6 +3719,20 @@ msgstr "" msgid "Templates of quotations (use Odoo Online Proposals for this)" msgstr "" +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:15 +#, python-format +msgid "Territory" +msgstr "" + +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:20 +#, python-format +msgid "The customer came back to you to discuss your quotation" +msgstr "" + #. module: crm #: model:ir.model.fields,help:crm.field_crm_team_alias_id msgid "The email address associated with this team. New emails received will automatically create new leads assigned to the team." @@ -3697,6 +3901,11 @@ msgstr "" msgid "Tracking" msgstr "" +#. module: crm +#: model:crm.lead.tag,name:crm.categ_oppor6 +msgid "Training" +msgstr "" + #. module: crm #: model:ir.model.fields,field_description:crm.field_crm_activity_report_lead_type #: model:ir.model.fields,field_description:crm.field_crm_lead_type @@ -3961,7 +4170,12 @@ msgid "Wizard" msgstr "" #. module: crm +#. openerp-web #: code:addons/crm/models/crm_lead.py:1043 +#: code:addons/crm/static/src/js/web_planner_crm.js:16 +#: code:addons/crm/static/src/js/web_planner_crm.js:23 +#: code:addons/crm/static/src/js/web_planner_crm.js:28 +#: code:addons/crm/static/src/js/web_planner_crm.js:34 #: model:crm.stage,name:crm.stage_lead4 #: model:ir.ui.view,arch_db:crm.crm_activity_report_view_search #: model:ir.ui.view,arch_db:crm.crm_case_form_view_leads @@ -3987,6 +4201,13 @@ msgstr "" msgid "Working Time" msgstr "" +#. module: crm +#. openerp-web +#: code:addons/crm/static/src/js/web_planner_crm.js:19 +#, python-format +msgid "You are in discussion with the decision maker and HE agreed on his pain points" +msgstr "" + #. module: crm #: code:addons/crm/wizard/base_partner_merge.py:306 #, python-format diff --git a/addons/crm/static/src/js/web_planner_crm.js b/addons/crm/static/src/js/web_planner_crm.js index 0330c8eb29b..f15e8c2d4d0 100644 --- a/addons/crm/static/src/js/web_planner_crm.js +++ b/addons/crm/static/src/js/web_planner_crm.js @@ -2,6 +2,8 @@ odoo.define('planner_crm.planner', function (require) { "use strict"; var planner = require('web.planner.common'); +var core = require('web.core'); +var _t = core._t; planner.PlannerDialog.include({ prepare_planner_event: function() { @@ -10,26 +12,26 @@ planner.PlannerDialog.include({ if(self.planner['planner_application'] == 'planner_crm') { var stages = { 'solution_selling': [ - 'Territory', 'Qualified', 'Qualified Sponsor', - 'Proposal', 'Negotiation', 'Won', '', - 'New propspect assigned to the right salesperson', - 'Set fields: Expected Revenue, Expected Closing Date, Next Action', - 'You are in discussion with the decision maker and HE agreed on his pain points', - 'Quotation sent to customer', 'The customer came back to you to discuss your quotation', - 'Quotation signed by the customer', ''], + _t('Territory'), _t('Qualified'), _t('Qualified Sponsor'), + _t('Proposal'), _t('Negotiation'), _t('Won'), '', + _t('New propspect assigned to the right salesperson'), + _t('Set fields: Expected Revenue, Expected Closing Date, Next Action'), + _t('You are in discussion with the decision maker and HE agreed on his pain points'), + _t('Quotation sent to customer'), _t('The customer came back to you to discuss your quotation'), + _t('Quotation signed by the customer'), ''], 'b2c': [ - 'New', 'Initial Contact', 'Product Demonstration', 'Proposal', 'Won', '', '', - '', 'Phone call with following questions: ...', - 'Meeting with a demo. Set Fields: expected revenue, closing date', - 'Quotation sent', '', '', ''], + _t('New'), _t('Initial Contact'), _t('Product Demonstration'), _t('Proposal'), _t('Won'), '', '', + '', _t('Phone call with following questions: ...'), + _t('Meeting with a demo. Set Fields: expected revenue, closing date'), + _t('Quotation sent'), '', '', ''], 'b2b': [ - 'New', 'Qualified', 'Needs assessment', 'POC Sold', 'Demonstration', 'Proposal', 'Won', - 'Set fields: Expected Revenue, Expected Closing Date, Next Action', - 'Close opportunity if: "pre-sales days * $500" < "expected revenue" * probability', - 'GAP analysis with customer', 'Create a Proof of Concept with consultants', - 'POC demonstration to the customer', 'Final Proposal sent', ''], + _t('New'), _t('Qualified'), _t('Needs assessment'), _t('POC Sold'), _t('Demonstration'), _t('Proposal'), _t('Won'), + _t('Set fields: Expected Revenue, Expected Closing Date, Next Action'), + _t('Close opportunity if: "pre-sales days * $500" < "expected revenue" * probability'), + _t('GAP analysis with customer'), _t('Create a Proof of Concept with consultants'), + _t('POC demonstration to the customer'), _t('Final Proposal sent'), ''], 'odoo_default': [ - 'New', 'Qualified', 'Proposition', 'Negotiation', 'Won', 'Lost', '', + _t('New'), _t('Qualified'), _t('Proposition'), _t('Negotiation'), _t('Won'), _t('Lost'), '', '', '', '', '', '', '', ''] } self.$el.on('change', '#input_element_pipeline', function(ev) {