diff --git a/crm_location/README.rst b/crm_location/README.rst new file mode 100644 index 00000000000..baa8965a4df --- /dev/null +++ b/crm_location/README.rst @@ -0,0 +1,94 @@ +============ +CRM location +============ + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:6059e71066f0dffb0b5e61bd534e2cec93dbb1e3db0b01024283b5b323f92751 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png + :target: https://odoo-community.org/page/development-status + :alt: Beta +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 +.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github + :target: https://github.com/OCA/crm/tree/17.0/crm_location + :alt: OCA/crm +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/crm-17-0/crm-17-0-crm_location + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/crm&target_branch=17.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module introduces a better zip. + +It enables zip, city, state and country auto-completion on lead. + +**Table of contents** + +.. contents:: + :local: + +Installation +============ + +To install this module, you need: + +- crm +- base_location located in OCA/partner-contact repo + +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 to smash it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +------- + +* Tecnativa + +Contributors +------------ + +- Endika Iglesias +- Rafael Blasco +- Luis M. Ontalba +- Alexandre Díaz +- Tharathip Chaweewongphan +- Ruchir Shukla +- `APSL-Nagarro `__: + + - Patryk Pyczko + +Maintainers +----------- + +This module is maintained by the OCA. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +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. + +This module is part of the `OCA/crm `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/crm_location/__init__.py b/crm_location/__init__.py new file mode 100644 index 00000000000..c0a55456570 --- /dev/null +++ b/crm_location/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html + +from . import models diff --git a/crm_location/__manifest__.py b/crm_location/__manifest__.py new file mode 100644 index 00000000000..591f5879265 --- /dev/null +++ b/crm_location/__manifest__.py @@ -0,0 +1,15 @@ +# Copyright 2015 Antiun Ingenieria - Endika Iglesias +# Copyright 2017 Tecnativa - Luis Martínez +# License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html + +{ + "name": "CRM location", + "category": "Customer Relationship Management", + "version": "17.0.1.0.0", + "depends": ["crm", "base_location"], + "data": ["views/crm_lead_view.xml"], + "author": "Tecnativa, Odoo Community Association (OCA)", + "website": "https://github.com/OCA/crm", + "license": "AGPL-3", + "installable": True, +} diff --git a/crm_location/i18n/bg.po b/crm_location/i18n/bg.po new file mode 100644 index 00000000000..b92492b22e5 --- /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" +"Language: bg\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_location +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form +msgid "City completion" +msgstr "" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Следа/Възможност" + +#. module: crm_location +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id +msgid "Location" +msgstr "" + +#. module: crm_location +#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id +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..794f1cd7558 --- /dev/null +++ b/crm_location/i18n/ca.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-19 02:41+0000\n" +"PO-Revision-Date: 2019-12-27 14:13+0000\n" +"Last-Translator: Carles Antoli \n" +"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" +"Language: ca\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.10\n" + +#. module: crm_location +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form +msgid "City completion" +msgstr "Autocompletat a partir de la ciutat" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Iniciativa/Oportunitat" + +#. module: crm_location +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id +msgid "Location" +msgstr "Ubicació" + +#. module: crm_location +#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id +msgid "Use the city name or the zip code to search the location" +msgstr "Utilitzeu el nom de la ciutat o el codi postal per cercar l'ubicació" diff --git a/crm_location/i18n/crm_location.pot b/crm_location/i18n/crm_location.pot new file mode 100644 index 00000000000..7544d7eab0a --- /dev/null +++ b/crm_location/i18n/crm_location.pot @@ -0,0 +1,34 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 16.0\n" +"Report-Msgid-Bugs-To: \n" +"Last-Translator: \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: crm_location +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form +msgid "City completion" +msgstr "" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "" + +#. module: crm_location +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id +msgid "Location" +msgstr "" + +#. module: crm_location +#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id +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..77d211212ef --- /dev/null +++ b/crm_location/i18n/de.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-19 02:41+0000\n" +"PO-Revision-Date: 2017-06-19 02:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/de/)\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_location +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form +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 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id +msgid "Location" +msgstr "Standort" + +#. module: crm_location +#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id +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..45ba7ed0bd2 --- /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: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-19 02:41+0000\n" +"PO-Revision-Date: 2017-06-19 02:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_location +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form +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 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id +msgid "Location" +msgstr "Ubicación" + +#. module: crm_location +#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id +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..7cac68b43ee --- /dev/null +++ b/crm_location/i18n/es_ES.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-19 02:41+0000\n" +"PO-Revision-Date: 2017-06-19 02:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (Spain) (https://www.transifex.com/oca/teams/23907/" +"es_ES/)\n" +"Language: es_ES\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_location +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form +msgid "City completion" +msgstr "" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "" + +#. module: crm_location +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id +msgid "Location" +msgstr "Ubicación" + +#. module: crm_location +#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id +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..542be68291b --- /dev/null +++ b/crm_location/i18n/fi.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-19 02:41+0000\n" +"PO-Revision-Date: 2023-03-22 15:23+0000\n" +"Last-Translator: Ossi Mantylahti \n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"Language: fi\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.14.1\n" + +#. module: crm_location +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form +msgid "City completion" +msgstr "Kaupungin täydennys" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Liidi / myyntimahdollisuus" + +#. module: crm_location +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id +msgid "Location" +msgstr "Sijainti" + +#. module: crm_location +#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id +msgid "Use the city name or the zip code to search the location" +msgstr "Käytä kaupungin nimeä tai postinumeroa paikan hakuun" diff --git a/crm_location/i18n/fr.po b/crm_location/i18n/fr.po new file mode 100644 index 00000000000..4890fe38857 --- /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: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-19 02:41+0000\n" +"PO-Revision-Date: 2017-06-19 02:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: crm_location +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form +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 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id +msgid "Location" +msgstr "Emplacement" + +#. module: crm_location +#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id +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..19b26fe8c32 --- /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: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-19 02:41+0000\n" +"PO-Revision-Date: 2017-06-19 02:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/hr/)\n" +"Language: hr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \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 +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form +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 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id +msgid "Location" +msgstr "Lokacija" + +#. module: crm_location +#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id +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..7b7f594b7d7 --- /dev/null +++ b/crm_location/i18n/it.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-19 02:41+0000\n" +"PO-Revision-Date: 2023-07-12 14:10+0000\n" +"Last-Translator: Francesco Foresti \n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/it/)\n" +"Language: it\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" + +#. module: crm_location +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form +msgid "City completion" +msgstr "Completamento città" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Contatto/Opportunità" + +#. module: crm_location +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id +msgid "Location" +msgstr "Ubicazione" + +#. module: crm_location +#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id +msgid "Use the city name or the zip code to search the location" +msgstr "Usare il nome della città o il CAP per cercare la posizione" diff --git a/crm_location/i18n/nl_NL.po b/crm_location/i18n/nl_NL.po new file mode 100644 index 00000000000..25ad545e336 --- /dev/null +++ b/crm_location/i18n/nl_NL.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +# Peter Hageman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-24 01:39+0000\n" +"PO-Revision-Date: 2017-06-24 01:39+0000\n" +"Last-Translator: Peter Hageman , 2017\n" +"Language-Team: Dutch (Netherlands) (https://www.transifex.com/oca/" +"teams/23907/nl_NL/)\n" +"Language: nl_NL\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: crm_location +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form +msgid "City completion" +msgstr "" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "" + +#. module: crm_location +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id +msgid "Location" +msgstr "Locatie" + +#. module: crm_location +#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id +msgid "Use the city name or the zip code to search the location" +msgstr "Gebruik de plaatsnaam of de postcode om de locatie te vinden" diff --git a/crm_location/i18n/pt_BR.po b/crm_location/i18n/pt_BR.po new file mode 100644 index 00000000000..95ab8eab4a3 --- /dev/null +++ b/crm_location/i18n/pt_BR.po @@ -0,0 +1,41 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-19 02:41+0000\n" +"PO-Revision-Date: 2019-09-02 21:23+0000\n" +"Last-Translator: Rodrigo Macedo \n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/" +"teams/23907/pt_BR/)\n" +"Language: pt_BR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n > 1;\n" +"X-Generator: Weblate 3.8\n" + +#. module: crm_location +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form +msgid "City completion" +msgstr "Conclusão da cidade" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Prospector/Oportunidade" + +#. module: crm_location +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id +msgid "Location" +msgstr "Localização" + +#. module: crm_location +#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id +msgid "Use the city name or the zip code to search the location" +msgstr "Use o nome da cidade ou o CEP para pesquisar o local" diff --git a/crm_location/i18n/sk.po b/crm_location/i18n/sk.po new file mode 100644 index 00000000000..fb053010f97 --- /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" +"Language: sk\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: crm_location +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form +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 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id +msgid "Location" +msgstr "" + +#. module: crm_location +#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id +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..074fcd79807 --- /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: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-19 02:41+0000\n" +"PO-Revision-Date: 2017-06-19 02:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/sl/)\n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \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 +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form +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 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id +msgid "Location" +msgstr "Lokacija" + +#. module: crm_location +#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id +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.po b/crm_location/i18n/tr.po new file mode 100644 index 00000000000..bb53bffa238 --- /dev/null +++ b/crm_location/i18n/tr.po @@ -0,0 +1,39 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +# Ediz Duman , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-19 02:41+0000\n" +"PO-Revision-Date: 2017-06-19 02:41+0000\n" +"Last-Translator: Ediz Duman , 2017\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/tr/)\n" +"Language: tr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: crm_location +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form +msgid "City completion" +msgstr "" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Aday/Fırsat" + +#. module: crm_location +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id +msgid "Location" +msgstr "" + +#. module: crm_location +#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id +msgid "Use the city name or the zip code to search the location" +msgstr "" diff --git a/crm_location/i18n/tr_TR.po b/crm_location/i18n/tr_TR.po new file mode 100644 index 00000000000..116e66cd3de --- /dev/null +++ b/crm_location/i18n/tr_TR.po @@ -0,0 +1,40 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-06-19 02:41+0000\n" +"PO-Revision-Date: 2017-06-19 02:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/" +"tr_TR/)\n" +"Language: tr_TR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: crm_location +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form +msgid "City completion" +msgstr "" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "" + +#. module: crm_location +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id +msgid "Location" +msgstr "Konum" + +#. module: crm_location +#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id +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..064dec51843 --- /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" +"Language: zh_CN\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: crm_location +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form +msgid "City completion" +msgstr "" + +#. module: crm_location +#: model:ir.model,name:crm_location.model_crm_lead +msgid "Lead/Opportunity" +msgstr "线索/商机" + +#. module: crm_location +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id +msgid "Location" +msgstr "" + +#. module: crm_location +#: model:ir.model.fields,help:crm_location.field_crm_lead__location_id +msgid "Use the city name or the zip code to search the location" +msgstr "" diff --git a/crm_location/models/__init__.py b/crm_location/models/__init__.py new file mode 100644 index 00000000000..d0d4693988d --- /dev/null +++ b/crm_location/models/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3 - See https://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 new file mode 100644 index 00000000000..b6410ae9025 --- /dev/null +++ b/crm_location/models/crm_lead.py @@ -0,0 +1,42 @@ +# Copyright 2015 Antiun Ingenieria - Endika Iglesias +# Copyright 2017 Tecnativa - Luis Martínez +# Copyright 2019 Tecnativa - Alexandre Díaz +# License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html + +from odoo import api, fields, models + + +class CrmLead(models.Model): + _inherit = "crm.lead" + + location_id = fields.Many2one( + comodel_name="res.city.zip", + string="Location", + index="btree", + help="Use the city name or the zip code to search the location", + compute="_compute_location_id", + readonly=False, + store=True, + ) + + @api.depends("location_id") + def _compute_partner_address_values(self): + res = super()._compute_partner_address_values() + for lead in self.filtered("location_id"): + lead.update( + { + "zip": lead.location_id.name, + "city": lead.location_id.city_id.name, + "state_id": lead.location_id.city_id.state_id, + "country_id": lead.location_id.city_id.country_id, + } + ) + return res + + @api.depends("partner_id") + def _compute_location_id(self): + for lead in self: + if lead.partner_id.zip_id: + lead.location_id = lead.partner_id.zip_id.id + elif lead.location_id: + lead.location_id = lead.location_id.id diff --git a/crm_location/pyproject.toml b/crm_location/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/crm_location/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/crm_location/readme/CONTRIBUTORS.md b/crm_location/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..8d424250610 --- /dev/null +++ b/crm_location/readme/CONTRIBUTORS.md @@ -0,0 +1,8 @@ +- Endika Iglesias \<\> +- Rafael Blasco \<\> +- Luis M. Ontalba \<\> +- Alexandre Díaz \<\> +- Tharathip Chaweewongphan \<\> +- Ruchir Shukla \<\> +- [APSL-Nagarro](): + - Patryk Pyczko \<\> diff --git a/crm_location/readme/DESCRIPTION.md b/crm_location/readme/DESCRIPTION.md new file mode 100644 index 00000000000..b5349751d43 --- /dev/null +++ b/crm_location/readme/DESCRIPTION.md @@ -0,0 +1,3 @@ +This module introduces a better zip. + +It enables zip, city, state and country auto-completion on lead. diff --git a/crm_location/readme/INSTALL.md b/crm_location/readme/INSTALL.md new file mode 100644 index 00000000000..f14815e5b62 --- /dev/null +++ b/crm_location/readme/INSTALL.md @@ -0,0 +1,4 @@ +To install this module, you need: + +- crm +- base_location located in OCA/partner-contact repo diff --git a/crm_location/static/description/icon.png b/crm_location/static/description/icon.png new file mode 100644 index 00000000000..96d1b1e7687 Binary files /dev/null and b/crm_location/static/description/icon.png differ diff --git a/crm_location/static/description/index.html b/crm_location/static/description/index.html new file mode 100644 index 00000000000..97d3c1e2b59 --- /dev/null +++ b/crm_location/static/description/index.html @@ -0,0 +1,442 @@ + + + + + +CRM location + + + +
+

