From b6c95e0c51c8f1df56cff6a985442469d4210a77 Mon Sep 17 00:00:00 2001 From: Endika Iglesias Date: Mon, 8 Jun 2015 10:25:00 +0200 Subject: [PATCH 01/18] [ADD] new addon crm_location --- crm_location/README.rst | 49 ++++++++++++++++++++ crm_location/__init__.py | 25 +++++++++++ crm_location/__openerp__.py | 39 ++++++++++++++++ crm_location/models/__init__.py | 25 +++++++++++ crm_location/models/crm_lead.py | 55 +++++++++++++++++++++++ crm_location/static/description/icon.png | Bin 0 -> 19578 bytes crm_location/views/crm_lead_view.xml | 35 +++++++++++++++ 7 files changed, 228 insertions(+) create mode 100644 crm_location/README.rst create mode 100644 crm_location/__init__.py create mode 100644 crm_location/__openerp__.py create mode 100644 crm_location/models/__init__.py create mode 100644 crm_location/models/crm_lead.py create mode 100644 crm_location/static/description/icon.png create mode 100644 crm_location/views/crm_lead_view.xml diff --git a/crm_location/README.rst b/crm_location/README.rst new file mode 100644 index 00000000000..9a1cde943d3 --- /dev/null +++ b/crm_location/README.rst @@ -0,0 +1,49 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License: AGPL-3 + +CRM location +============ + +This module introduces a better zip. + +It enables zip, city, state and country auto-completion on lead. + + +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 smashing it by providing a detailed and welcomed feedback +`here `_. + + +Contributors +------------ +* Endika Iglesias +* Rafael Blasco + + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +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 diff --git a/crm_location/__init__.py b/crm_location/__init__.py new file mode 100644 index 00000000000..b5c82df182c --- /dev/null +++ b/crm_location/__init__.py @@ -0,0 +1,25 @@ +# -*- 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 . +# +############################################################################## + +from . import models diff --git a/crm_location/__openerp__.py b/crm_location/__openerp__.py new file mode 100644 index 00000000000..08623b2f391 --- /dev/null +++ b/crm_location/__openerp__.py @@ -0,0 +1,39 @@ +# -*- 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 . +# +############################################################################## + +{ + 'name': 'CRM location', + 'category': 'Customer Relationship Management', + 'version': '8.0.1.0.0', + 'depends': [ + 'crm', + 'base_location', + ], + 'data': ['views/crm_lead_view.xml'], + 'author': 'Antiun Ingeniería S.L., ' + 'Odoo Community Association (OCA)', + 'website': 'http://www.antiun.com', + 'license': 'AGPL-3', + 'installable': True, +} diff --git a/crm_location/models/__init__.py b/crm_location/models/__init__.py new file mode 100644 index 00000000000..04bcd2f1eb0 --- /dev/null +++ b/crm_location/models/__init__.py @@ -0,0 +1,25 @@ +# -*- 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 . +# +############################################################################## + +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..d69afbf126f --- /dev/null +++ b/crm_location/models/crm_lead.py @@ -0,0 +1,55 @@ +# -*- 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 . +# +############################################################################## + +from openerp import models, fields, api + + +class CrmLead(models.Model): + _inherit = 'crm.lead' + + @api.one + @api.onchange('location_id') + def on_change_city(self): + if self.location_id: + self.zip = self.location_id.name + self.city = self.location_id.city + self.state_id = self.location_id.state_id + self.country_id = self.location_id.country_id + + location_id = fields.Many2one( + 'res.better.zip', + string='Location', + index=True, + 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']} diff --git a/crm_location/static/description/icon.png b/crm_location/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..96d1b1e768772015f8c423bd150d7a7b9f3f2952 GIT binary patch literal 19578 zcmV*GKxw~;P)e zSad^gZEa<4bO1wgWnpw>WFU8GbZ8()Nlj2!fese{03ZNKL_t(|+U&h~m|a(O=Kb6I z40o)$H4mES(UxUNj%^IKY`~6V17?s2X*waD1PFvAGzsZ^kdNYP@^#V)By=zV8VFAY z1_>KuFfo%Y+jy4bNwQ{@RFbMxbJd;CJ!kLTf1Gn~-71wWVGAUuef=DlhLUveS!=KL zu6Mm_9l`%auT!_u<|kRHpbJ5h1YqZuT7x-qt_sw%E zU}vCs+>#v5DMl{YPUTexxQJf{WbalkwIpwM>%d+}a%fD80G@ivy5IKPuf$oD0aGUGZT zjPt+9G-C{9Pn%LnA1f8iXM-Z&T>3o*Uv+?AZmt){-^%57f)A(C^392a)o5A2#E)bQ zfie_|daP8`-zq6Sz2aLO-A@^VAg#m#enY3c5g!N9#mPYL>k={kJdv_)OvI#hF$6M!z;T2yf<+o5-nWWpKlePjS0liAejR%& z-ENHcCll7MCR}M@qH6plUdEVd*US04FoL*ixrw;^?S#z-2d^XjY6Lisuf8oLgv*B# zG5LXH+)4>vqM8LiZlG~ID5V{aPjg4 z_AAK&l;Em_Bi@;a$z%k=e=fwX75JWoAMe1QdpRo6hHhJcNo7I)ArM+ozC;bkcx5tH32Q15A4%H!-}&#Mmba`XNcGPcFrU0bfOq!2$(p{13f5+v{% zmQq>wdi3(EVBs2wr_M+L6|FH!Q5ZUk-M5=$@BJi(p2i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LnY)b~j!i^O zL9|Fh%oEY9B$|N`)66`pl$vJEGoqi>xFEtr4n8f z3qVBX(MKOu2M-?X?YjH!m*(ddzWB{Ue~+2!g8uB@2Wetr9KCKAm1+euvsIir^ATSB z{+k9#bqz-2_Z?uvhC4BG|F6RxA0ss~BK(md_J)Sw#U(hQ58H7eEej&&A~0HKP;=rY z0d;0xAfkE6JOkz#Ddh!bo)(#)XQC*YyZPpuYedxjNrT*}sVN#A9i=^c_L!-uDeT*~ zPZQDQAy3!%Tr(H&&_fUDg9i`dkw+eWj@eXuozCbp-#VPU{?fk>HtjMCHFOj0+53yw zG%=11qr(^~moXB@C`Az*--G43kjl!}#2{5d)QGt%gs3o3A);9T6(K~0ndgl$Rfl;& zOSzzwTKaL?Tbz7_I}b8+R;yL>{`>En#~**(6qg%USe^SsmGN4>dBG`k^ytxFJ8|OV zS5KWjy|p?w2Pq}Wr5I5Z!FRnZ15m1G+bUreOO{d%7GfSk%n724#5^OJ&olEyq4l&a zLNfdSJDT*YNe*Dt`wP$4{Wos=3=UzY8&-HWtTt7ec`EL!_mR2~J!-N0;002ovPDHLkV1h=5-Uk2x literal 0 HcmV?d00001 diff --git a/crm_location/views/crm_lead_view.xml b/crm_location/views/crm_lead_view.xml new file mode 100644 index 00000000000..172609da0a7 --- /dev/null +++ b/crm_location/views/crm_lead_view.xml @@ -0,0 +1,35 @@ + + + + + + crm.location.form.city + crm.lead + + + + + + + + + + crm.location.form.city + crm.lead + + + + + + + + + + + From 9b6c92fc31b175eeb21d047586c0190f17e77012 Mon Sep 17 00:00:00 2001 From: Antonio Espinosa Date: Wed, 1 Jul 2015 13:22:32 +0200 Subject: [PATCH 02/18] [FIX] Rename crm_case inherited views --- 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 ++++++++++++++++++ crm_location/views/crm_lead_view.xml | 59 ++++++++++++++-------------- 15 files changed, 581 insertions(+), 30 deletions(-) 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 "" diff --git a/crm_location/views/crm_lead_view.xml b/crm_location/views/crm_lead_view.xml index 172609da0a7..31fc9c0d9d2 100644 --- a/crm_location/views/crm_lead_view.xml +++ b/crm_location/views/crm_lead_view.xml @@ -1,35 +1,34 @@ - + - + - - crm.location.form.city - crm.lead - - - - - - - + + Add city completion helper field + crm.lead + + + + + + + - - crm.location.form.city - crm.lead - - - - - - - + + Add city completion helper field + crm.lead + + + + + + + - - + From 13a9c0d3086ac7404b53f0ab6a97e193fc8e080d Mon Sep 17 00:00:00 2001 From: "Luis M. Ontalba" Date: Thu, 8 Jun 2017 09:13:10 +0200 Subject: [PATCH 03/18] [MIG] crm_location: Migrated to 10.0 --- crm_location/README.rst | 21 ++++++---- crm_location/__init__.py | 23 +---------- crm_location/__manifest__.py | 20 ++++++++++ crm_location/__openerp__.py | 39 ------------------- crm_location/i18n/bg.po | 15 +++---- crm_location/i18n/ca.po | 23 +++++------ crm_location/i18n/crm_location.pot | 36 +++++++++++++++++ crm_location/i18n/de.po | 24 ++++++------ crm_location/i18n/es.po | 27 ++++++------- crm_location/i18n/es_ES.po | 24 ++++++------ crm_location/i18n/fi.po | 23 +++++------ crm_location/i18n/fr.po | 23 +++++------ crm_location/i18n/hr.po | 27 ++++++------- crm_location/i18n/it.po | 25 ++++++------ crm_location/i18n/nl_NL.po | 41 +++++++++++++++++++ crm_location/i18n/pt_BR.po | 24 ++++++------ crm_location/i18n/sk.po | 15 +++---- crm_location/i18n/sl.po | 27 ++++++------- crm_location/i18n/tr.po | 40 +++++++++++++++++++ crm_location/i18n/tr_TR.po | 24 ++++++------ crm_location/i18n/zh_CN.po | 15 +++---- 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 +-- 26 files changed, 385 insertions(+), 278 deletions(-) create mode 100644 crm_location/__manifest__.py delete mode 100644 crm_location/__openerp__.py create mode 100644 crm_location/i18n/crm_location.pot create mode 100644 crm_location/i18n/nl_NL.po create mode 100644 crm_location/i18n/tr.po 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 new file mode 100644 index 00000000000..736f39d5019 --- /dev/null +++ b/crm_location/__manifest__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# 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': '10.0.1.0.0', + 'depends': [ + 'crm', + 'base_location', + ], + 'data': ['views/crm_lead_view.xml'], + 'author': 'Tecnativa, ' + 'Odoo Community Association (OCA)', + 'website': 'https://www.tecnativa.com', + 'license': 'AGPL-3', + 'installable': True, +} diff --git a/crm_location/__openerp__.py b/crm_location/__openerp__.py deleted file mode 100644 index 08623b2f391..00000000000 --- a/crm_location/__openerp__.py +++ /dev/null @@ -1,39 +0,0 @@ -# -*- 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 . -# -############################################################################## - -{ - 'name': 'CRM location', - 'category': 'Customer Relationship Management', - 'version': '8.0.1.0.0', - 'depends': [ - 'crm', - 'base_location', - ], - 'data': ['views/crm_lead_view.xml'], - 'author': 'Antiun Ingeniería S.L., ' - 'Odoo Community Association (OCA)', - 'website': 'http://www.antiun.com', - 'license': 'AGPL-3', - 'installable': True, -} diff --git a/crm_location/i18n/bg.po b/crm_location/i18n/bg.po index 9cea7f4ebce..3f8ab14d347 100644 --- a/crm_location/i18n/bg.po +++ b/crm_location/i18n/bg.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_location -# +# # Translators: msgid "" msgstr "" @@ -10,16 +10,17 @@ msgstr "" "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-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" -"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 +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -29,11 +30,11 @@ msgid "Lead/Opportunity" msgstr "Следа/Възможност" #. module: crm_location -#: field:crm.lead,location_id:0 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id msgid "Location" msgstr "" #. module: crm_location -#: help:crm.lead,location_id:0 +#: 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 index 812d22ba804..165bfeeb9c8 100644 --- a/crm_location/i18n/ca.po +++ b/crm_location/i18n/ca.po @@ -1,25 +1,26 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_location -# +# # Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: crm (8.0)\n" +"Project-Id-Version: Odoo Server 10.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" +"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: 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" -"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 +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -29,11 +30,11 @@ msgid "Lead/Opportunity" msgstr "" #. module: crm_location -#: field:crm.lead,location_id:0 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id msgid "Location" msgstr "Ubicació " #. module: crm_location -#: help:crm.lead,location_id:0 +#: 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/crm_location.pot b/crm_location/i18n/crm_location.pot new file mode 100644 index 00000000000..1104cfaf221 --- /dev/null +++ b/crm_location/i18n/crm_location.pot @@ -0,0 +1,36 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_location +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.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:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model:ir.ui.view,arch_db: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 +#: 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 index e3eb4e94786..156b861c27c 100644 --- a/crm_location/i18n/de.po +++ b/crm_location/i18n/de.po @@ -1,26 +1,26 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_location -# +# # Translators: -# Rudolf Schnapka , 2017 +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: crm (8.0)\n" +"Project-Id-Version: Odoo Server 10.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" +"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" -"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 +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "Stadtvervollständigung" @@ -30,11 +30,11 @@ msgid "Lead/Opportunity" msgstr "Lead/Chance" #. module: crm_location -#: field:crm.lead,location_id:0 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id msgid "Location" msgstr "Standort" #. module: crm_location -#: help:crm.lead,location_id:0 +#: 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 index 4dfd7041b30..335e4b7c82a 100644 --- a/crm_location/i18n/es.po +++ b/crm_location/i18n/es.po @@ -1,26 +1,26 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_location -# +# # Translators: -# Carles Antoli , 2016 +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: crm (8.0)\n" +"Project-Id-Version: Odoo Server 10.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" +"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" -"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 +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "Autocompletado a partir de la ciudad" @@ -30,11 +30,12 @@ msgid "Lead/Opportunity" msgstr "Iniciativa/Oportunidad" #. module: crm_location -#: field:crm.lead,location_id:0 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id msgid "Location" msgstr "Ubicación" #. module: crm_location -#: help:crm.lead,location_id:0 +#: 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" +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 index 1753f652ddf..5bc97550b76 100644 --- a/crm_location/i18n/es_ES.po +++ b/crm_location/i18n/es_ES.po @@ -1,25 +1,27 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_location -# +# # Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: crm (8.0)\n" +"Project-Id-Version: Odoo Server 10.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" +"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" -"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 +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -29,11 +31,11 @@ msgid "Lead/Opportunity" msgstr "" #. module: crm_location -#: field:crm.lead,location_id:0 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id msgid "Location" msgstr "Ubicación" #. module: crm_location -#: help:crm.lead,location_id:0 +#: 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 index d4e86358218..27865234dd2 100644 --- a/crm_location/i18n/fi.po +++ b/crm_location/i18n/fi.po @@ -1,25 +1,26 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_location -# +# # Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: crm (8.0)\n" +"Project-Id-Version: Odoo Server 10.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" +"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: 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" -"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 +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -29,11 +30,11 @@ msgid "Lead/Opportunity" msgstr "" #. module: crm_location -#: field:crm.lead,location_id:0 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id msgid "Location" msgstr "Sijainti" #. module: crm_location -#: help:crm.lead,location_id:0 +#: 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/fr.po b/crm_location/i18n/fr.po index 147168e4969..d5b07380799 100644 --- a/crm_location/i18n/fr.po +++ b/crm_location/i18n/fr.po @@ -1,25 +1,26 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_location -# +# # Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: crm (8.0)\n" +"Project-Id-Version: Odoo Server 10.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" +"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" -"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 +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -29,11 +30,11 @@ msgid "Lead/Opportunity" msgstr "Piste/Opportunité" #. module: crm_location -#: field:crm.lead,location_id:0 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id msgid "Location" msgstr "Emplacement" #. module: crm_location -#: help:crm.lead,location_id:0 +#: 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 index 4b9755667e2..f6d17a04907 100644 --- a/crm_location/i18n/hr.po +++ b/crm_location/i18n/hr.po @@ -1,26 +1,27 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_location -# +# # Translators: -# Ana-Maria Olujić , 2016 +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: crm (8.0)\n" +"Project-Id-Version: Odoo Server 10.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" +"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" -"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" +"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 +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "Završetak grada" @@ -30,11 +31,11 @@ msgid "Lead/Opportunity" msgstr "Potencijalni klijent" #. module: crm_location -#: field:crm.lead,location_id:0 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id msgid "Location" msgstr "Lokacija" #. module: crm_location -#: help:crm.lead,location_id:0 +#: 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 index aa676e98a9e..3631241cd55 100644 --- a/crm_location/i18n/it.po +++ b/crm_location/i18n/it.po @@ -1,27 +1,26 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_location -# +# # Translators: -# Paolo Valier, 2016 -# Paolo Valier, 2016 +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: crm (8.0)\n" +"Project-Id-Version: Odoo Server 10.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" +"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: 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" -"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 +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "Completamento Città" @@ -31,11 +30,11 @@ msgid "Lead/Opportunity" msgstr "Lead/Opportunità" #. module: crm_location -#: field:crm.lead,location_id:0 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id msgid "Location" msgstr "Posizione" #. module: crm_location -#: help:crm.lead,location_id:0 +#: 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/nl_NL.po b/crm_location/i18n/nl_NL.po new file mode 100644 index 00000000000..c4eab8f440b --- /dev/null +++ b/crm_location/i18n/nl_NL.po @@ -0,0 +1,41 @@ +# 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:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model:ir.ui.view,arch_db: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 +#: 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 index 6a310a8b1e7..9dc23a3f660 100644 --- a/crm_location/i18n/pt_BR.po +++ b/crm_location/i18n/pt_BR.po @@ -1,25 +1,27 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_location -# +# # Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: crm (8.0)\n" +"Project-Id-Version: Odoo Server 10.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" +"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: 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" -"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 +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -29,11 +31,11 @@ msgid "Lead/Opportunity" msgstr "Prospector/Oportunidade" #. module: crm_location -#: field:crm.lead,location_id:0 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id msgid "Location" msgstr "Location" #. module: crm_location -#: help:crm.lead,location_id:0 +#: 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/sk.po b/crm_location/i18n/sk.po index 42782e27309..4061d5e0574 100644 --- a/crm_location/i18n/sk.po +++ b/crm_location/i18n/sk.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_location -# +# # Translators: msgid "" msgstr "" @@ -10,16 +10,17 @@ msgstr "" "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-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" -"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 +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -29,11 +30,11 @@ msgid "Lead/Opportunity" msgstr "Iniciatíva/Príležitosť" #. module: crm_location -#: field:crm.lead,location_id:0 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id msgid "Location" msgstr "" #. module: crm_location -#: help:crm.lead,location_id:0 +#: 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 index 02a80e84f4f..f41bdea2276 100644 --- a/crm_location/i18n/sl.po +++ b/crm_location/i18n/sl.po @@ -1,26 +1,27 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_location -# +# # Translators: -# Matjaž Mozetič , 2016 +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: crm (8.0)\n" +"Project-Id-Version: Odoo Server 10.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" +"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" -"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" +"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 +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "Dokončevanje kraja" @@ -30,11 +31,11 @@ msgid "Lead/Opportunity" msgstr "Indic/priložnost" #. module: crm_location -#: field:crm.lead,location_id:0 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id msgid "Location" msgstr "Lokacija" #. module: crm_location -#: help:crm.lead,location_id:0 +#: 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..6ae8399d9a8 --- /dev/null +++ b/crm_location/i18n/tr.po @@ -0,0 +1,40 @@ +# 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:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model:ir.ui.view,arch_db: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 "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 index a1c5baf7aa3..5e983722741 100644 --- a/crm_location/i18n/tr_TR.po +++ b/crm_location/i18n/tr_TR.po @@ -1,25 +1,27 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_location -# +# # Translators: +# OCA Transbot , 2017 msgid "" msgstr "" -"Project-Id-Version: crm (8.0)\n" +"Project-Id-Version: Odoo Server 10.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" +"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" -"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 +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -29,11 +31,11 @@ msgid "Lead/Opportunity" msgstr "" #. module: crm_location -#: field:crm.lead,location_id:0 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id msgid "Location" msgstr "Konum" #. module: crm_location -#: help:crm.lead,location_id:0 +#: 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 index dd095ecf78a..8b6d8d240b1 100644 --- a/crm_location/i18n/zh_CN.po +++ b/crm_location/i18n/zh_CN.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_location -# +# # Translators: msgid "" msgstr "" @@ -10,16 +10,17 @@ msgstr "" "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-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" -"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 +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -29,11 +30,11 @@ msgid "Lead/Opportunity" msgstr "线索/商机" #. module: crm_location -#: field:crm.lead,location_id:0 +#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id msgid "Location" msgstr "" #. module: crm_location -#: help:crm.lead,location_id:0 +#: 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 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 @@ - - + From 1c57dcbecad9b9d2248057c83852f1e6bf2fa770 Mon Sep 17 00:00:00 2001 From: Sergio Zanchetta Date: Sat, 27 Oct 2018 23:16:53 +0000 Subject: [PATCH 04/18] Translated using Weblate (Italian) Currently translated at 100.0% (4 of 4 strings) Translation: crm-10.0/crm-10.0-crm_location Translate-URL: https://translation.odoo-community.org/projects/crm-10-0/crm-10-0-crm_location/it/ --- crm_location/i18n/it.po | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/crm_location/i18n/it.po b/crm_location/i18n/it.po index 3631241cd55..3fcc989c19a 100644 --- a/crm_location/i18n/it.po +++ b/crm_location/i18n/it.po @@ -9,25 +9,26 @@ 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" +"PO-Revision-Date: 2020-01-08 19:13+0000\n" +"Last-Translator: Sergio Zanchetta \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" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.10\n" #. module: crm_location #: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads #: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" -msgstr "Completamento Città" +msgstr "Completamento città" #. module: crm_location #: model:ir.model,name:crm_location.model_crm_lead msgid "Lead/Opportunity" -msgstr "Lead/Opportunità" +msgstr "Contatto/Opportunità" #. module: crm_location #: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id @@ -37,4 +38,4 @@ msgstr "Posizione" #. 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 "" +msgstr "Usare il nome della città o il CAP per cercare la posizione" From 35316c0e5bd257f91b1a4161f64c0bf408caadc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20D=C3=ADaz?= Date: Mon, 20 May 2019 11:35:01 +0200 Subject: [PATCH 05/18] [MIG] crm_location: Migration to 12.0 --- crm_location/README.rst | 70 +++- crm_location/__init__.py | 1 - crm_location/__manifest__.py | 5 +- crm_location/i18n/bg.po | 8 +- crm_location/i18n/ca.po | 8 +- crm_location/i18n/crm_location.pot | 10 +- crm_location/i18n/de.po | 8 +- crm_location/i18n/es.po | 8 +- crm_location/i18n/es_ES.po | 8 +- crm_location/i18n/fi.po | 8 +- crm_location/i18n/fr.po | 8 +- crm_location/i18n/hr.po | 8 +- crm_location/i18n/it.po | 8 +- crm_location/i18n/nl_NL.po | 8 +- crm_location/i18n/pt_BR.po | 8 +- crm_location/i18n/sk.po | 8 +- crm_location/i18n/sl.po | 8 +- crm_location/i18n/tr.po | 8 +- crm_location/i18n/tr_TR.po | 8 +- crm_location/i18n/zh_CN.po | 8 +- crm_location/models/__init__.py | 1 - crm_location/models/crm_lead.py | 10 +- crm_location/readme/CONTRIBUTORS.rst | 4 + crm_location/readme/DESCRIPTION.rst | 3 + crm_location/readme/INSTALL.rst | 4 + crm_location/static/description/index.html | 432 +++++++++++++++++++++ crm_location/tests/__init__.py | 1 - crm_location/tests/test_crm_location.py | 42 +- 28 files changed, 590 insertions(+), 121 deletions(-) create mode 100644 crm_location/readme/CONTRIBUTORS.rst create mode 100644 crm_location/readme/DESCRIPTION.rst create mode 100644 crm_location/readme/INSTALL.rst create mode 100644 crm_location/static/description/index.html diff --git a/crm_location/README.rst b/crm_location/README.rst index 21f9cea14bc..d5cf65f966c 100644 --- a/crm_location/README.rst +++ b/crm_location/README.rst @@ -1,13 +1,38 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :alt: License: AGPL-3 - +============ CRM location ============ +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/12.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-12-0/crm-12-0-crm_location + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/111/12.0 + :alt: Try me on Runbot + +|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 ============ @@ -17,40 +42,45 @@ To install this module, you need: * crm * base_location located in OCA/partner-contact repo -Usage -===== +Bug Tracker +=========== -.. 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 +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 `_. +Do not contact contributors directly about support or help with technical issues. -Bug Tracker -=========== +Credits +======= -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. +Authors +~~~~~~~ +* Tecnativa Contributors ------------- +~~~~~~~~~~~~ + * Endika Iglesias * Rafael Blasco * Luis M. Ontalba +* Alexandre Díaz + +Maintainers +~~~~~~~~~~~ -Maintainer ----------- +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - 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 https://odoo-community.org. +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 index 4d8ae82d6d7..e87e85c4c49 100644 --- a/crm_location/__init__.py +++ b/crm_location/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # 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 736f39d5019..201f5319dba 100644 --- a/crm_location/__manifest__.py +++ b/crm_location/__manifest__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # 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 @@ -6,7 +5,7 @@ { 'name': 'CRM location', 'category': 'Customer Relationship Management', - 'version': '10.0.1.0.0', + 'version': '12.0.1.0.0', 'depends': [ 'crm', 'base_location', @@ -14,7 +13,7 @@ 'data': ['views/crm_lead_view.xml'], 'author': 'Tecnativa, ' 'Odoo Community Association (OCA)', - 'website': 'https://www.tecnativa.com', + '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 index 3f8ab14d347..05d3a9e212a 100644 --- a/crm_location/i18n/bg.po +++ b/crm_location/i18n/bg.po @@ -19,8 +19,8 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_location -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -30,11 +30,11 @@ msgid "Lead/Opportunity" msgstr "Следа/Възможност" #. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id +#: 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 +#: 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 index 165bfeeb9c8..fca18f4b122 100644 --- a/crm_location/i18n/ca.po +++ b/crm_location/i18n/ca.po @@ -19,8 +19,8 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_location -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -30,11 +30,11 @@ msgid "Lead/Opportunity" msgstr "" #. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id +#: 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 +#: 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/crm_location.pot b/crm_location/i18n/crm_location.pot index 1104cfaf221..21e38cc5343 100644 --- a/crm_location/i18n/crm_location.pot +++ b/crm_location/i18n/crm_location.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" @@ -14,8 +14,8 @@ msgstr "" "Plural-Forms: \n" #. module: crm_location -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -25,12 +25,12 @@ msgid "Lead/Opportunity" msgstr "" #. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id +#: 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 +#: 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 index 156b861c27c..931ae5e14b3 100644 --- a/crm_location/i18n/de.po +++ b/crm_location/i18n/de.po @@ -19,8 +19,8 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_location -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "Stadtvervollständigung" @@ -30,11 +30,11 @@ msgid "Lead/Opportunity" msgstr "Lead/Chance" #. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id +#: 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 +#: 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 index 335e4b7c82a..dbb31293310 100644 --- a/crm_location/i18n/es.po +++ b/crm_location/i18n/es.po @@ -19,8 +19,8 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_location -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "Autocompletado a partir de la ciudad" @@ -30,12 +30,12 @@ msgid "Lead/Opportunity" msgstr "Iniciativa/Oportunidad" #. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id +#: 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 +#: 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 index 5bc97550b76..edcef3d2d2b 100644 --- a/crm_location/i18n/es_ES.po +++ b/crm_location/i18n/es_ES.po @@ -20,8 +20,8 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_location -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -31,11 +31,11 @@ msgid "Lead/Opportunity" msgstr "" #. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id +#: 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 +#: 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 index 27865234dd2..f3eb7d48807 100644 --- a/crm_location/i18n/fi.po +++ b/crm_location/i18n/fi.po @@ -19,8 +19,8 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_location -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -30,11 +30,11 @@ msgid "Lead/Opportunity" msgstr "" #. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id +#: 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 +#: 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/fr.po b/crm_location/i18n/fr.po index d5b07380799..178e32abdae 100644 --- a/crm_location/i18n/fr.po +++ b/crm_location/i18n/fr.po @@ -19,8 +19,8 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: crm_location -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -30,11 +30,11 @@ msgid "Lead/Opportunity" msgstr "Piste/Opportunité" #. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id +#: 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 +#: 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 index f6d17a04907..be5b9f8f2d9 100644 --- a/crm_location/i18n/hr.po +++ b/crm_location/i18n/hr.po @@ -20,8 +20,8 @@ msgstr "" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #. module: crm_location -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "Završetak grada" @@ -31,11 +31,11 @@ msgid "Lead/Opportunity" msgstr "Potencijalni klijent" #. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id +#: 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 +#: 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 index 3fcc989c19a..3def7887dc1 100644 --- a/crm_location/i18n/it.po +++ b/crm_location/i18n/it.po @@ -20,8 +20,8 @@ msgstr "" "X-Generator: Weblate 3.10\n" #. module: crm_location -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "Completamento città" @@ -31,11 +31,11 @@ msgid "Lead/Opportunity" msgstr "Contatto/Opportunità" #. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id msgid "Location" msgstr "Posizione" #. module: crm_location -#: model:ir.model.fields,help:crm_location.field_crm_lead_location_id +#: 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 index c4eab8f440b..651d7fb712b 100644 --- a/crm_location/i18n/nl_NL.po +++ b/crm_location/i18n/nl_NL.po @@ -20,8 +20,8 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_location -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -31,11 +31,11 @@ msgid "Lead/Opportunity" msgstr "" #. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id +#: 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 +#: 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 index 9dc23a3f660..a2690af710b 100644 --- a/crm_location/i18n/pt_BR.po +++ b/crm_location/i18n/pt_BR.po @@ -20,8 +20,8 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: crm_location -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -31,11 +31,11 @@ msgid "Lead/Opportunity" msgstr "Prospector/Oportunidade" #. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id msgid "Location" msgstr "Location" #. module: crm_location -#: model:ir.model.fields,help:crm_location.field_crm_lead_location_id +#: 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/sk.po b/crm_location/i18n/sk.po index 4061d5e0574..b3d1721de0d 100644 --- a/crm_location/i18n/sk.po +++ b/crm_location/i18n/sk.po @@ -19,8 +19,8 @@ msgstr "" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #. module: crm_location -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -30,11 +30,11 @@ 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 +#: 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 +#: 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 index f41bdea2276..a538eec2f13 100644 --- a/crm_location/i18n/sl.po +++ b/crm_location/i18n/sl.po @@ -20,8 +20,8 @@ msgstr "" "%100==4 ? 2 : 3);\n" #. module: crm_location -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "Dokončevanje kraja" @@ -31,11 +31,11 @@ msgid "Lead/Opportunity" msgstr "Indic/priložnost" #. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id +#: 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 +#: 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 index 6ae8399d9a8..532841bc9ce 100644 --- a/crm_location/i18n/tr.po +++ b/crm_location/i18n/tr.po @@ -19,8 +19,8 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: crm_location -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -30,11 +30,11 @@ msgid "Lead/Opportunity" msgstr "Aday/Fırsat" #. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id +#: 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 +#: 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 index 5e983722741..9078f5ea93d 100644 --- a/crm_location/i18n/tr_TR.po +++ b/crm_location/i18n/tr_TR.po @@ -20,8 +20,8 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: crm_location -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -31,11 +31,11 @@ msgid "Lead/Opportunity" msgstr "" #. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id +#: 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 +#: 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 index 8b6d8d240b1..c37a4d6ec76 100644 --- a/crm_location/i18n/zh_CN.po +++ b/crm_location/i18n/zh_CN.po @@ -19,8 +19,8 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: crm_location -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" msgstr "" @@ -30,11 +30,11 @@ msgid "Lead/Opportunity" msgstr "线索/商机" #. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead_location_id +#: 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 +#: 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 index a2258dbb77f..ff51181c5ee 100644 --- a/crm_location/models/__init__.py +++ b/crm_location/models/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # 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 b976591fb89..0d14974a6e0 100644 --- a/crm_location/models/crm_lead.py +++ b/crm_location/models/crm_lead.py @@ -1,6 +1,6 @@ -# -*- coding: utf-8 -*- # Copyright 2015 Antiun Ingenieria - Endika Iglesias # Copyright 2017 Tecnativa - Luis Martínez +# Copyright 2019 Tecnativa - Alexandre Díaz # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html from odoo import api, fields, models @@ -14,12 +14,12 @@ class CrmLead(models.Model): def on_change_city(self): if self.location_id: self.zip = self.location_id.name - self.city = self.location_id.city - self.state_id = self.location_id.state_id - self.country_id = self.location_id.country_id + self.city = self.location_id.city_id.name + self.state_id = self.location_id.city_id.state_id + self.country_id = self.location_id.city_id.country_id location_id = fields.Many2one( - 'res.better.zip', + 'res.city.zip', string='Location', index=True, help='Use the city name or the zip code to search the location', diff --git a/crm_location/readme/CONTRIBUTORS.rst b/crm_location/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..bf4a448919e --- /dev/null +++ b/crm_location/readme/CONTRIBUTORS.rst @@ -0,0 +1,4 @@ +* Endika Iglesias +* Rafael Blasco +* Luis M. Ontalba +* Alexandre Díaz diff --git a/crm_location/readme/DESCRIPTION.rst b/crm_location/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..b5349751d43 --- /dev/null +++ b/crm_location/readme/DESCRIPTION.rst @@ -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.rst b/crm_location/readme/INSTALL.rst new file mode 100644 index 00000000000..5eafcba0994 --- /dev/null +++ b/crm_location/readme/INSTALL.rst @@ -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/index.html b/crm_location/static/description/index.html new file mode 100644 index 00000000000..0ba3e3767ff --- /dev/null +++ b/crm_location/static/description/index.html @@ -0,0 +1,432 @@ + + + + + + +CRM location + + + +
+

