From e77d85c8b4fe34a35ec23881751f14f656b7f1ad Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Sat, 12 Mar 2016 04:04:15 -0500 Subject: [PATCH 1/2] OCA Transbot updated translations from Transifex --- crm_location/i18n/bg.po | 39 ++++++++++++++++++++++++++++++++++++ crm_location/i18n/ca.po | 39 ++++++++++++++++++++++++++++++++++++ crm_location/i18n/de.po | 40 +++++++++++++++++++++++++++++++++++++ crm_location/i18n/es.po | 40 +++++++++++++++++++++++++++++++++++++ crm_location/i18n/es_ES.po | 39 ++++++++++++++++++++++++++++++++++++ crm_location/i18n/fi.po | 39 ++++++++++++++++++++++++++++++++++++ crm_location/i18n/fr.po | 39 ++++++++++++++++++++++++++++++++++++ crm_location/i18n/hr.po | 40 +++++++++++++++++++++++++++++++++++++ crm_location/i18n/it.po | 41 ++++++++++++++++++++++++++++++++++++++ crm_location/i18n/pt_BR.po | 39 ++++++++++++++++++++++++++++++++++++ crm_location/i18n/sk.po | 39 ++++++++++++++++++++++++++++++++++++ crm_location/i18n/sl.po | 40 +++++++++++++++++++++++++++++++++++++ crm_location/i18n/tr_TR.po | 39 ++++++++++++++++++++++++++++++++++++ crm_location/i18n/zh_CN.po | 39 ++++++++++++++++++++++++++++++++++++ 14 files changed, 552 insertions(+) create mode 100644 crm_location/i18n/bg.po create mode 100644 crm_location/i18n/ca.po create mode 100644 crm_location/i18n/de.po create mode 100644 crm_location/i18n/es.po create mode 100644 crm_location/i18n/es_ES.po create mode 100644 crm_location/i18n/fi.po create mode 100644 crm_location/i18n/fr.po create mode 100644 crm_location/i18n/hr.po create mode 100644 crm_location/i18n/it.po create mode 100644 crm_location/i18n/pt_BR.po create mode 100644 crm_location/i18n/sk.po create mode 100644 crm_location/i18n/sl.po create mode 100644 crm_location/i18n/tr_TR.po create mode 100644 crm_location/i18n/zh_CN.po diff --git a/crm_location/i18n/bg.po b/crm_location/i18n/bg.po new file mode 100644 index 00000000000..9cea7f4ebce --- /dev/null +++ b/crm_location/i18n/bg.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-02 14:15+0000\n" +"PO-Revision-Date: 2016-03-10 18:53+0000\n" +"Last-Translator: <>\n" +"Language-Team: Bulgarian (http://www.transifex.com/oca/OCA-crm-8-0/language/bg/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: bg\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_location +#: view:crm.lead:crm_location.crm_case_form_view_leads +#: view:crm.lead:crm_location.crm_case_form_view_oppor +msgid "City completion" +msgstr "" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Следа/Възможност" + +#. module: crm_location +#: field:crm.lead,location_id:0 +msgid "Location" +msgstr "" + +#. module: crm_location +#: help:crm.lead,location_id:0 +msgid "Use the city name or the zip code to search the location" +msgstr "" diff --git a/crm_location/i18n/ca.po b/crm_location/i18n/ca.po new file mode 100644 index 00000000000..812d22ba804 --- /dev/null +++ b/crm_location/i18n/ca.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-28 02:26+0000\n" +"PO-Revision-Date: 2016-03-10 18:53+0000\n" +"Last-Translator: <>\n" +"Language-Team: Catalan (http://www.transifex.com/oca/OCA-crm-8-0/language/ca/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ca\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_location +#: view:crm.lead:crm_location.crm_case_form_view_leads +#: view:crm.lead:crm_location.crm_case_form_view_oppor +msgid "City completion" +msgstr "" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "" + +#. module: crm_location +#: field:crm.lead,location_id:0 +msgid "Location" +msgstr "Ubicació " + +#. module: crm_location +#: help:crm.lead,location_id:0 +msgid "Use the city name or the zip code to search the location" +msgstr "" diff --git a/crm_location/i18n/de.po b/crm_location/i18n/de.po new file mode 100644 index 00000000000..e3eb4e94786 --- /dev/null +++ b/crm_location/i18n/de.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +# Rudolf Schnapka , 2017 +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-28 02:26+0000\n" +"PO-Revision-Date: 2017-04-12 12:05+0000\n" +"Last-Translator: Rudolf Schnapka \n" +"Language-Team: German (http://www.transifex.com/oca/OCA-crm-8-0/language/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_location +#: view:crm.lead:crm_location.crm_case_form_view_leads +#: view:crm.lead:crm_location.crm_case_form_view_oppor +msgid "City completion" +msgstr "Stadtvervollständigung" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Lead/Chance" + +#. module: crm_location +#: field:crm.lead,location_id:0 +msgid "Location" +msgstr "Standort" + +#. module: crm_location +#: help:crm.lead,location_id:0 +msgid "Use the city name or the zip code to search the location" +msgstr "Verwenden Sie Ort oder PLZ, um den Standort festzulegen" diff --git a/crm_location/i18n/es.po b/crm_location/i18n/es.po new file mode 100644 index 00000000000..4dfd7041b30 --- /dev/null +++ b/crm_location/i18n/es.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +# Carles Antoli , 2016 +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-04-14 03:55+0000\n" +"PO-Revision-Date: 2016-04-07 15:47+0000\n" +"Last-Translator: Carles Antoli \n" +"Language-Team: Spanish (http://www.transifex.com/oca/OCA-crm-8-0/language/es/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_location +#: view:crm.lead:crm_location.crm_case_form_view_leads +#: view:crm.lead:crm_location.crm_case_form_view_oppor +msgid "City completion" +msgstr "Autocompletado a partir de la ciudad" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Iniciativa/Oportunidad" + +#. module: crm_location +#: field:crm.lead,location_id:0 +msgid "Location" +msgstr "Ubicación" + +#. module: crm_location +#: help:crm.lead,location_id:0 +msgid "Use the city name or the zip code to search the location" +msgstr "Utilice el nombre de la ciudad o el código postal para buscar la ubicación" diff --git a/crm_location/i18n/es_ES.po b/crm_location/i18n/es_ES.po new file mode 100644 index 00000000000..1753f652ddf --- /dev/null +++ b/crm_location/i18n/es_ES.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-13 09:09+0000\n" +"PO-Revision-Date: 2016-03-10 18:53+0000\n" +"Last-Translator: <>\n" +"Language-Team: Spanish (Spain) (http://www.transifex.com/oca/OCA-crm-8-0/language/es_ES/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es_ES\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_location +#: view:crm.lead:crm_location.crm_case_form_view_leads +#: view:crm.lead:crm_location.crm_case_form_view_oppor +msgid "City completion" +msgstr "" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "" + +#. module: crm_location +#: field:crm.lead,location_id:0 +msgid "Location" +msgstr "Ubicación" + +#. module: crm_location +#: help:crm.lead,location_id:0 +msgid "Use the city name or the zip code to search the location" +msgstr "" diff --git a/crm_location/i18n/fi.po b/crm_location/i18n/fi.po new file mode 100644 index 00000000000..d4e86358218 --- /dev/null +++ b/crm_location/i18n/fi.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-17 01:26+0000\n" +"PO-Revision-Date: 2016-03-10 18:53+0000\n" +"Last-Translator: <>\n" +"Language-Team: Finnish (http://www.transifex.com/oca/OCA-crm-8-0/language/fi/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_location +#: view:crm.lead:crm_location.crm_case_form_view_leads +#: view:crm.lead:crm_location.crm_case_form_view_oppor +msgid "City completion" +msgstr "" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "" + +#. module: crm_location +#: field:crm.lead,location_id:0 +msgid "Location" +msgstr "Sijainti" + +#. module: crm_location +#: help:crm.lead,location_id:0 +msgid "Use the city name or the zip code to search the location" +msgstr "" diff --git a/crm_location/i18n/fr.po b/crm_location/i18n/fr.po new file mode 100644 index 00000000000..147168e4969 --- /dev/null +++ b/crm_location/i18n/fr.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-02 14:15+0000\n" +"PO-Revision-Date: 2016-03-10 18:53+0000\n" +"Last-Translator: <>\n" +"Language-Team: French (http://www.transifex.com/oca/OCA-crm-8-0/language/fr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: crm_location +#: view:crm.lead:crm_location.crm_case_form_view_leads +#: view:crm.lead:crm_location.crm_case_form_view_oppor +msgid "City completion" +msgstr "" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Piste/Opportunité" + +#. module: crm_location +#: field:crm.lead,location_id:0 +msgid "Location" +msgstr "Emplacement" + +#. module: crm_location +#: help:crm.lead,location_id:0 +msgid "Use the city name or the zip code to search the location" +msgstr "" diff --git a/crm_location/i18n/hr.po b/crm_location/i18n/hr.po new file mode 100644 index 00000000000..4b9755667e2 --- /dev/null +++ b/crm_location/i18n/hr.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +# Ana-Maria Olujić , 2016 +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-08-15 00:49+0000\n" +"PO-Revision-Date: 2016-08-19 13:47+0000\n" +"Last-Translator: Ana-Maria Olujić \n" +"Language-Team: Croatian (http://www.transifex.com/oca/OCA-crm-8-0/language/hr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr\n" +"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" + +#. module: crm_location +#: view:crm.lead:crm_location.crm_case_form_view_leads +#: view:crm.lead:crm_location.crm_case_form_view_oppor +msgid "City completion" +msgstr "Završetak grada" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Potencijalni klijent" + +#. module: crm_location +#: field:crm.lead,location_id:0 +msgid "Location" +msgstr "Lokacija" + +#. module: crm_location +#: help:crm.lead,location_id:0 +msgid "Use the city name or the zip code to search the location" +msgstr "Upište ime grada ili poštanski broj kako biste pretražili lokaciju." diff --git a/crm_location/i18n/it.po b/crm_location/i18n/it.po new file mode 100644 index 00000000000..aa676e98a9e --- /dev/null +++ b/crm_location/i18n/it.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +# Paolo Valier, 2016 +# Paolo Valier, 2016 +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-14 02:20+0000\n" +"PO-Revision-Date: 2017-01-14 17:50+0000\n" +"Last-Translator: Paolo Valier\n" +"Language-Team: Italian (http://www.transifex.com/oca/OCA-crm-8-0/language/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_location +#: view:crm.lead:crm_location.crm_case_form_view_leads +#: view:crm.lead:crm_location.crm_case_form_view_oppor +msgid "City completion" +msgstr "Completamento Città" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Lead/Opportunità" + +#. module: crm_location +#: field:crm.lead,location_id:0 +msgid "Location" +msgstr "Posizione" + +#. module: crm_location +#: help:crm.lead,location_id:0 +msgid "Use the city name or the zip code to search the location" +msgstr "" diff --git a/crm_location/i18n/pt_BR.po b/crm_location/i18n/pt_BR.po new file mode 100644 index 00000000000..6a310a8b1e7 --- /dev/null +++ b/crm_location/i18n/pt_BR.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-17 01:26+0000\n" +"PO-Revision-Date: 2016-03-10 18:53+0000\n" +"Last-Translator: <>\n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-crm-8-0/language/pt_BR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: crm_location +#: view:crm.lead:crm_location.crm_case_form_view_leads +#: view:crm.lead:crm_location.crm_case_form_view_oppor +msgid "City completion" +msgstr "" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Prospector/Oportunidade" + +#. module: crm_location +#: field:crm.lead,location_id:0 +msgid "Location" +msgstr "Location" + +#. module: crm_location +#: help:crm.lead,location_id:0 +msgid "Use the city name or the zip code to search the location" +msgstr "" diff --git a/crm_location/i18n/sk.po b/crm_location/i18n/sk.po new file mode 100644 index 00000000000..42782e27309 --- /dev/null +++ b/crm_location/i18n/sk.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-17 01:26+0000\n" +"PO-Revision-Date: 2016-03-10 18:53+0000\n" +"Last-Translator: <>\n" +"Language-Team: Slovak (http://www.transifex.com/oca/OCA-crm-8-0/language/sk/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sk\n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: crm_location +#: view:crm.lead:crm_location.crm_case_form_view_leads +#: view:crm.lead:crm_location.crm_case_form_view_oppor +msgid "City completion" +msgstr "" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Iniciatíva/Príležitosť" + +#. module: crm_location +#: field:crm.lead,location_id:0 +msgid "Location" +msgstr "" + +#. module: crm_location +#: help:crm.lead,location_id:0 +msgid "Use the city name or the zip code to search the location" +msgstr "" diff --git a/crm_location/i18n/sl.po b/crm_location/i18n/sl.po new file mode 100644 index 00000000000..02a80e84f4f --- /dev/null +++ b/crm_location/i18n/sl.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +# Matjaž Mozetič , 2016 +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-03-10 18:52+0000\n" +"PO-Revision-Date: 2016-03-11 10:37+0000\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-crm-8-0/language/sl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" + +#. module: crm_location +#: view:crm.lead:crm_location.crm_case_form_view_leads +#: view:crm.lead:crm_location.crm_case_form_view_oppor +msgid "City completion" +msgstr "Dokončevanje kraja" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Indic/priložnost" + +#. module: crm_location +#: field:crm.lead,location_id:0 +msgid "Location" +msgstr "Lokacija" + +#. module: crm_location +#: help:crm.lead,location_id:0 +msgid "Use the city name or the zip code to search the location" +msgstr "Uporabi ime kraja ali poštno številko za iskanje lokacije" diff --git a/crm_location/i18n/tr_TR.po b/crm_location/i18n/tr_TR.po new file mode 100644 index 00000000000..a1c5baf7aa3 --- /dev/null +++ b/crm_location/i18n/tr_TR.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-31 02:41+0000\n" +"PO-Revision-Date: 2016-03-10 18:53+0000\n" +"Last-Translator: <>\n" +"Language-Team: Turkish (Turkey) (http://www.transifex.com/oca/OCA-crm-8-0/language/tr_TR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: tr_TR\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: crm_location +#: view:crm.lead:crm_location.crm_case_form_view_leads +#: view:crm.lead:crm_location.crm_case_form_view_oppor +msgid "City completion" +msgstr "" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "" + +#. module: crm_location +#: field:crm.lead,location_id:0 +msgid "Location" +msgstr "Konum" + +#. module: crm_location +#: help:crm.lead,location_id:0 +msgid "Use the city name or the zip code to search the location" +msgstr "" diff --git a/crm_location/i18n/zh_CN.po b/crm_location/i18n/zh_CN.po new file mode 100644 index 00000000000..dd095ecf78a --- /dev/null +++ b/crm_location/i18n/zh_CN.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-02-25 01:51+0000\n" +"PO-Revision-Date: 2016-03-10 18:53+0000\n" +"Last-Translator: <>\n" +"Language-Team: Chinese (China) (http://www.transifex.com/oca/OCA-crm-8-0/language/zh_CN/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: zh_CN\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: crm_location +#: view:crm.lead:crm_location.crm_case_form_view_leads +#: view:crm.lead:crm_location.crm_case_form_view_oppor +msgid "City completion" +msgstr "" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "线索/商机" + +#. module: crm_location +#: field:crm.lead,location_id:0 +msgid "Location" +msgstr "" + +#. module: crm_location +#: help:crm.lead,location_id:0 +msgid "Use the city name or the zip code to search the location" +msgstr "" From 7461c1bfec523c583ea2d19d20283681a826f6a0 Mon Sep 17 00:00:00 2001 From: "Luis M. Ontalba" Date: Thu, 8 Jun 2017 09:13:10 +0200 Subject: [PATCH 2/2] [MIG] crm_location: Migrated to 10.0 --- crm_location/README.rst | 21 ++++++---- crm_location/__init__.py | 23 +---------- crm_location/__manifest__.py | 33 ++++------------ crm_location/models/__init__.py | 23 +---------- crm_location/models/crm_lead.py | 42 +++++--------------- crm_location/tests/__init__.py | 4 ++ crm_location/tests/test_crm_location.py | 52 +++++++++++++++++++++++++ crm_location/views/crm_lead_view.xml | 6 +-- 8 files changed, 90 insertions(+), 114 deletions(-) create mode 100644 crm_location/tests/__init__.py create mode 100644 crm_location/tests/test_crm_location.py diff --git a/crm_location/README.rst b/crm_location/README.rst index 9a1cde943d3..21f9cea14bc 100644 --- a/crm_location/README.rst +++ b/crm_location/README.rst @@ -17,21 +17,28 @@ To install this module, you need: * crm * base_location located in OCA/partner-contact repo +Usage +===== + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/111/10.0 + Bug Tracker =========== -Bugs are tracked on `GitHub Issues `_. -In case of trouble, please check there if your issue has already been reported. -If you spotted it first, help us smashing it by providing a detailed and welcomed feedback -`here `_. +Bugs are tracked on `GitHub Issues +`_. In case of trouble, please +check there if your issue has already been reported. If you spotted it first, +help us smash it by providing detailed and welcomed feedback. Contributors ------------ * Endika Iglesias -* Rafael Blasco - +* Rafael Blasco +* Luis M. Ontalba Maintainer ---------- @@ -46,4 +53,4 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -To contribute to this module, please visit http://odoo-community.org. \ No newline at end of file +To contribute to this module, please visit https://odoo-community.org. diff --git a/crm_location/__init__.py b/crm_location/__init__.py index b5c82df182c..4d8ae82d6d7 100644 --- a/crm_location/__init__.py +++ b/crm_location/__init__.py @@ -1,25 +1,4 @@ # -*- coding: utf-8 -*- -# Python source code encoding : https://www.python.org/dev/peps/pep-0263/ -############################################################################## -# -# OpenERP, Open Source Management Solution -# This module copyright : -# (c) 2015 Antiun Ingenieria, SL (Madrid, Spain, http://www.antiun.com) -# Endika Iglesias -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from . import models diff --git a/crm_location/__manifest__.py b/crm_location/__manifest__.py index 483ba88e5ff..736f39d5019 100644 --- a/crm_location/__manifest__.py +++ b/crm_location/__manifest__.py @@ -1,39 +1,20 @@ # -*- coding: utf-8 -*- -# Python source code encoding : https://www.python.org/dev/peps/pep-0263/ -############################################################################## -# -# OpenERP, Open Source Management Solution -# This module copyright : -# (c) 2015 Antiun Ingenieria, SL (Madrid, Spain, http://www.antiun.com) -# Endika Iglesias -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## +# Copyright 2015 Antiun Ingenieria - Endika Iglesias +# Copyright 2017 Tecnativa - Luis Martínez +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html { 'name': 'CRM location', 'category': 'Customer Relationship Management', - 'version': '8.0.1.0.0', + 'version': '10.0.1.0.0', 'depends': [ 'crm', 'base_location', ], 'data': ['views/crm_lead_view.xml'], - 'author': 'Antiun Ingeniería S.L., ' + 'author': 'Tecnativa, ' 'Odoo Community Association (OCA)', - 'website': 'http://www.antiun.com', + 'website': 'https://www.tecnativa.com', 'license': 'AGPL-3', - 'installable': False, + 'installable': True, } diff --git a/crm_location/models/__init__.py b/crm_location/models/__init__.py index 04bcd2f1eb0..a2258dbb77f 100644 --- a/crm_location/models/__init__.py +++ b/crm_location/models/__init__.py @@ -1,25 +1,4 @@ # -*- coding: utf-8 -*- -# Python source code encoding : https://www.python.org/dev/peps/pep-0263/ -############################################################################## -# -# OpenERP, Open Source Management Solution -# This module copyright : -# (c) 2015 Antiun Ingenieria, SL (Madrid, Spain, http://www.antiun.com) -# Endika Iglesias -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from . import crm_lead diff --git a/crm_location/models/crm_lead.py b/crm_location/models/crm_lead.py index d69afbf126f..b976591fb89 100644 --- a/crm_location/models/crm_lead.py +++ b/crm_location/models/crm_lead.py @@ -1,34 +1,15 @@ # -*- coding: utf-8 -*- -# Python source code encoding : https://www.python.org/dev/peps/pep-0263/ -############################################################################## -# -# OpenERP, Open Source Management Solution -# This module copyright : -# (c) 2015 Antiun Ingenieria, SL (Madrid, Spain, http://www.antiun.com) -# Endika Iglesias -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU Affero General Public License as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -############################################################################## +# Copyright 2015 Antiun Ingenieria - Endika Iglesias +# Copyright 2017 Tecnativa - Luis Martínez +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html -from openerp import models, fields, api +from odoo import api, fields, models class CrmLead(models.Model): _inherit = 'crm.lead' - @api.one + @api.multi @api.onchange('location_id') def on_change_city(self): if self.location_id: @@ -44,12 +25,7 @@ def on_change_city(self): help='Use the city name or the zip code to search the location', ) - @api.multi - def on_change_partner_id(self, partner_id): - res = super(CrmLead, self).on_change_partner_id(partner_id) - if 'value' not in res: - res['value'] = {} - if partner_id: - partner = self.env['res.partner'].browse(partner_id) - res['value']['location_id'] = partner.zip_id.id - return {'value': res['value']} + @api.onchange('partner_id') + def onchange_partner_id_crm_location(self): + if self.partner_id: + self.location_id = self.partner_id.zip_id.id diff --git a/crm_location/tests/__init__.py b/crm_location/tests/__init__.py new file mode 100644 index 00000000000..d1c4c63b7ac --- /dev/null +++ b/crm_location/tests/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0 + +from . import test_crm_location diff --git a/crm_location/tests/test_crm_location.py b/crm_location/tests/test_crm_location.py new file mode 100644 index 00000000000..45622cbcc15 --- /dev/null +++ b/crm_location/tests/test_crm_location.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +# Copyright 2017 Tecnativa - Luis M. Ontalba +# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0 + +from odoo.tests import common + + +class TestCrmLocation(common.SavepointCase): + + @classmethod + def setUpClass(cls): + super(TestCrmLocation, cls).setUpClass() + cls.country = cls.env['res.country'].create({ + 'name': 'Country test', + }) + cls.state = cls.env['res.country.state'].create({ + 'name': 'Test state', + 'code': 'Test state code', + 'country_id': cls.country.id, + }) + cls.location = cls.env['res.better.zip'].create({ + 'name': '12345', + 'city': 'Test city', + 'country_id': cls.country.id, + 'code': 'Test code', + 'state_id': cls.state.id, + }) + cls.lead = cls.env['crm.lead'].create({ + 'name': 'Test lead', + }) + cls.partner = cls.env['res.partner'].create({ + 'name': 'Test partner name', + }) + + def test_on_change_city(self): + lead = self.lead + location = self.location + lead.location_id = location.id + lead.on_change_city() + self.assertEqual(lead.zip, location.name) + self.assertEqual(lead.city, location.city) + self.assertEqual(lead.state_id, location.state_id) + self.assertEqual(lead.country_id, location.country_id) + + def test_onchange_partner_id_crm_location(self): + lead = self.lead + partner = self.partner + location = self.location + partner.zip_id = location.id + lead.partner_id = partner.id + lead.onchange_partner_id_crm_location() + self.assertEqual(lead.location_id, partner.zip_id) diff --git a/crm_location/views/crm_lead_view.xml b/crm_location/views/crm_lead_view.xml index 31fc9c0d9d2..f6c233e4094 100644 --- a/crm_location/views/crm_lead_view.xml +++ b/crm_location/views/crm_lead_view.xml @@ -1,6 +1,5 @@ - - + Add city completion helper field @@ -30,5 +29,4 @@ - - +