CRM location

+ + +

Beta License: AGPL-3 OCA/crm Translate me on Weblate Try me on Runboat

+

This module introduces a better zip.

+

It enables zip, city, state and country auto-completion on lead.

+

Table of contents

+ +
+

Installation

+

To install this module, you need:

+
    +
  • crm
  • +
  • base_location located in OCA/partner-contact repo
  • +
+
+
+

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 to smash it by providing a detailed and welcomed +feedback.

+

Do not contact contributors directly about support or help with technical issues.

+
+
+

Credits

+
+

Authors

+
    +
  • Tecnativa
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+ +Odoo Community Association + +

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.

+

This module is part of the OCA/crm project on GitHub.

+

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

+
+
+
+ + diff --git a/crm_location/tests/__init__.py b/crm_location/tests/__init__.py new file mode 100644 index 00000000000..258dc6aed09 --- /dev/null +++ b/crm_location/tests/__init__.py @@ -0,0 +1,3 @@ +# License AGPL-3 - See https://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..84c4339ce6f --- /dev/null +++ b/crm_location/tests/test_crm_location.py @@ -0,0 +1,54 @@ +# Copyright 2017 Tecnativa - Luis M. Ontalba +# Copyright 2019 Tecnativa - Alexandre Díaz +# License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0 + +from odoo.addons.base.tests.common import BaseCommon + + +class TestCrmLocation(BaseCommon): + @classmethod + def setUpClass(cls): + super().setUpClass() + cls.country = cls.env["res.country"].create( + {"name": "Test country", "code": "AA"} + ) + cls.state = cls.env["res.country.state"].create( + { + "name": "Test state", + "code": "Test state code", + "country_id": cls.country.id, + } + ) + cls.city = cls.env["res.city"].create( + { + "name": "Test city", + "country_id": cls.country.id, + "state_id": cls.state.id, + } + ) + cls.location = cls.env["res.city.zip"].create( + {"name": "12345", "city_id": cls.city.id} + ) + cls.lead = cls.env["crm.lead"].create({"name": "Test lead"}) + cls.partner = cls.env["res.partner"].create( + { + "name": "Test partner name", + "state_id": cls.state.id, + "country_id": cls.country.id, + "city_id": cls.city.id, + } + ) + + def test_compute_partner_address_values(self): + self.lead.location_id = self.location.id + self.lead._compute_partner_address_values() + self.assertEqual(self.lead.zip, "12345") + self.assertEqual(self.lead.city, "Test city") + self.assertEqual(self.lead.state_id.name, "Test state") + self.assertEqual(self.lead.country_id.name, "Test country") + + def test_compute_location_id(self): + self.partner.zip_id = self.location.id + self.lead.partner_id = self.partner.id + self.lead._compute_location_id() + self.assertEqual(self.lead.location_id.name, "12345") diff --git a/crm_location/views/crm_lead_view.xml b/crm_location/views/crm_lead_view.xml new file mode 100644 index 00000000000..bd32cf6ceaf --- /dev/null +++ b/crm_location/views/crm_lead_view.xml @@ -0,0 +1,29 @@ + + + + Add city completion helper field + crm.lead + + + + + + + + + + +