CRM location

+ + +

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

+

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 smashing 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 index d1c4c63b7ac..3fa4c4c406f 100644 --- a/crm_location/tests/__init__.py +++ b/crm_location/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- 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 index 45622cbcc15..cf0ea15469f 100644 --- a/crm_location/tests/test_crm_location.py +++ b/crm_location/tests/test_crm_location.py @@ -1,5 +1,5 @@ -# -*- coding: utf-8 -*- # Copyright 2017 Tecnativa - Luis M. Ontalba +# Copyright 2019 Tecnativa - Alexandre Díaz # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0 from odoo.tests import common @@ -11,42 +11,42 @@ class TestCrmLocation(common.SavepointCase): def setUpClass(cls): super(TestCrmLocation, cls).setUpClass() cls.country = cls.env['res.country'].create({ - 'name': 'Country test', + 'name': 'Test country', }) 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', + cls.city = cls.env['res.city'].create({ + 'name': 'Test city', 'country_id': cls.country.id, - 'code': 'Test code', '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_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) + self.lead.location_id = self.location.id + self.lead.on_change_city() + 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_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) + self.partner.zip_id = self.location.id + self.lead.partner_id = self.partner.id + self.lead.onchange_partner_id_crm_location() + self.assertEqual(self.lead.location_id.name, '12345') From b29673025d84f6884b735792d606fa6381ed3b3d Mon Sep 17 00:00:00 2001 From: Rodrigo Macedo Date: Mon, 2 Sep 2019 19:11:35 +0000 Subject: [PATCH 06/18] Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (4 of 4 strings) Translation: crm-12.0/crm-12.0-crm_location Translate-URL: https://translation.odoo-community.org/projects/crm-12-0/crm-12-0-crm_location/pt_BR/ --- crm_location/i18n/pt_BR.po | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/crm_location/i18n/pt_BR.po b/crm_location/i18n/pt_BR.po index a2690af710b..59f94ad97ed 100644 --- a/crm_location/i18n/pt_BR.po +++ b/crm_location/i18n/pt_BR.po @@ -9,21 +9,22 @@ 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: Portuguese (Brazil) (https://www.transifex.com/oca/" -"teams/23907/pt_BR/)\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" +"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_case_form_view_leads #: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" -msgstr "" +msgstr "Conclusão da cidade" #. module: crm_location #: model:ir.model,name:crm_location.model_crm_lead @@ -33,9 +34,9 @@ msgstr "Prospector/Oportunidade" #. module: crm_location #: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id msgid "Location" -msgstr "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 "" +msgstr "Use o nome da cidade ou o CEP para pesquisar o local" From 04c93b6e321e28398ff04b0080bf73ee7b16f211 Mon Sep 17 00:00:00 2001 From: Carles Antoli Date: Fri, 27 Dec 2019 11:51:20 +0000 Subject: [PATCH 07/18] Translated using Weblate (Catalan) Currently translated at 100.0% (4 of 4 strings) Translation: crm-12.0/crm-12.0-crm_location Translate-URL: https://translation.odoo-community.org/projects/crm-12-0/crm-12-0-crm_location/ca/ --- crm_location/i18n/ca.po | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/crm_location/i18n/ca.po b/crm_location/i18n/ca.po index fca18f4b122..377d8f77392 100644 --- a/crm_location/i18n/ca.po +++ b/crm_location/i18n/ca.po @@ -9,32 +9,33 @@ 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" +"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" +"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_case_form_view_leads #: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor msgid "City completion" -msgstr "" +msgstr "Autocompletat a partir de la ciutat" #. module: crm_location #: model:ir.model,name:crm_location.model_crm_lead msgid "Lead/Opportunity" -msgstr "" +msgstr "Iniciativa/Oportunitat" #. module: crm_location #: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id msgid "Location" -msgstr "Ubicació " +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 "" +msgstr "Utilitzeu el nom de la ciutat o el codi postal per cercar l'ubicació" From ecf8e4a4d9c3ba076e2567f25b8b54c21f567125 Mon Sep 17 00:00:00 2001 From: newtratip Date: Thu, 19 Mar 2020 11:31:22 +0700 Subject: [PATCH 08/18] [13.0][IMP] crm_location: black, isort --- crm_location/__manifest__.py | 22 ++++----- crm_location/models/crm_lead.py | 12 ++--- crm_location/tests/test_crm_location.py | 64 ++++++++++++------------- crm_location/views/crm_lead_view.xml | 57 +++++++++++----------- 4 files changed, 76 insertions(+), 79 deletions(-) diff --git a/crm_location/__manifest__.py b/crm_location/__manifest__.py index 201f5319dba..f1bea8c3934 100644 --- a/crm_location/__manifest__.py +++ b/crm_location/__manifest__.py @@ -3,17 +3,13 @@ # License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html { - 'name': 'CRM location', - 'category': 'Customer Relationship Management', - 'version': '12.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, + "name": "CRM location", + "category": "Customer Relationship Management", + "version": "13.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/models/crm_lead.py b/crm_location/models/crm_lead.py index 0d14974a6e0..29828bc7d98 100644 --- a/crm_location/models/crm_lead.py +++ b/crm_location/models/crm_lead.py @@ -7,10 +7,10 @@ class CrmLead(models.Model): - _inherit = 'crm.lead' + _inherit = "crm.lead" @api.multi - @api.onchange('location_id') + @api.onchange("location_id") def on_change_city(self): if self.location_id: self.zip = self.location_id.name @@ -19,13 +19,13 @@ def on_change_city(self): self.country_id = self.location_id.city_id.country_id location_id = fields.Many2one( - 'res.city.zip', - string='Location', + "res.city.zip", + string="Location", index=True, - help='Use the city name or the zip code to search the location', + help="Use the city name or the zip code to search the location", ) - @api.onchange('partner_id') + @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/test_crm_location.py b/crm_location/tests/test_crm_location.py index cf0ea15469f..278bc70698c 100644 --- a/crm_location/tests/test_crm_location.py +++ b/crm_location/tests/test_crm_location.py @@ -6,47 +6,47 @@ class TestCrmLocation(common.SavepointCase): - @classmethod def setUpClass(cls): super(TestCrmLocation, cls).setUpClass() - cls.country = cls.env['res.country'].create({ - 'name': 'Test country', - }) - 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, - }) + cls.country = cls.env["res.country"].create({"name": "Test country"}) + 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_on_change_city(self): self.lead.location_id = self.location.id self.lead.on_change_city() - 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') + 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_onchange_partner_id_crm_location(self): self.partner.zip_id = self.location.id self.lead.partner_id = self.partner.id self.lead.onchange_partner_id_crm_location() - self.assertEqual(self.lead.location_id.name, '12345') + 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 index f6c233e4094..73735cbd130 100644 --- a/crm_location/views/crm_lead_view.xml +++ b/crm_location/views/crm_lead_view.xml @@ -1,32 +1,33 @@ - + - - - Add city completion helper field - crm.lead - - - - + + Add city completion helper field + crm.lead + + + + + - - - - - Add city completion helper field - crm.lead - - - - + + + Add city completion helper field + crm.lead + + + + + - - - + From 3c70afb4f63d83d5f3c1867e804d56b12e13283e Mon Sep 17 00:00:00 2001 From: newtratip Date: Wed, 25 Mar 2020 17:19:22 +0700 Subject: [PATCH 09/18] [13.0][MIG] crm_location --- crm_location/README.rst | 11 ++++++----- crm_location/i18n/bg.po | 3 +-- crm_location/i18n/ca.po | 3 +-- crm_location/i18n/crm_location.pot | 10 ++++------ crm_location/i18n/de.po | 3 +-- crm_location/i18n/es.po | 3 +-- crm_location/i18n/es_ES.po | 3 +-- crm_location/i18n/fi.po | 3 +-- crm_location/i18n/fr.po | 3 +-- crm_location/i18n/hr.po | 3 +-- crm_location/i18n/it.po | 3 +-- crm_location/i18n/nl_NL.po | 3 +-- crm_location/i18n/pt_BR.po | 7 +++---- crm_location/i18n/sk.po | 3 +-- crm_location/i18n/sl.po | 3 +-- crm_location/i18n/tr.po | 3 +-- crm_location/i18n/tr_TR.po | 3 +-- crm_location/i18n/zh_CN.po | 3 +-- crm_location/models/crm_lead.py | 17 ++++++++++------- crm_location/readme/CONTRIBUTORS.rst | 1 + crm_location/static/description/index.html | 7 ++++--- crm_location/tests/test_crm_location.py | 1 + crm_location/views/crm_lead_view.xml | 22 +++++++++------------- 23 files changed, 53 insertions(+), 68 deletions(-) diff --git a/crm_location/README.rst b/crm_location/README.rst index d5cf65f966c..792ada57323 100644 --- a/crm_location/README.rst +++ b/crm_location/README.rst @@ -14,13 +14,13 @@ CRM location :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/12.0/crm_location + :target: https://github.com/OCA/crm/tree/13.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-12-0/crm-12-0-crm_location + :target: https://translation.odoo-community.org/projects/crm-13-0/crm-13-0-crm_location :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/111/12.0 + :target: https://runbot.odoo-community.org/runbot/111/13.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -48,7 +48,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -67,6 +67,7 @@ Contributors * Rafael Blasco * Luis M. Ontalba * Alexandre Díaz +* Tharathip Chaweewongphan Maintainers ~~~~~~~~~~~ @@ -81,6 +82,6 @@ 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. +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/i18n/bg.po b/crm_location/i18n/bg.po index 05d3a9e212a..b92492b22e5 100644 --- a/crm_location/i18n/bg.po +++ b/crm_location/i18n/bg.po @@ -19,8 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_location -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form msgid "City completion" msgstr "" diff --git a/crm_location/i18n/ca.po b/crm_location/i18n/ca.po index 377d8f77392..794f1cd7558 100644 --- a/crm_location/i18n/ca.po +++ b/crm_location/i18n/ca.po @@ -20,8 +20,7 @@ msgstr "" "X-Generator: Weblate 3.10\n" #. module: crm_location -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form msgid "City completion" msgstr "Autocompletat a partir de la ciutat" diff --git a/crm_location/i18n/crm_location.pot b/crm_location/i18n/crm_location.pot index 21e38cc5343..720472e098d 100644 --- a/crm_location/i18n/crm_location.pot +++ b/crm_location/i18n/crm_location.pot @@ -1,12 +1,12 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * crm_location +# * crm_location # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 12.0\n" +"Project-Id-Version: Odoo Server 13.0\n" "Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\n" +"Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -14,8 +14,7 @@ msgstr "" "Plural-Forms: \n" #. module: crm_location -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form msgid "City completion" msgstr "" @@ -33,4 +32,3 @@ msgstr "" #: 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 index 931ae5e14b3..77d211212ef 100644 --- a/crm_location/i18n/de.po +++ b/crm_location/i18n/de.po @@ -19,8 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_location -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form msgid "City completion" msgstr "Stadtvervollständigung" diff --git a/crm_location/i18n/es.po b/crm_location/i18n/es.po index dbb31293310..45ba7ed0bd2 100644 --- a/crm_location/i18n/es.po +++ b/crm_location/i18n/es.po @@ -19,8 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_location -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form msgid "City completion" msgstr "Autocompletado a partir de la ciudad" diff --git a/crm_location/i18n/es_ES.po b/crm_location/i18n/es_ES.po index edcef3d2d2b..7cac68b43ee 100644 --- a/crm_location/i18n/es_ES.po +++ b/crm_location/i18n/es_ES.po @@ -20,8 +20,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_location -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form msgid "City completion" msgstr "" diff --git a/crm_location/i18n/fi.po b/crm_location/i18n/fi.po index f3eb7d48807..fc258f109c1 100644 --- a/crm_location/i18n/fi.po +++ b/crm_location/i18n/fi.po @@ -19,8 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_location -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form msgid "City completion" msgstr "" diff --git a/crm_location/i18n/fr.po b/crm_location/i18n/fr.po index 178e32abdae..4890fe38857 100644 --- a/crm_location/i18n/fr.po +++ b/crm_location/i18n/fr.po @@ -19,8 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: crm_location -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form msgid "City completion" msgstr "" diff --git a/crm_location/i18n/hr.po b/crm_location/i18n/hr.po index be5b9f8f2d9..19b26fe8c32 100644 --- a/crm_location/i18n/hr.po +++ b/crm_location/i18n/hr.po @@ -20,8 +20,7 @@ msgstr "" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #. module: crm_location -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form msgid "City completion" msgstr "Završetak grada" diff --git a/crm_location/i18n/it.po b/crm_location/i18n/it.po index 3def7887dc1..323f3fe0f26 100644 --- a/crm_location/i18n/it.po +++ b/crm_location/i18n/it.po @@ -20,8 +20,7 @@ msgstr "" "X-Generator: Weblate 3.10\n" #. module: crm_location -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form msgid "City completion" msgstr "Completamento città" diff --git a/crm_location/i18n/nl_NL.po b/crm_location/i18n/nl_NL.po index 651d7fb712b..25ad545e336 100644 --- a/crm_location/i18n/nl_NL.po +++ b/crm_location/i18n/nl_NL.po @@ -20,8 +20,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_location -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form msgid "City completion" msgstr "" diff --git a/crm_location/i18n/pt_BR.po b/crm_location/i18n/pt_BR.po index 59f94ad97ed..95ab8eab4a3 100644 --- a/crm_location/i18n/pt_BR.po +++ b/crm_location/i18n/pt_BR.po @@ -11,8 +11,8 @@ msgstr "" "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-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" @@ -21,8 +21,7 @@ msgstr "" "X-Generator: Weblate 3.8\n" #. module: crm_location -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form msgid "City completion" msgstr "Conclusão da cidade" diff --git a/crm_location/i18n/sk.po b/crm_location/i18n/sk.po index b3d1721de0d..fb053010f97 100644 --- a/crm_location/i18n/sk.po +++ b/crm_location/i18n/sk.po @@ -19,8 +19,7 @@ msgstr "" "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_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form msgid "City completion" msgstr "" diff --git a/crm_location/i18n/sl.po b/crm_location/i18n/sl.po index a538eec2f13..074fcd79807 100644 --- a/crm_location/i18n/sl.po +++ b/crm_location/i18n/sl.po @@ -20,8 +20,7 @@ msgstr "" "%100==4 ? 2 : 3);\n" #. module: crm_location -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form msgid "City completion" msgstr "Dokončevanje kraja" diff --git a/crm_location/i18n/tr.po b/crm_location/i18n/tr.po index 532841bc9ce..bb53bffa238 100644 --- a/crm_location/i18n/tr.po +++ b/crm_location/i18n/tr.po @@ -19,8 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: crm_location -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form msgid "City completion" msgstr "" diff --git a/crm_location/i18n/tr_TR.po b/crm_location/i18n/tr_TR.po index 9078f5ea93d..116e66cd3de 100644 --- a/crm_location/i18n/tr_TR.po +++ b/crm_location/i18n/tr_TR.po @@ -20,8 +20,7 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: crm_location -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form msgid "City completion" msgstr "" diff --git a/crm_location/i18n/zh_CN.po b/crm_location/i18n/zh_CN.po index c37a4d6ec76..064dec51843 100644 --- a/crm_location/i18n/zh_CN.po +++ b/crm_location/i18n/zh_CN.po @@ -19,8 +19,7 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: crm_location -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_location.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form msgid "City completion" msgstr "" diff --git a/crm_location/models/crm_lead.py b/crm_location/models/crm_lead.py index 29828bc7d98..ce10cb72170 100644 --- a/crm_location/models/crm_lead.py +++ b/crm_location/models/crm_lead.py @@ -9,17 +9,20 @@ class CrmLead(models.Model): _inherit = "crm.lead" - @api.multi @api.onchange("location_id") def on_change_city(self): if self.location_id: - self.zip = self.location_id.name - self.city = self.location_id.city_id.name - self.state_id = self.location_id.city_id.state_id - self.country_id = self.location_id.city_id.country_id + self.update( + { + "zip": self.location_id.name, + "city": self.location_id.city_id.name, + "state_id": self.location_id.city_id.state_id, + "country_id": self.location_id.city_id.country_id, + } + ) location_id = fields.Many2one( - "res.city.zip", + comodel_name="res.city.zip", string="Location", index=True, help="Use the city name or the zip code to search the location", @@ -28,4 +31,4 @@ def on_change_city(self): @api.onchange("partner_id") def onchange_partner_id_crm_location(self): if self.partner_id: - self.location_id = self.partner_id.zip_id.id + self.location_id = self.partner_id.zip_id diff --git a/crm_location/readme/CONTRIBUTORS.rst b/crm_location/readme/CONTRIBUTORS.rst index bf4a448919e..4306ddad3d3 100644 --- a/crm_location/readme/CONTRIBUTORS.rst +++ b/crm_location/readme/CONTRIBUTORS.rst @@ -2,3 +2,4 @@ * Rafael Blasco * Luis M. Ontalba * Alexandre Díaz +* Tharathip Chaweewongphan diff --git a/crm_location/static/description/index.html b/crm_location/static/description/index.html index 0ba3e3767ff..0aa89a65916 100644 --- a/crm_location/static/description/index.html +++ b/crm_location/static/description/index.html @@ -367,7 +367,7 @@

