$%8xD}!0|t8T1UnZf$883Q&EssOq$aD{;Bc3}ixy6xK(Xqy2rh8ZmBav#OJ
zz8*hV_rI(e*8^VLm`ji~gRd#gT6R;)H-i+~z6uJ}`5(OM|Ahb(AedokK&`A`qY6{6
z6v{9C`Xyjc6j9g}x$jvv?stKHh-oj6&1#
zumC1cuk@wq+~tICF7MNdxqgDq=m_(6C9Tu`{@8b++ME$#3Cb#stPMET5J?Kr>p?<8
zQVK>7#&mNRWFw76fT2y$r4l#}U;-bAB8cH(9=I@bEqN|MF+Q*21A1&kgc;6(9%Ux4$&P7L2(38ilO2dP8h%o
zLU>_-Fbom+K3vy@r4-UMp|@UpJ$bJ?ua+)WKLg;I(JKUner(&Ri{{Xd9Xrf{0|#ba
z`@wfe+5zMX8}xL1000ZhNkllmf7M!UHvgj4TG1>79sBUx@N9{drhyPy2`(O@EoJR+3D$Yq-iuNMBAR3^xL
zQ<)?Q%V>y1gW6pXnjm!Y&tOB#67gGJ>UCa+L4d^#Lp*%jJnVBa|8#vM4k%hZL-_=WGVM
zIJCw&6Cs0#5ocjZk%nmvr46J8WSV6B#ApF%LK}m`NN8&W$)+*rQV7H`C<>s$2yU1O
zIfx**+1nt;1Y|DaWDM%r~BB!7uT8Ayno{*4GLSXj%1$yu4e>69%VTew*f=dtz
zpRx;3oc;Uv_ws7ht1rL&@-AZW?AYk&cFVF7mMkAQE7~`H(6>Xakw{AX+^LO8ew<1vP9B0^QI<
zZ@2`M%ivNB5rwd#5N;U4_k9FWh``SVNgT(4Yuiwk1xreZ0c{>E78#g~C6%&qFk)Ui
zGn8s{J1u;8>=-@wwZBVzg0*4Wt*~A7&AbMHsVfKsKamTNN5A^H=bp27?b>zb`0?Y9
z`F`;1a5<7QGc(#&lAyETPZy+$Yt}7hrXOhvB?Qm`ItD070n^rCDe^5`=r1EOSWUGg
zi7e+Pf&@b*DMY&m(oF!Z+}qel;US4Uw1NP=*hd-%;8F>8T!I^gD2EaJ(1-5_2s{s-
z=fSmYSh>koGJ~}db0%nG`t0K9vz`+~q47-pg;+_ihjw=b?N%GDdIL*Ki>NKkVX-=o
z3nx$Dt>^z)mkHumcHWO@(+z+9*ms`(uiVP&PrU^wPNUIC0ASm;Z7)twPoJEanArNx
zdq=e;rRa76W(}=#=GZ)!qoSxo8d``f5VKu$w1FiUMhdVLAc#Dr%6z#rfYgBKX;9Ju
z&_-f9NR2^)A#_GVB;^StaSRH>Oq=5fUKqiPLPUN5KlI@_E?mcfW7|+lK}wkkFfY!m
zU1YhoGd@*XvlCpTk^r4hypt%%3}t`8VE0b$J$51GEef
z6R?qiJ0)=IXCI-Vk+CQL^y`1~7yujq_`nqsM0}zbpg6~m9}jKIl2H(%+fB%KJhZw=
zwnLBe-ujxG04Nq9!Eh);2kF4WFe`NCmmwuVq-l=J$&kD~1GH=h$!H1ba0$8;f#V2P
z6u}NcL}36w3=sxCeAml;vjfXgP)b5d1*QSvU24&?2Xmgm6#hjcNfLD09duePtkhem
zFW0azH;3A61=S1ZQT^db%zyAMmJQG~fJH!WtkjG17l)SlS9
z+4I8i-TNMVFcbdj!fyP`T!4J%P1YkQQ>k3SspIF(wqMu=+frbi_M7lb3%npI
z0Ibkv<_v0H1Yfz?E&v(XxPpLS&U`ouZPw`adgwNrXs@iGv0TT};vyF2s;JG*V(#2I
zR9<`y^X&yJ89)#a0Vr|yxMRm%2)ArOxM2gr(INPyA$W0YoX9t>>lw@Sv}IdRmSx3p
z>`5unOVh6c=m*tTr-Abco*XPit^?cip)3nRN-#4KGYe+2l!9eh5JI5S>41n{
z7rimL(9{3)?awb&E_BO7!`7Lz7Ywn0Whq3SgE)>5
z#WBJlKo|xHgD@M{E{Y?z4coS1kv12tx4df9>-BO$ub{EKjOAJl
zwYfPg%*rUweA3zVdmq;m{*ii|F(1I&L8Cag08CYuSpC*MEcQ3
zpHc@8?(fwX>tAD*pTGH*t=8mSJ9WF$p(IJNqDT;Asg&cuS{Hy7g6@w{<@Ni*WK+I#
zun=;wRU}DMB;77L?G{#=O*EDpsLwB;R;^%RdK&X5Kg9A|uVBTj{y07ZJ^>pxZo@6R
zKL>Ao1H7?e_(Q{RqsZ7{keh4A2ungrNkRyrloXa_3#AlfZh_J?MUo^55zQN8X3``%
zM?}-iyv)q!Eopz0B0V!QGIDnF=FJO(zuOBhydd}N*^^#P;a{^LuvYt?1^_D*AA-4-
zg31#cH|ih=L_f-A&dcfCH`S(Cv#NF9YzrYF6|G(fW6y!}UoacGf+itt9^W&^#
zQ4K0Az*XSr%d>&QFk=!K&02StEOF!9J%v+2R#Fz)z-v4$hq
zaSSUAVf#K=o=?iL*|HtBYzs;$sNBUA0V5M-NaQpHh?bb>A~RpmT2BKwC8a#!Th_@m
zP0uYYEmijJ-TNbjclhvOF*-U*VHgqs)a!M#XU`s;3tfNg7WrBTe$bEo;h%iz>)-p&
z*S@%8%XshizVN&9hD{s6BGV$RO_ox1x@fiAXfzsFUR=WL+&rq4i;!o}qx-{CXr6gD
zV-_VCNid3FY=W_Fz1w(OZh$i}4tr#XoiHL91Z)RB*`5dGIIt`$Px~xLnY)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
+
+
+
+
This module introduces a better zip.
+
It enables zip, city, state and country auto-completion on lead.
+
Table of contents
+
+
+
+
To install this module, you need:
+
+- crm
+- base_location located in OCA/partner-contact repo
+
+
+
+
+
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.
+
+
+
+
+
+
+
+
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.
+
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. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module introduces a better zip.
It enables zip, city, state and country auto-completion on lead.
Table of contents
@@ -396,7 +396,7 @@
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.
@@ -423,7 +424,7 @@
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. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
-
+
This module introduces a better zip.
It enables zip, city, state and country auto-completion on lead.
Table of contents
@@ -396,7 +396,7 @@
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.