CRM location

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module introduces a better zip.

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

Table of contents

@@ -396,7 +396,7 @@

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.

+feedback.

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

@@ -414,6 +414,7 @@

Contributors

  • Rafael Blasco <rafael.blasco@tecnativa.com>
  • Luis M. Ontalba <luis.martinez@tecnativa.com>
  • Alexandre Díaz <alexandre.diaz@tecnativa.com>
  • +
  • Tharathip Chaweewongphan <tharathipc@ecosoft.co.th>
  • @@ -423,7 +424,7 @@

    Maintainers

    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.

    +

    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/test_crm_location.py b/crm_location/tests/test_crm_location.py index 278bc70698c..38db003dc49 100644 --- a/crm_location/tests/test_crm_location.py +++ b/crm_location/tests/test_crm_location.py @@ -9,6 +9,7 @@ class TestCrmLocation(common.SavepointCase): @classmethod def setUpClass(cls): super(TestCrmLocation, cls).setUpClass() + cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) cls.country = cls.env["res.country"].create({"name": "Test country"}) cls.state = cls.env["res.country.state"].create( { diff --git a/crm_location/views/crm_lead_view.xml b/crm_location/views/crm_lead_view.xml index 73735cbd130..bd32cf6ceaf 100644 --- a/crm_location/views/crm_lead_view.xml +++ b/crm_location/views/crm_lead_view.xml @@ -1,33 +1,29 @@ - + Add city completion helper field crm.lead - + - + - - - - - Add city completion helper field - crm.lead - - - + + - + From 302f8c4abfb5818af7aae3f18771b39dc86b73ee Mon Sep 17 00:00:00 2001 From: Stephan Keller Date: Wed, 13 May 2020 12:21:01 +0200 Subject: [PATCH 10/18] [FIX] Clean up license links --- crm_location/__init__.py | 2 +- crm_location/__manifest__.py | 2 +- crm_location/models/__init__.py | 2 +- crm_location/models/crm_lead.py | 2 +- crm_location/tests/__init__.py | 2 +- crm_location/tests/test_crm_location.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crm_location/__init__.py b/crm_location/__init__.py index e87e85c4c49..c0a55456570 100644 --- a/crm_location/__init__.py +++ b/crm_location/__init__.py @@ -1,3 +1,3 @@ -# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html +# 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 index f1bea8c3934..87bed4c7d01 100644 --- a/crm_location/__manifest__.py +++ b/crm_location/__manifest__.py @@ -1,6 +1,6 @@ # 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 +# License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html { "name": "CRM location", diff --git a/crm_location/models/__init__.py b/crm_location/models/__init__.py index ff51181c5ee..d0d4693988d 100644 --- a/crm_location/models/__init__.py +++ b/crm_location/models/__init__.py @@ -1,3 +1,3 @@ -# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html +# 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 index ce10cb72170..d6de2647b4c 100644 --- a/crm_location/models/crm_lead.py +++ b/crm_location/models/crm_lead.py @@ -1,7 +1,7 @@ # Copyright 2015 Antiun Ingenieria - Endika Iglesias # Copyright 2017 Tecnativa - Luis Martínez # Copyright 2019 Tecnativa - Alexandre Díaz -# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html +# License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html from odoo import api, fields, models diff --git a/crm_location/tests/__init__.py b/crm_location/tests/__init__.py index 3fa4c4c406f..258dc6aed09 100644 --- a/crm_location/tests/__init__.py +++ b/crm_location/tests/__init__.py @@ -1,3 +1,3 @@ -# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0 +# 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 index 38db003dc49..d5ff993c3ab 100644 --- a/crm_location/tests/test_crm_location.py +++ b/crm_location/tests/test_crm_location.py @@ -1,6 +1,6 @@ # Copyright 2017 Tecnativa - Luis M. Ontalba # Copyright 2019 Tecnativa - Alexandre Díaz -# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0 +# License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0 from odoo.tests import common From 85d596d29d6d4b8a071f53ad2edca9ad70205243 Mon Sep 17 00:00:00 2001 From: RIDA YAHLA Date: Sun, 15 Nov 2020 19:31:29 +0100 Subject: [PATCH 11/18] [MIG] crm_location: Migration to 14.0 --- crm_location/README.rst | 10 +++++----- crm_location/__manifest__.py | 2 +- crm_location/i18n/crm_location.pot | 17 ++++++++++++++++- crm_location/static/description/index.html | 6 +++--- 4 files changed, 25 insertions(+), 10 deletions(-) diff --git a/crm_location/README.rst b/crm_location/README.rst index 792ada57323..65b8d3e5c5f 100644 --- a/crm_location/README.rst +++ b/crm_location/README.rst @@ -14,13 +14,13 @@ CRM location :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/13.0/crm_location + :target: https://github.com/OCA/crm/tree/14.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-13-0/crm-13-0-crm_location + :target: https://translation.odoo-community.org/projects/crm-14-0/crm-14-0-crm_location :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/111/13.0 + :target: https://runbot.odoo-community.org/runbot/111/14.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -48,7 +48,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -82,6 +82,6 @@ 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. +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/__manifest__.py b/crm_location/__manifest__.py index 87bed4c7d01..1b13e5081bb 100644 --- a/crm_location/__manifest__.py +++ b/crm_location/__manifest__.py @@ -5,7 +5,7 @@ { "name": "CRM location", "category": "Customer Relationship Management", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "depends": ["crm", "base_location"], "data": ["views/crm_lead_view.xml"], "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/crm_location/i18n/crm_location.pot b/crm_location/i18n/crm_location.pot index 720472e098d..1c4fab4ed5f 100644 --- a/crm_location/i18n/crm_location.pot +++ b/crm_location/i18n/crm_location.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 13.0\n" +"Project-Id-Version: Odoo Server 14.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -18,6 +18,21 @@ msgstr "" msgid "City completion" msgstr "" +#. module: crm_location +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__display_name +msgid "Display Name" +msgstr "" + +#. module: crm_location +#: model:ir.model.fields,field_description:crm_location.field_crm_lead__id +msgid "ID" +msgstr "" + +#. module: crm_location +#: model:ir.model.fields,field_description:crm_location.field_crm_lead____last_update +msgid "Last Modified on" +msgstr "" + #. module: crm_location #: model:ir.model,name:crm_location.model_crm_lead msgid "Lead/Opportunity" diff --git a/crm_location/static/description/index.html b/crm_location/static/description/index.html index 0aa89a65916..e941cc106b7 100644 --- a/crm_location/static/description/index.html +++ b/crm_location/static/description/index.html @@ -367,7 +367,7 @@

    CRM location

    !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

    +

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

    This module introduces a better zip.

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

    Table of contents

    @@ -396,7 +396,7 @@

    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.

    +feedback.

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

    @@ -424,7 +424,7 @@

    Maintainers

    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.

    +

    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.

    From 5c9a62fbd01421ea5e315995a2676749a1c9005c Mon Sep 17 00:00:00 2001 From: Ruchir Shukla Date: Thu, 10 Feb 2022 18:04:05 +0530 Subject: [PATCH 12/18] [MIG]crm_location: Migrate crm_location to v15. --- crm_location/README.rst | 11 ++++++----- crm_location/__manifest__.py | 2 +- crm_location/i18n/crm_location.pot | 17 +---------------- crm_location/readme/CONTRIBUTORS.rst | 1 + crm_location/static/description/index.html | 7 ++++--- crm_location/tests/test_crm_location.py | 2 +- 6 files changed, 14 insertions(+), 26 deletions(-) diff --git a/crm_location/README.rst b/crm_location/README.rst index 65b8d3e5c5f..ef9d2ccd794 100644 --- a/crm_location/README.rst +++ b/crm_location/README.rst @@ -14,13 +14,13 @@ CRM location :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/14.0/crm_location + :target: https://github.com/OCA/crm/tree/15.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-14-0/crm-14-0-crm_location + :target: https://translation.odoo-community.org/projects/crm-15-0/crm-15-0-crm_location :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/111/14.0 + :target: https://runbot.odoo-community.org/runbot/111/15.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -48,7 +48,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -68,6 +68,7 @@ Contributors * Luis M. Ontalba * Alexandre Díaz * Tharathip Chaweewongphan +* Ruchir Shukla Maintainers ~~~~~~~~~~~ @@ -82,6 +83,6 @@ 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. +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/__manifest__.py b/crm_location/__manifest__.py index 1b13e5081bb..fa7aedecc6e 100644 --- a/crm_location/__manifest__.py +++ b/crm_location/__manifest__.py @@ -5,7 +5,7 @@ { "name": "CRM location", "category": "Customer Relationship Management", - "version": "14.0.1.0.0", + "version": "15.0.1.0.2", "depends": ["crm", "base_location"], "data": ["views/crm_lead_view.xml"], "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/crm_location/i18n/crm_location.pot b/crm_location/i18n/crm_location.pot index 1c4fab4ed5f..01b9ba90f32 100644 --- a/crm_location/i18n/crm_location.pot +++ b/crm_location/i18n/crm_location.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -18,21 +18,6 @@ msgstr "" msgid "City completion" msgstr "" -#. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead__display_name -msgid "Display Name" -msgstr "" - -#. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead__id -msgid "ID" -msgstr "" - -#. module: crm_location -#: model:ir.model.fields,field_description:crm_location.field_crm_lead____last_update -msgid "Last Modified on" -msgstr "" - #. module: crm_location #: model:ir.model,name:crm_location.model_crm_lead msgid "Lead/Opportunity" diff --git a/crm_location/readme/CONTRIBUTORS.rst b/crm_location/readme/CONTRIBUTORS.rst index 4306ddad3d3..59609d17adb 100644 --- a/crm_location/readme/CONTRIBUTORS.rst +++ b/crm_location/readme/CONTRIBUTORS.rst @@ -3,3 +3,4 @@ * Luis M. Ontalba * Alexandre Díaz * Tharathip Chaweewongphan +* Ruchir Shukla diff --git a/crm_location/static/description/index.html b/crm_location/static/description/index.html index e941cc106b7..8aa7a3d2326 100644 --- a/crm_location/static/description/index.html +++ b/crm_location/static/description/index.html @@ -367,7 +367,7 @@

    CRM location

    !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

    +

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

    This module introduces a better zip.

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

    Table of contents

    @@ -396,7 +396,7 @@

    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.

    +feedback.

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

    @@ -415,6 +415,7 @@

    Contributors

  • Luis M. Ontalba <luis.martinez@tecnativa.com>
  • Alexandre Díaz <alexandre.diaz@tecnativa.com>
  • Tharathip Chaweewongphan <tharathipc@ecosoft.co.th>
  • +
  • Ruchir Shukla <ruchir@bizzappdev.com>
  • @@ -424,7 +425,7 @@

    Maintainers

    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.

    +

    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/test_crm_location.py b/crm_location/tests/test_crm_location.py index d5ff993c3ab..2019449c6ac 100644 --- a/crm_location/tests/test_crm_location.py +++ b/crm_location/tests/test_crm_location.py @@ -5,7 +5,7 @@ from odoo.tests import common -class TestCrmLocation(common.SavepointCase): +class TestCrmLocation(common.TransactionCase): @classmethod def setUpClass(cls): super(TestCrmLocation, cls).setUpClass() From 184a972444c60b63817281ba83269d3522ed77eb Mon Sep 17 00:00:00 2001 From: Jesus Ventosinos Date: Fri, 20 Jan 2023 13:26:20 +0100 Subject: [PATCH 13/18] [MIG] crm_location: Migration to 16.0 --- crm_location/README.rst | 10 +++---- crm_location/__manifest__.py | 2 +- crm_location/i18n/crm_location.pot | 2 +- crm_location/models/crm_lead.py | 33 +++++++++++++--------- crm_location/static/description/index.html | 6 ++-- crm_location/tests/test_crm_location.py | 10 +++---- 6 files changed, 35 insertions(+), 28 deletions(-) diff --git a/crm_location/README.rst b/crm_location/README.rst index ef9d2ccd794..cbe1bc7487b 100644 --- a/crm_location/README.rst +++ b/crm_location/README.rst @@ -14,13 +14,13 @@ CRM location :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/15.0/crm_location + :target: https://github.com/OCA/crm/tree/16.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-15-0/crm-15-0-crm_location + :target: https://translation.odoo-community.org/projects/crm-16-0/crm-16-0-crm_location :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/111/15.0 + :target: https://runbot.odoo-community.org/runbot/111/16.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -48,7 +48,7 @@ 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -83,6 +83,6 @@ 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. +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/__manifest__.py b/crm_location/__manifest__.py index fa7aedecc6e..717879d4b33 100644 --- a/crm_location/__manifest__.py +++ b/crm_location/__manifest__.py @@ -5,7 +5,7 @@ { "name": "CRM location", "category": "Customer Relationship Management", - "version": "15.0.1.0.2", + "version": "16.0.1.0.0", "depends": ["crm", "base_location"], "data": ["views/crm_lead_view.xml"], "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/crm_location/i18n/crm_location.pot b/crm_location/i18n/crm_location.pot index 01b9ba90f32..7544d7eab0a 100644 --- a/crm_location/i18n/crm_location.pot +++ b/crm_location/i18n/crm_location.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 15.0\n" +"Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" diff --git a/crm_location/models/crm_lead.py b/crm_location/models/crm_lead.py index d6de2647b4c..9519d5b2d7f 100644 --- a/crm_location/models/crm_lead.py +++ b/crm_location/models/crm_lead.py @@ -9,8 +9,19 @@ class CrmLead(models.Model): _inherit = "crm.lead" - @api.onchange("location_id") - def on_change_city(self): + 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() if self.location_id: self.update( { @@ -20,15 +31,11 @@ def on_change_city(self): "country_id": self.location_id.city_id.country_id, } ) + return res - location_id = fields.Many2one( - comodel_name="res.city.zip", - string="Location", - index=True, - help="Use the city name or the zip code to search the location", - ) - - @api.onchange("partner_id") - def onchange_partner_id_crm_location(self): - if self.partner_id: - self.location_id = self.partner_id.zip_id + @api.depends("partner_id") + def _compute_location_id(self): + if self.partner_id.zip_id: + self.location_id = self.partner_id.zip_id.id + elif self.location_id: + self.location_id = self.location_id.id diff --git a/crm_location/static/description/index.html b/crm_location/static/description/index.html index 8aa7a3d2326..6ac0919fd77 100644 --- a/crm_location/static/description/index.html +++ b/crm_location/static/description/index.html @@ -367,7 +367,7 @@

    CRM location

    !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

    +

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

    This module introduces a better zip.

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

    Table of contents

    @@ -396,7 +396,7 @@

    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.

    +feedback.

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

    @@ -425,7 +425,7 @@

    Maintainers

    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.

    +

    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/test_crm_location.py b/crm_location/tests/test_crm_location.py index 2019449c6ac..3f9bb815063 100644 --- a/crm_location/tests/test_crm_location.py +++ b/crm_location/tests/test_crm_location.py @@ -8,7 +8,7 @@ class TestCrmLocation(common.TransactionCase): @classmethod def setUpClass(cls): - super(TestCrmLocation, cls).setUpClass() + super().setUpClass() cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) cls.country = cls.env["res.country"].create({"name": "Test country"}) cls.state = cls.env["res.country.state"].create( @@ -38,16 +38,16 @@ def setUpClass(cls): } ) - def test_on_change_city(self): + def test_compute_partner_address_values(self): self.lead.location_id = self.location.id - self.lead.on_change_city() + 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_onchange_partner_id_crm_location(self): + def test_compute_location_id(self): self.partner.zip_id = self.location.id self.lead.partner_id = self.partner.id - self.lead.onchange_partner_id_crm_location() + self.lead._compute_location_id() self.assertEqual(self.lead.location_id.name, "12345") From 9987f16943f9f6035a372da9459b0d98980cd4b7 Mon Sep 17 00:00:00 2001 From: Ossi Mantylahti Date: Wed, 22 Mar 2023 12:37:14 +0000 Subject: [PATCH 14/18] Translated using Weblate (Finnish) Currently translated at 100.0% (4 of 4 strings) Translation: crm-16.0/crm-16.0-crm_location Translate-URL: https://translation.odoo-community.org/projects/crm-16-0/crm-16-0-crm_location/fi/ --- crm_location/i18n/fi.po | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/crm_location/i18n/fi.po b/crm_location/i18n/fi.po index fc258f109c1..542be68291b 100644 --- a/crm_location/i18n/fi.po +++ b/crm_location/i18n/fi.po @@ -9,24 +9,25 @@ 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" +"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" +"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 "" +msgstr "Kaupungin täydennys" #. module: crm_location #: model:ir.model,name:crm_location.model_crm_lead msgid "Lead/Opportunity" -msgstr "" +msgstr "Liidi / myyntimahdollisuus" #. module: crm_location #: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id @@ -36,4 +37,4 @@ 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 "" +msgstr "Käytä kaupungin nimeä tai postinumeroa paikan hakuun" From 43ba3b5ac9c984c5d3b63cb0d2f8ed1af2f9c79b Mon Sep 17 00:00:00 2001 From: Francesco Foresti Date: Wed, 12 Jul 2023 14:09:36 +0000 Subject: [PATCH 15/18] Translated using Weblate (Italian) Currently translated at 100.0% (4 of 4 strings) Translation: crm-16.0/crm-16.0-crm_location Translate-URL: https://translation.odoo-community.org/projects/crm-16-0/crm-16-0-crm_location/it/ --- crm_location/i18n/it.po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crm_location/i18n/it.po b/crm_location/i18n/it.po index 323f3fe0f26..7b7f594b7d7 100644 --- a/crm_location/i18n/it.po +++ b/crm_location/i18n/it.po @@ -9,15 +9,15 @@ 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: 2020-01-08 19:13+0000\n" -"Last-Translator: Sergio Zanchetta \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 3.10\n" +"X-Generator: Weblate 4.17\n" #. module: crm_location #: model_terms:ir.ui.view,arch_db:crm_location.crm_lead_view_form @@ -32,7 +32,7 @@ msgstr "Contatto/Opportunità" #. module: crm_location #: model:ir.model.fields,field_description:crm_location.field_crm_lead__location_id msgid "Location" -msgstr "Posizione" +msgstr "Ubicazione" #. module: crm_location #: model:ir.model.fields,help:crm_location.field_crm_lead__location_id From a7e9bbf049a7abd487539b3199d1533877c6d7f4 Mon Sep 17 00:00:00 2001 From: Ethan Hildick Date: Wed, 16 Aug 2023 12:00:02 +0200 Subject: [PATCH 16/18] [FIX] crm_location: make computes multi-record aware --- crm_location/README.rst | 15 +++++---- crm_location/__manifest__.py | 2 +- crm_location/models/crm_lead.py | 21 ++++++------ crm_location/static/description/index.html | 38 ++++++++++++---------- 4 files changed, 41 insertions(+), 35 deletions(-) diff --git a/crm_location/README.rst b/crm_location/README.rst index cbe1bc7487b..9305fd7e943 100644 --- a/crm_location/README.rst +++ b/crm_location/README.rst @@ -2,10 +2,13 @@ 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 @@ -19,11 +22,11 @@ CRM location .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png :target: https://translation.odoo-community.org/projects/crm-16-0/crm-16-0-crm_location :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/111/16.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/crm&target_branch=16.0 + :alt: Try me on Runboat -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This module introduces a better zip. @@ -47,7 +50,7 @@ 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 +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. diff --git a/crm_location/__manifest__.py b/crm_location/__manifest__.py index 717879d4b33..e4c5283a8a4 100644 --- a/crm_location/__manifest__.py +++ b/crm_location/__manifest__.py @@ -5,7 +5,7 @@ { "name": "CRM location", "category": "Customer Relationship Management", - "version": "16.0.1.0.0", + "version": "16.0.1.0.1", "depends": ["crm", "base_location"], "data": ["views/crm_lead_view.xml"], "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/crm_location/models/crm_lead.py b/crm_location/models/crm_lead.py index 9519d5b2d7f..b6410ae9025 100644 --- a/crm_location/models/crm_lead.py +++ b/crm_location/models/crm_lead.py @@ -22,20 +22,21 @@ class CrmLead(models.Model): @api.depends("location_id") def _compute_partner_address_values(self): res = super()._compute_partner_address_values() - if self.location_id: - self.update( + for lead in self.filtered("location_id"): + lead.update( { - "zip": self.location_id.name, - "city": self.location_id.city_id.name, - "state_id": self.location_id.city_id.state_id, - "country_id": self.location_id.city_id.country_id, + "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): - if self.partner_id.zip_id: - self.location_id = self.partner_id.zip_id.id - elif self.location_id: - self.location_id = self.location_id.id + 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/static/description/index.html b/crm_location/static/description/index.html index 6ac0919fd77..e6965972c0f 100644 --- a/crm_location/static/description/index.html +++ b/crm_location/static/description/index.html @@ -1,20 +1,20 @@ - + - + CRM location