From 53fa76057dbfb4e51b439d032b17a1d65a99eb3e Mon Sep 17 00:00:00 2001 From: Jairo Llopis <yajo.sk8@gmail.com> Date: Mon, 15 Feb 2016 18:40:33 +0100 Subject: [PATCH 01/30] [8.0][crm_lead_firstname] Link crm and partner_firstname modules. This module adds the lastname field to leads and converts current contact name into contact firstname. Allows to transfer that from and to res.partner objects. --- crm_lead_firstname/README.rst | 78 ++++++++++++++++++ crm_lead_firstname/__init__.py | 5 ++ crm_lead_firstname/__openerp__.py | 21 +++++ crm_lead_firstname/i18n/es.po | 46 +++++++++++ crm_lead_firstname/models/__init__.py | 5 ++ crm_lead_firstname/models/crm_lead.py | 46 +++++++++++ .../static/description/icon.png | Bin 0 -> 9455 bytes crm_lead_firstname/tests/__init__.py | 5 ++ crm_lead_firstname/tests/test_crm_lead.py | 45 ++++++++++ crm_lead_firstname/views/crm_lead_view.xml | 43 ++++++++++ 10 files changed, 294 insertions(+) create mode 100644 crm_lead_firstname/README.rst create mode 100644 crm_lead_firstname/__init__.py create mode 100644 crm_lead_firstname/__openerp__.py create mode 100644 crm_lead_firstname/i18n/es.po create mode 100644 crm_lead_firstname/models/__init__.py create mode 100644 crm_lead_firstname/models/crm_lead.py create mode 100644 crm_lead_firstname/static/description/icon.png create mode 100644 crm_lead_firstname/tests/__init__.py create mode 100644 crm_lead_firstname/tests/test_crm_lead.py create mode 100644 crm_lead_firstname/views/crm_lead_view.xml diff --git a/crm_lead_firstname/README.rst b/crm_lead_firstname/README.rst new file mode 100644 index 00000000000..4d11e485ea4 --- /dev/null +++ b/crm_lead_firstname/README.rst @@ -0,0 +1,78 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +=============================== +Firstname and Lastname in Leads +=============================== + +This module extends the functionality of CRM leads to support split first and +last name fields for contacts and allow you to port that information to and +from partners. + + +Installation +============ + +Since leads are expected to create partners only when needed and after +information is correctly set up, in leads there is no inverse logic to +transform the old single name in the new split names automatically. The old +single name will simply be the firstname now. + +To install this module, you need to: + +* Install `OCA/partner-contact <https://github.com/OCA/partner-contact>`_ repo. + +Usage +===== + +To use this module, you need to: + +* Go to *Sales > Sales > Leads > Create*. +* You have the new split fields *Firstname* and *Lastname*. Fill them. +* Press *Convert to Opportunity*. +* In *Related Customer* choose *Create a new customer*. +* Press *Create Opportunity*. +* In the new opportunity, go to *Lead* tab. There are the new fields too. +* If you go to the partner you just created, you will see that its first and + last names match those in the lead. + +.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas + :alt: Try me on Runbot + :target: https://runbot.odoo-community.org/runbot/134/8.0 + +Bug Tracker +=========== + +Bugs are tracked on `GitHub Issues +<https://github.com/OCA/crm/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 +<https://github.com/OCA/ +crm/issues/new?body=module:%20 +crm_lead_firstname%0Aversion:%20 +8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. + +Credits +======= + +Contributors +------------ + +* Rafael Blasco <rafabn@antiun.com> +* Jairo Llopis <yajo.sk8@gmail.com> + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit https://odoo-community.org. diff --git a/crm_lead_firstname/__init__.py b/crm_lead_firstname/__init__.py new file mode 100644 index 00000000000..ac009a20339 --- /dev/null +++ b/crm_lead_firstname/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# © 2016 Antiun Ingeniería S.L. - Jairo Llopis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import models diff --git a/crm_lead_firstname/__openerp__.py b/crm_lead_firstname/__openerp__.py new file mode 100644 index 00000000000..4d682438d04 --- /dev/null +++ b/crm_lead_firstname/__openerp__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +# © 2016 Antiun Ingeniería S.L. - Jairo Llopis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + "name": "Firstname and Lastname in Leads", + "summary": "Specify split names for contacts in leads", + "version": "8.0.1.0.0", + "category": "Customer Relationship Management", + "website": "http://www.antiun.com", + "author": "Antiun Ingeniería S.L., Odoo Community Association (OCA)", + "license": "AGPL-3", + "application": False, + "installable": True, + "depends": [ + "crm", + "partner_firstname", + ], + "data": [ + "views/crm_lead_view.xml", + ], +} diff --git a/crm_lead_firstname/i18n/es.po b/crm_lead_firstname/i18n/es.po new file mode 100644 index 00000000000..ea10d2d19ce --- /dev/null +++ b/crm_lead_firstname/i18n/es.po @@ -0,0 +1,46 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_firstname +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-02-15 17:25+0000\n" +"PO-Revision-Date: 2016-02-15 18:27+0100\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"Language: es\n" +"X-Generator: Poedit 1.8.6\n" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Contact Name" +msgstr "Nombre del contacto" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Firstname" +msgstr "Nombre de pila" + +#. module: crm_lead_firstname +#: field:crm.lead,contact_lastname:0 +msgid "Last name" +msgstr "Apellido" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Lastname" +msgstr "Apellido" + +#. module: crm_lead_firstname +#: model:ir.model,name:crm_lead_firstname.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Iniciativa/Oportunidad" diff --git a/crm_lead_firstname/models/__init__.py b/crm_lead_firstname/models/__init__.py new file mode 100644 index 00000000000..4979cdf4658 --- /dev/null +++ b/crm_lead_firstname/models/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# © 2016 Antiun Ingeniería S.L. - Jairo Llopis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import crm_lead diff --git a/crm_lead_firstname/models/crm_lead.py b/crm_lead_firstname/models/crm_lead.py new file mode 100644 index 00000000000..78bc3d6a0cf --- /dev/null +++ b/crm_lead_firstname/models/crm_lead.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +# © 2016 Antiun Ingeniería S.L. - Jairo Llopis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from collections import OrderedDict +from openerp import api, fields, models + + +class CrmLead(models.Model): + _inherit = "crm.lead" + + contact_name = fields.Char("First name") + contact_lastname = fields.Char("Last name") + + @api.model + def _lead_create_contact(self, lead, name, is_company, parent_id=False): + """Ensure first and last names of contact match those in lead.""" + partner_id = super(CrmLead, self)._lead_create_contact( + lead, name, is_company, parent_id) + if not is_company and partner_id: + partner = self.env["res.partner"].browse(partner_id) + + # Write fields with values first + partner.update( + OrderedDict( + sorted( + (("firstname", lead.contact_name), + ("lastname", lead.contact_lastname)), + key=lambda item: item[1], + reverse=True))) + return partner_id + + @api.multi + def on_change_partner_id(self, partner_id): + """Recover first and last names from partner if available.""" + result = super(CrmLead, self).on_change_partner_id(partner_id) + + if result.get("value") and partner_id: + partner = self.env["res.partner"].browse(partner_id) + if not partner.is_company: + result["value"].update({ + "contact_name": partner.firstname, + "contact_lastname": partner.lastname, + }) + + return result diff --git a/crm_lead_firstname/static/description/icon.png b/crm_lead_firstname/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..3a0328b516c4980e8e44cdb63fd945757ddd132d GIT binary patch literal 9455 zcmW++2RxMjAAjx~&dlBk9S+%}OXg)AGE&Cb*&}<C%<R2Kc9faym6aW`f0Dh5$js*d z_}}Z!;XIG;_cPz`_vag-p{7Ve$Uq1H00~A(?iu(VaQlMefnU3&OozZXm@69d91cGG z;O61r&je0NdamH#&)mKsXk?Zb_)B^>d0jUxM@u(PQx^-s)6<jB#=*|j%+$$(&(Xyy zYgd8+09XKwoa}S2?48%%ZU#L~n^g{fE40h%YEx5by;GuJ(K|vI1uO;0m}=J7R4@Bs z>97TX<v{QF=s?r`z`m$a0ZvrhBU7}{15RN9M`j!kv_Mp+3~{||YNuFzHNvhMYm3=Q zo!q+OJ5(%-oNM^I^M%*luKMiVL`lo`bcKGymX7i3MIFWj1i|9+CGNvn`cu-RsK0Qh zoYlwB>`ehR4?GS^qbkof1cslKgk<Uw6DeIxZyT_?=OwX|lwC*A?ac*gHF7jmS080$ z>U)h65qZ9Oc=ml_0temigYLJfnz{IDzUf>bGs4N!v3=Z3jMq&A#7%rM5eQ#dc?k~! zVpnB`o+K7|Al`Q_U<UrcmRnh6jExs}l(hZs0%T~Dnpu-NENdhioRv(T{Qmv>;eD$B zfJtP*jH`siUq~{KE)`jP2|#TUEFGRryE2`i0**z#*^6~AI|YzIWy$Cu#CSLW3q=GA z6`?GZymC;dCPk~rBS%eCb`5OLr;RUZ;D`}um=H)BfVIq%7VhiMr)_#G0N#zrNH|__ zc+blN2UAB0=617@>_<D4$IPL<k1zq(*VmlDPer&h1n6`AG;9A!_W=N$JthhQWXZ<i zGURc6f<i*joK3xSWaOOXxAc8ES>u;MPHN;P;N#YoE=)R#i$k_`UAA>WWCcEVMh~L_ zj--gtp&|K1#58Yz*AHCTMziU1Jzt_jG0I@qAOHsk$2}yTmVkBp_eHuY$A9)>P6o~I z%aQ?!(GqeQ-Y+b0I(m9pwgi(IIZZzsbMv+9w{PFtd_<_(LA~0H(xz<Z(Qt1jC2cC| z6WbMo9YgON{L#ZDl$sV4*<CP(>{=FhLB@(1&qHA5EJw1>>=%q2f&^X>IQ{!GJ4e9U z&KlB)z(84HmNgm2hg2C0>WM{E(DdPr+EeU_N@57;PC2&DmGFW_9kP&%?X4}+xWi)( z;)z%wI5>D4a*5XwD)P--sPkoY(a~WBw;E~AW`Yue4kFa^LM3X`8x|}ZUeMnqr}>kH zG%WWW>3ml$Yez?i%)2pbKPI7?5o?hydokgQyZsNEr{a|mLdt;X2TX(#B1j35xPnPW z*bMSSOauW>o;*=kO8ojw91VX!qoOQb)zHJ!odWB}d+*K?#sY_jqPdg{Sm2HdYzdEx zOGVPhVRTGPtv0o}RfVP;Nd(|CB)<HrC1(%ZOEd8PI?r9b_$Cp-${bh59Z_R7n&YCp zl8lfMpes*8{FVm;oJH@0LLoWmxD59u?JwHz2iRrAaE0`Hc&g;t5~$P*kdeOZn9OJ3 zRczo@ZkWU)RG+hcfH~{49Vvb3D(W0wRX#|$cA0Iqy^VR~(4hqA2AFI-rK!FM!#fJ_ zGFI@iqJOPXZ!=VjTS3dMuu~9xU3K1&?th;$)cqM#WGxbDEyB$y`#9j%>I;*t&QO8h zFfekr30S!-LHmV_Su-W+rEwYXJ^;6&3|L$mMC8*bQptyOo9;>Qb9Q9`ySe3%V$A*9 zeKEe+b0{#KWGp$F+tga)0RtI)nhMa-K@JS}2krK~n8vJ=Ngm?R!9G<~RyuU0d?nz# z-5EK$o(!F?hmX*2Yt6+coY`6jGbb7t<dboft~zeDZwK=+l2bFWs5^+|r{J6GO9Cwl z&SW58BRs?XdFLuhtzl7WLbQ#~z#`jAB3AbSUg6jW6@qVd2Q~9qN(izT1y*>F#6nHA zuKk=GGJ;ZwON1iAfG$E#Y7MnZVmrY|j0eVI(DN_MNFJmyZ|;w4tf@=CCDZ#5N_0K= z$;R~bbk?}TpfDjfB&aiQ$VA}s?P}xPERJG{kxk5~R`iRS(SK5d+Xs9swCozZISbnS zk!)I0>t=A<-^z(cmSFz3=jZ23u13X><0b)P)^1T_))Kr`e!-pb#q&J*Q`p+B6la%C zuVl&0duN<;uOsB3%T9Fp8t{ED108<?)`y_~Hnd9AUX7h-H?jVuU|}My+C=TjH(jKz zqMVr0re3S$H@t{zI95qa)+Crz*5Zj}Ao%4Z><+W(nOZd?gDnfNBC3>M8WE61$So|P zVvqH0SNtDTcs<xiU1;=a39$d&&l5EwoIH1db#`S9Kw!YC1jhR)VbCWMptlUUkpfif zMzi-i8)WL?|C$*Q?iqbS{w<lA9XN(rD)VS<zn>UdzaMDpT=Ty0pDHHNL@Z0w$Y`XO z2M-_r1S+GaH%pz#Uy0*w$Vdl=X=rQXEzO}d6J^R6zjM1u&c9vYLvLp?W7w(?np9x1 zE_0JSAJCPB%i7p*Wvg)pn5T`8k3-uR?*NT|J`eS#_#54p>!p(mLDvmc-3o0mX*mp_ zN*AeS<>#^-{S%W<*mz^!X$w_2dHWpcJ6^j64qFBft-o}o_Vx80o0>}Du;>kLts;$8 zC`7q$QI(dKYG`Wa8#wl@V4jVWBRGQ@1dr-hstpQL)Tl+aqVpGpbSfN>5i&QMXfiZ> zaA?T1VGe?rpQ@;+pkrVdd{klI&jVS@I5_iz!=UMpTsa~mBga?1r}a<Xwa$pLotZk< zsykXwQO37I=aXew7x=}YWiW)^p)|C#g+)an!@j?EcY8C0t)BlK#y{YLtkJ6=D6H-5 zp2*ANf@>RBm1WS;TT*s0f0lY=JBl66Upy)-k4J}lh=P^8(SXk~0xW=T9v*B|gzIhN z>qsO7dFd~mgxAy4V?&)=5ieYq?zi?ZEoj)&2o)RLy=<bK!vY7J*RP!&i_xU}i*o6o z?xN*1<rEe1L2HBkCSgiYM3a|4w?Bo7CJL7?Eh;9An1m$1t?h1v92<Xg2(#)bjbL|o zH_H0}!Og=1dOBynXHu>@hbCRcfT5ji<pmK_U*~T(A$I-*rM$8-BCv{=@=7F)2pdtU z5==tp!}A*&Xgf{F>gwtQGE{L*8<@Yd{zg;CsL5mvzfDY}P-wos_6PfprFVaeqNE%h zKZhLtcQld;ZD+>=nqN~>GvROfueSzJD&<KAVm#0W>BE*}XfU|H&(FssBqY=hPCt`d zH?@s2>I(|;fcW&YM6#V<T#ysvE$@4oRO>#!kUIP8$Nkdh0A(bEVj``-AAyYgwY~jB zT|I7Bf@%;7aL7Wf4dZ%VqF$eiaC38OV6oy3Z#TER2G+fOCd9Iaoy6aLYbPTN{XRPz z;U!V|vBf%H!}52L2gH_+j;`bTcQRXB+y9onc^wLm5wi3-Be}U>k_u>2Eg$=k!(l@I zcCg+flakT2Nej3i0yn+g+}%NYb?ta;R<sv-KjYb}UVFjITQ)VAEWu*)Lz7*-f^A*H z<25#Ynt~-Qh?$wWx4$1=T2`j@bKp!)3IXh(LC@)%WGW$+j(tGz(6#bGw&K0j=Np@B zt}@t$R`z(>?(g5SnwsQ49U8Wng8d|{B+lyRcEDvR3+`O{zfmrmvFrL6acVP%yG98X zo&+VBg@px@i)%o?dG(`T;n*$S5*rnyiR#=wW}}GsAcfyQpE|>a{=$Hjg=-*_K;UtD z<sX7(ZJc+Q;#xP8uk`jnF@a^|TWw*55if6@@}%7lOBaGo9Ia-e?`RPQc^w^EWfhe} zHWHTvDA+r}Xf5Yqpr;QU-88%QC9F_>#z-)AXwSRY?<M%E84!g*1GC?E>OPefw^iI+ z)AXz#PfEjlwTes|_{sB?4(O@fg0AJ^g8gP}ex9Ucf*@_^J(s_5jJV}c)s$`Myn|Kd z$<h)Fm>6>}#q^n{4vN@+Os$m7KV+`}c%4)4pv@06af4-x5#wj!KKb%caK{A&Y#Rfs z-po?Dcb1({W=6FKIUirH&(yg=*6aLCekcKwyfK^JN5{wcA3nhO(o}SK#!CINhI`-I z1)6&n7O&ZmyFMuNwvEic#IiOAwNkR=u5it{B9n2sAJV5pNhar=j5`*N!Na;c7g!l$ z3aYBqUkqqTJ=Re-;)s!EOeij=7SQZ3Hq}ZRds%IM*PtM$wV<GYik+VfZene%bm(n6 z`r@rc^TVw7EN{|O7rORMlw)zt(Z#enc3joE#IIk!M)L8gk^go9E9AxiP9o#OqmvV> z@;rlc*NRK7i3y5BETSKuumEN`Xu_8<BQ)z0!-JuC8x}?$qo8SEko}oUWNI(4h*VHO zAi!Egy!f(o9aHs2dhSE6ki(be*&w&+WLOB<(b3T_Hide(NvVvLQV{BN|2?UJFaY*@ z9CXA5B_*8i5Bf6sn~d`R>GP1Ri=OK<SGIb#BCTo3qI#UBUg+dkR+2ilUwIg%XFV;l z+>Q$@I^ko8>H6)4rjiG5{VBM>B|%`&&s^)jS|-_95&yc=GqjNo{zFkw%%HHhS~e=s zD#sfS+-?*t|J!+ozP6KvtOl!R)@@-z24}`9{QaVLD^9VCSR2b`b!KC#o;Ki<+wXB6 zx3&O0LOWcg4&rv4QG0)4yb}7BFSEg~=IR5<g6yi=XozU}zReXL{rA%c`$IQAs<ObZ zep*ITZ0C(~W*`?XH^l1t7&+qigAfY9tVJ5DH!~jY>#ZRj8kg}dS7_V&^%#Do==#`u zpy6{ox?jWuR(;pg+f@mT>#HGWHAJRRDDDv~@(IDw&R>9643kK<aUZ^OhBu;1e6t#{ zxKehVgz`HT;A`FMivG<tq0OcrXwHUX_<$j<uk%m>#HN`!1vBJHnC+RM&yIh8{gG2q zA%e*U3|N0XSRa~oX-3EAneep)@{h2vvd3Xvy$7og(sayr@95+e6~Xvi1tUqnIxoIH zVWo*OwYElb#uyW{Imam6f2<eMTQj#)z8+N&ZY?tSPo%&2eVNU=4=?rlO<*9Twaxco zEVE=Jh?_x>rGbjR!Y3`#gPqkv57dB6K^wRGxc9B(t|aYDGS=m$&S!NmCtrMMaUg(c zc2qC=2Z`EEFMW-me5B)24AqF*bV5Dr-M5ig(l-WPS%CgaPzs6p_gnCIvTJ=Y<6!gT zVt@AfYCzjjsMEGi=rDQHo0yc;HqoRNnNFeWZgcm?f;cp(6CNylj36DoL(?TS7eU#+ z7&mfr#y))+CJOXQKUMZ7QIdS9@#-}7y2K1{8)cCt0~-X0O!O?Qx#E4Og+;A2SjalQ zs7r?qn0H044=sDN$SRG$arw~n=+T_DNdSrarmu)V6@|?1-ZB#hRn`uilTGPJ@fqEy zGt(f0B+^JDP&f=r{#Y_wi#AVDf-y!RIXU^0jXsFpf>=Ji*TeqSY!H~AMbJdCGLhC) zn7Rx+sXw6uYj;WRYrLd^5IZq@6JI1C^YkgnedZEYy<&4(z%Q$5yv#B<pkvWZft^C& z;+zNo+VJNluxaDF!`gW+F0=MxsCQ~~#CYKa;ULfj5hTa8a6;d*(<eeQ7-ZQgz2et^ zf|7URfj;x*#HiF0wuBCOTEpbeD&kkENqolCm2#cQGHCeEC<&I3j+P6?sX?BPp4~46 zx-S~EJ>oo{AH8n$<d4loB?vL3RqXwK_COrQ6xRoWGOdFnWy(hhzrG8k;2k}8Zj&>a zhb4Y3PWdr269&?V%uI$xMcUrMzl=;w<_nm*qr=c3Rl@i5wWB;e-`t7D&c-mcQl7x! zZWB`UGcw=Y2=}~wzrfLx=uet<;m3~=8I~ZRuzvMQUQdr+yTV|ATf1Uuomr__nDf=X zZ3WYJtHp_ri(}SQAPjv+Y+0=<GD??Na(2AG`s>fH4krOP@S&=zZ-t1jW1o@}z;xk8 z(Nz1co&El^HK^NrhVHa-_;&88vTU>_J33=%{if;BEY*J#1n59=07jrGQ#IP>@u#3A z;!q+E1Rj3ZJ+!4bq9F8PXJ@yMgZL;>&gYA0%_Kbi8?S=XGM~dnQZQ!yBSgcZhY96H zrWnU;k)qy`rX&&xlDyA%(a1Hhi5CWkmg(`Gb%m(HKi-7Z!LKGRP_B8@`7&hdDy5n= z`OIxqxiVfX@OX1p(mQu>0Ai*v_cTMiw4qRt3~N<X{IYiJ3k=4u-u*nJEBnJ<OdI8P zXmK`OYkO5a{YDhI3PL|H4m=p>Bvr9oBy0)r>w3p~V0SCm=An6@3n)>@z!|o-$HvDK z|3D2ZMJkLE5loMKl6R^ez@Zz%S$&mbeoqH5`Bb){Ei21q&VP)hWS2tjShfFtGE+$z zzCR$P#uktu+#!w)cX!<osOkId_HzAT-HD2N`M+v2l+zwdW%GgZbQMuhfE*hHjKXKg z45hphqVETPDbX6wpTlZqza0gFaRGh`3L~0id)F6#%@9;w(e%PjzuD7@inuToA!B?F zCMLJc!u{3N)s?lB-!11!GxXsCak8zQomO)gmn02f-5~OkMYnm~#jVwwYNw@LAv!KN z-n`q1|AXw*TW>lWN1XU%K-r=s{|j?)Akf@q#3b#{6cZCuJ~gCxuMXRmI$nGtnH+-h z+GEi!*X=AP<|fG`1>MBdTb?28JYc=fGvAi2I<$B(rs$;eoJCyR6_bc~p!XR@O-+sD z=eH`-ye})I5ic1eL~TDmtfJ|8`0VJ*Yr=hNCd)G1p2MMz4C3^Mj?7;!w|Ly%JqmuW zlIEW^Ft%z?*|fpXda>Jr^1noFZEwFgVV%|*XhH@acv8rdGxeEX{M$(vG{Zw+x(ei@ zmfXb22}8-?Fi`vo-YVrTH*C?a8%M=Hv9MqVH7H^J$KsD?>!SFZ;ZsvnHr_gn=7acz z#W?0eCdVhVMWN12VV^$>WlQ?f;P^{(&pYTops|btm6aj>_Uz+hqpGwB)vWp0Cf5y< zft8-je~nn?W11plq}N)4A{l8I7$!ks_x$PXW-2XaRFswX_BnF{R#6YIwMhAgd5F9X zGmwdadS6(a^fjHtXg8=l?Rc0Sm%hk6E9!5cLVloEy4eh(=FwgP`)~I^5~pBEWo+F6 zSf2ncyMurJN91#cJTy_u8Y}@%!bq1RkGC~-bV@SXRd4F{R-*V<h953|jk-C&|3)z% ze&_30-6q1)a0(!xXqA+_t(WC`HA_yYaW@>`bS+6;W5vZ(&+I<9$;-V|eNfLa5n-6% z2(}&uGRF;p9<Q%jdNy1%e7XTzyu7EEQT(5LrnvX~T%K!IuDyHY`ZneVJu#k_1T)xA z*yxB?y4!pOJ$DTZzBm|8OIQq+AtV25aJ+X5EJjAu><tfuiNClI2BSoMgqLnU-5t95 zEnZ(^g~1RgD=UMB({c;$HujG&%DqGF;5jI~roRT+(rOoS$6f6SsURIuAVkAeIVc~{ z5ZxLN%m%Z*Sg;qYCf3<$dE6~&w_!EBx%yl4YC~LH{FCFNRBc_I>2eS*sE*o<YSPrx z{M(reV{~jKue#Y6ZOnqJia{fQc!UxV4m)l389OmzR6A3|2!i<P{r82jKw+zq4%@ny znopi6g!1Vx9Bml#a~KdL2lp2C)qSTKIh43vgycQHfQb_I!kQY&p;X@Bz|{^SXsW1K zP&Ag1CW_r6u5-4=s(W>R$@pexaqr*meB)VhmIg@h{uzkk$9~qh#cHhw#>O%)b@+(| z^IQgqzuj~Sk(J;swEM-3TrJAPCq9k^^^`q{IItKBRXYe}e0Tdr=Huf7da3$l4<V=< zfr<*%iOB1EY}w3tF2Cwl7a2OS&~Y-lu<s)T^9=OFU8(CeN|63BiMxf*)5gesGU<eZ z9DigzL3+quZ1o2T<KAZbCGJx&lrl*e#}Dpv24bZO$B<Yoc5hbeP0y?@P%|Tvw||e% zV#e^q0D2R_Oq_c+=x5vP&hg4k+df{o7$aNZCM>PdpwWDop%^}n;dD#K4s#DYA8SHZ z&1!riV4W4R7R#C))JH1~axJ)RYnM$$lIR%6fIVA@zV{XVyx}C+a-Dt8Y9M)^KU0+H zR4IUb2CJ{Hg>CuaXtD50jB(_Tcx=Z$^W<wsNa}nUDpNk$q{>Yu2u5kubqmwp%drJ6 z?Fo40g!Qd<-l=TQxqHEOuPX0;^z7iX?Ke^a%XT<13TA^5`4Xcw6D@Ur&VT&CUe0d} z1GjOVF1^L@>O)l@?bD~$wzgf(nxX1OGD8fEV?TdJcZc2KoUe|oP1#=$$7ee|xbY)A zDZq+cuTpc(fFdj^=!;{k03C69lMQ(|>uhRfRu%+!k&<F<Z7l=VnwB^RA&^APMi=Tn zNc}%IJL~xB4OP6bJNwAw)~Ma2=UP0dhr%X=kco(it+@F<#$xrIJ8@|{Buh<)h`xg? z_U}pe=3#zmDfdqE4`Hyn<!?&CfCp#GTeXo8;AYd1Opd&cXER8cBSOF3iFJ#XPgQVp zZSiQf7V^Dt?ITs8aMF~e1hq0P@^oB)#byh|6q_7F1B%ST%WL~J?ySn>YOi-3|1QKB z<?_cUy)V3go%%^l)lRa=dmY_XQG3Z{Q?52d$qG}vIe|EZbYEtrR$rh(iS)O#dU-(> z?n?eq1XP>p-IM$Z^C;2L3itnbJZAip*Zo0aw2bs8@(s^~*8T9go!%dHcAz2lM;`yp zD=7&xjFV$S&5uDaiScyD?B-i1ze`+CoRtz`Wn+Zl&#<i<Zx(`=7k~{%`w&<EbG}U< z0%E^8lyw>s4&}MO{@N!ufrzjG$B79)Y2d3tBk&)TxUTw@<TSeYlROCt(gU?O((-qu zs>QS0TEL_?njX|<LXnSC4TlId(D4W|GQ?L@$3Ue@N8p=l9-sC<=z(lPk;^sT(v2*k zc~vp#Hp`mXjzhml2NMCh^h5)sqsan+jJ_l<a4w|G&ac02hrz8#6|kFraA~rta0}!q zB4BE{QWY7MtxHn_xB);Avf#Lf<GG<A?Q3JVyc1p8^H}$8(Gn=_&F1!m8$sKyeue+L z5&392wm+wO;_oXoTEJ=wxVXk}dt<d~CgUUMW_PPTe(c<7n18#mVaX)vK}-PzZq7<b zNJbVTFaq(8ZLx|A*G$H3ugT2aVziDEGa66FVt@hr1|D{RWN6yuqlglM!rp^YG;UpG zrnm?ek079l3VoOU^p%f^A9Yzn8IVX?^rB4LbgJ|PONhzM_0{P?S(V$OI=u5IBjfT# z0ntLLnhg5$0fAHJaG6HCx4X7;RmvMtE}8C>@vq?Uz(nBFK5Pq7*xj#u*R&i|?7+6# z+|r_n#SW&LXhtheZdah{ZVoqwyT{D>MC3nkFF#N)xLi{p7J1jXlmVeb;cP5?e(=f# zuT7fv<Q3o5LspCx-RPkzLw{VsDE>jSbjS781v?7{)-X3*?>tq?)Yd)~|1{BDS(pqC zC}~H#WXlkUW*H5CDOo<)#x7%RY)A;ShGhI5s*#cRDA8YgqG(HeKDx+#(ZQ?386dv! zlXCO)w91~Vw4AmOcATuV653fa9R$fyK8<JV*@W33SMHM;w!OmUXar{O;_8j>ul%rG z-<zwGD)!Y{+(T{%ob~79zpXX%zulyiy1_UHWvu@YqxKAK3e9GO6Os4R0Naujn>wfS zihugoZyr38Im?Zuh6@RcF~t1anQu7>#lPpb#}4cOA!EM11`%f*07RqOVkmX{p~KJ9 z^zP;K#|)$`^Rb{rnH<AdQ^(;gQMcF>GH{~>1(fawV0*Z#)}M`m8-?ZJV<+e}s9wE# z)l&az?w^5{)`S(%MRzxdNqrs1n*-=jS^_jqE*5XDrA0+VE`5^*p3CuM<&dZEeCjoz zR;uu_H9ZPZV|fQq`Cyw4nscrVwi!fE6ciMmX$!_hN7uF;jjKG)d2@aC4ropY)8<!P zAOHj?oPbjQ%hh|vE_1IMB)43eQpeLi&)R>etW=xJvni)8eHi`H$%#zn^WJ<U7gogJ z?A^!2J~rI78JH|Ml2EldmKY5K8;Zx(FGcBdM<5oe#G+nd6dObqz@Af%%M*aBE_pn8 zXQo2`Bw*IwvP3#1Ev<%YocpBodO9+Rw~`5*CY3{L;qf1PxV!r%NI+#Q1f8GU7$~#U zAA9$4&g-k=8BYi*3i@0^UX}nTQVyOf)8T(}G^Ti?Vqvk~bJRR#EAQ?u`dClPxk@{; zxvO?%jSX`2{8|^z0*C5DR1Z^>5NLc-rqk|u&&4Z6fD_m&JfSI1Bvb?b<*n&sfl0^t z=HnmRl`XrFvMKB%9}>PaA`m-fK6a0(8=qPkWS5bb4=v?XcWi&hRY?O5HdulRi4?fN zlsJ*N-0Qw+Yic@s0(2uy%F@ib;GjXt01F<S%GT3P{Ck&Y*^gWuie`o_g+ZNDNIV|F z)zEe|Ij*4$H1(<RLz0($;AD3VsUJwI@liw^?fh(V?VC`Sz7h`*Q<VYlhbHJ?&h+!W zAJC)U;Lx_QRaSNFYbyi|7+MeNTgA+Znh}qFzf>mx5XbRo6+n|pP(&nodMoap^z{~q ziEeaUT@Mxe3vJSfI6?uLND(CNr=#^W<1b}jzW58bIfyWTDle$mmS(|x-0|2UlX+9k zQ<WB5+u#`K#~J$81)#?BuTOKLk|+S>^EX7Nw}?EzVoBfT(-LT|=9N@^hcn-_p&sqG z&*oVs2JSU+N4ZD`FhCAWaS;>|wH2G*Id|?pa#@>tyxX`+4HyIArWDvVrX)2WAOQff z0qyHu&-S@i^MS-+j--!pr4fPBj~_8({~e1bfcl0wI1kaoN>mJL6KUPQm5N7lB(ui1 zE-o%kq)&djzWJ}ob<-GfDlkB;F31j-VHKvQUGQ3sp`CwyGJk_i!y^sD0fqC@$9|jO zOqN!r!8-p==F@ZVP=U$qSpY(gQ0)59P1&t@y?5rvg<}E+GB}2<F#{*|k0E{$&_`~) zkzDcsi#!7r<a8lPUCMj?{CK;e|9#-xj>6NYPp4f2YFQrQtot5mn3wu_qprZ=>Ig-$ zbW26Ws~IgY>}^5w`vTB(G`PTZaDiGBo5o(tp)qli|NeV(<Rzgqw(Ze!7hEGKKx((> z@H_=R8V39rt5J5YB2Ky?4eJJ#b`_iBe2ot~6%7mLt5t8Vwi^Jy7|jWXqa3amOIoRb zOr}WVFP--DsS`1WpN%~)t3R!arKF^Q$e12KEqU36AWwnCBICpH4XCsfnyrHr>$I$4 z!DpKX$OKLWarN7nv@!uIA+~RNO)l$$w}p(;b>mx8pwYvu;dD_unryX_N<mojSrG!` zgkqx4t<XLL6ZUppvjeV9PJ6dG>hT8*Tj>BTrTTL&!?O+%Rv;b?B??gSzdp?6Uug9{ zd@V08Z$BdI?fpoCS$)t4mg4rT8Q_I}h`0d-vYZ^|dOB*Q^S|xqTV*<bTMtKO;_Z)R zRSOJrd5TFO0aO%#%-sNa{`SiQ^$$1^@oUd&^lB{MKZ>vIg?@fVFSmMpaw0qtTRbx} z({Pg?#{2`sc9)M5N$*N|4;^t$+Q<Wh^yJ?FzJ*$wiB{j;CMy+?m1MbsJo0ubR==f9 z>P?#mo<zt1E6=Ilm*nbmYmpxfAj7*m*Wh@=7|;!%(-pviW`nuCktLveet9^$*y^>v zGVC@I*lBVrOU-%2y!7%)fAKjpEFsgQc4{amtiHb95KQEwvf<(3T<9-Zm$xIew#P22 zc2Ix|App^>v6(3L_MCU0d3W##AB<Fxl*nmny6_RsCu%1a)so}}uCXSzwY70Y@uTxK z=5nu(N*2HDbrIcL)t_*{*84mvmV_Y9<vxHJJ;0gUdNjyW)jDb|@|j*qR8;gsMa5Ir z02fHv=%xyN9VLv_ZLL4y|F*p$S^^T47m{aok5{rmM{$s7^Xu2!_fo1$IG6kkG_Tgx zFfjPm3;g>0M~3D00EWoKZqsJYT(#@w$Y_H7G22M~ApVFTRHMI_3be)Lkn#0F*V8Pq zc}`Cjy$bE;FJ6H7p=0y#R>`}-m4(0F>%@P|?7fx{=R^uFdISRnZ2W_xQhD{YuR3t< z{6yxu=4~JkeA;|(J6_nv#>Nvs&FuLA&PW^he@t(UwFFE8)|a!R{`E`K`i^ZnyE4$k z;(749Ix|oi$c3QbEJ3b~D_kQsPz~fIUKym($a_7dJ?o+40*OLl^{=&oq$<#Q(yyrp z{J-FAniyAw9tPbe&IhQ|a`DqFTVQGQ&Gq3!C2==4x{6EJwiPZ8zub-iXoUtkJiG{} zPaR&}_fn8_z~(=;5lD-aPWD3z8PZS@AaUiomF!G8I}Mf>e~0g#BelA-5#`cj;O5>N Xviia!U7SGha1wx#SCgwmn*{w2TRX*I literal 0 HcmV?d00001 diff --git a/crm_lead_firstname/tests/__init__.py b/crm_lead_firstname/tests/__init__.py new file mode 100644 index 00000000000..253e779a129 --- /dev/null +++ b/crm_lead_firstname/tests/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# © 2016 Antiun Ingeniería S.L. - Jairo Llopis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import test_crm_lead diff --git a/crm_lead_firstname/tests/test_crm_lead.py b/crm_lead_firstname/tests/test_crm_lead.py new file mode 100644 index 00000000000..c8b9a9dd007 --- /dev/null +++ b/crm_lead_firstname/tests/test_crm_lead.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +# © 2016 Antiun Ingeniería S.L. - Jairo Llopis +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openerp.tests.common import TransactionCase + + +class FirstnameCase(TransactionCase): + def setUp(self): + super(FirstnameCase, self).setUp() + self.lead = self.env["crm.lead"].create({ + "name": u"Léad", + "partner_name": u"Pärtner", + "contact_name": u"Firçt name", + "contact_lastname": u"Laçt name", + }) + self.partner = self.env["res.partner"].create({ + "firstname": u"Firçt name", + "lastname": u"Laçt name", + }) + + def test_create_contact(self): + """Contact correctly created.""" + partner_id = self.lead.handle_partner_assignation()[self.lead.id] + partner = self.env["res.partner"].browse(partner_id) + self.assertEqual(self.lead.contact_name, partner.firstname) + self.assertEqual(self.lead.contact_lastname, partner.lastname) + + def test_create_contact_empty(self): + """No problems creating a contact without names.""" + self.lead.write({ + "contact_name": False, + "contact_lastname": False, + }) + self.lead.handle_partner_assignation() + + def test_onchange_partner(self): + """When changing partner, fields get correctly updated.""" + with self.env.do_in_onchange(): + self.lead.partner_id = self.partner + value = self.lead.on_change_partner_id(self.partner.id)["value"] + self.assertEqual( + self.partner.firstname, value["contact_name"]) + self.assertEqual( + self.partner.lastname, value["contact_lastname"]) diff --git a/crm_lead_firstname/views/crm_lead_view.xml b/crm_lead_firstname/views/crm_lead_view.xml new file mode 100644 index 00000000000..28f08d9f844 --- /dev/null +++ b/crm_lead_firstname/views/crm_lead_view.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- © 2016 Antiun Ingeniería S.L. - Jairo Llopis + License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> + +<openerp> +<data> + + <record id="crm_case_form_view_leads" model="ir.ui.view"> + <field name="name">Add firstname and lastname</field> + <field name="model">crm.lead</field> + <field name="inherit_id" ref="crm.crm_case_form_view_leads"/> + <field name="arch" type="xml"> + <xpath expr="//label[@for='contact_name']" position="attributes"> + <attribute name="string">Contact Name</attribute> + </xpath> + <xpath expr="//field[@name='contact_name']" position="attributes"> + <attribute name="placeholder">Firstname</attribute> + </xpath> + <xpath expr="//field[@name='contact_name']" position="after"> + <field name="contact_lastname" placeholder="Lastname"/> + </xpath> + </field> + </record> + + <record id="crm_case_form_view_oppor" model="ir.ui.view"> + <field name="name">Add firstname and lastname</field> + <field name="model">crm.lead</field> + <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/> + <field name="arch" type="xml"> + <xpath expr="//label[@for='contact_name']" position="attributes"> + <attribute name="string">Contact Name</attribute> + </xpath> + <xpath expr="//field[@name='contact_name']" position="attributes"> + <attribute name="placeholder">Firstname</attribute> + </xpath> + <xpath expr="//field[@name='contact_name']" position="after"> + <field name="contact_lastname" placeholder="Lastname"/> + </xpath> + </field> + </record> + +</data> +</openerp> From d6bb16e7c90dd633983ee24e27786848e774cb95 Mon Sep 17 00:00:00 2001 From: OCA Transbot <transbot@odoo-community.org> Date: Sat, 12 Mar 2016 04:04:15 -0500 Subject: [PATCH 02/30] OCA Transbot updated translations from Transifex --- crm_lead_firstname/i18n/bg.po | 46 ++++++++++++++++++++++++++++++ crm_lead_firstname/i18n/de.po | 47 +++++++++++++++++++++++++++++++ crm_lead_firstname/i18n/fr.po | 46 ++++++++++++++++++++++++++++++ crm_lead_firstname/i18n/fr_CH.po | 46 ++++++++++++++++++++++++++++++ crm_lead_firstname/i18n/hr.po | 47 +++++++++++++++++++++++++++++++ crm_lead_firstname/i18n/it.po | 48 ++++++++++++++++++++++++++++++++ crm_lead_firstname/i18n/pt_BR.po | 46 ++++++++++++++++++++++++++++++ crm_lead_firstname/i18n/sk.po | 46 ++++++++++++++++++++++++++++++ crm_lead_firstname/i18n/sl.po | 47 +++++++++++++++++++++++++++++++ crm_lead_firstname/i18n/tr.po | 46 ++++++++++++++++++++++++++++++ crm_lead_firstname/i18n/zh_CN.po | 46 ++++++++++++++++++++++++++++++ 11 files changed, 511 insertions(+) create mode 100644 crm_lead_firstname/i18n/bg.po create mode 100644 crm_lead_firstname/i18n/de.po create mode 100644 crm_lead_firstname/i18n/fr.po create mode 100644 crm_lead_firstname/i18n/fr_CH.po create mode 100644 crm_lead_firstname/i18n/hr.po create mode 100644 crm_lead_firstname/i18n/it.po create mode 100644 crm_lead_firstname/i18n/pt_BR.po create mode 100644 crm_lead_firstname/i18n/sk.po create mode 100644 crm_lead_firstname/i18n/sl.po create mode 100644 crm_lead_firstname/i18n/tr.po create mode 100644 crm_lead_firstname/i18n/zh_CN.po diff --git a/crm_lead_firstname/i18n/bg.po b/crm_lead_firstname/i18n/bg.po new file mode 100644 index 00000000000..5c5996c13bd --- /dev/null +++ b/crm_lead_firstname/i18n/bg.po @@ -0,0 +1,46 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_firstname +# +# 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_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Contact Name" +msgstr "" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Firstname" +msgstr "" + +#. module: crm_lead_firstname +#: field:crm.lead,contact_lastname:0 +msgid "Last name" +msgstr "" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Lastname" +msgstr "" + +#. module: crm_lead_firstname +#: model:ir.model,name:crm_lead_firstname.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Следа/Възможност" diff --git a/crm_lead_firstname/i18n/de.po b/crm_lead_firstname/i18n/de.po new file mode 100644 index 00000000000..ee19ec4af2e --- /dev/null +++ b/crm_lead_firstname/i18n/de.po @@ -0,0 +1,47 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_firstname +# +# Translators: +# Rudolf Schnapka <rs@techno-flex.de>, 2017 +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-03-28 02:25+0000\n" +"PO-Revision-Date: 2017-04-11 14:58+0000\n" +"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>\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_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Contact Name" +msgstr "Ansprechpartner" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Firstname" +msgstr "Vorname" + +#. module: crm_lead_firstname +#: field:crm.lead,contact_lastname:0 +msgid "Last name" +msgstr "Nachname" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Lastname" +msgstr "Nachname" + +#. module: crm_lead_firstname +#: model:ir.model,name:crm_lead_firstname.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Lead/Chance" diff --git a/crm_lead_firstname/i18n/fr.po b/crm_lead_firstname/i18n/fr.po new file mode 100644 index 00000000000..52060494575 --- /dev/null +++ b/crm_lead_firstname/i18n/fr.po @@ -0,0 +1,46 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_firstname +# +# Translators: +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-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_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Contact Name" +msgstr "" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Firstname" +msgstr "" + +#. module: crm_lead_firstname +#: field:crm.lead,contact_lastname:0 +msgid "Last name" +msgstr "" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Lastname" +msgstr "" + +#. module: crm_lead_firstname +#: model:ir.model,name:crm_lead_firstname.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Piste/Opportunité" diff --git a/crm_lead_firstname/i18n/fr_CH.po b/crm_lead_firstname/i18n/fr_CH.po new file mode 100644 index 00000000000..ec7f64ad61a --- /dev/null +++ b/crm_lead_firstname/i18n/fr_CH.po @@ -0,0 +1,46 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_firstname +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-26 06:47+0000\n" +"PO-Revision-Date: 2016-03-10 18:53+0000\n" +"Last-Translator: <>\n" +"Language-Team: French (Switzerland) (http://www.transifex.com/oca/OCA-crm-8-0/language/fr_CH/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr_CH\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Contact Name" +msgstr "" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Firstname" +msgstr "" + +#. module: crm_lead_firstname +#: field:crm.lead,contact_lastname:0 +msgid "Last name" +msgstr "Nom de famille" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Lastname" +msgstr "" + +#. module: crm_lead_firstname +#: model:ir.model,name:crm_lead_firstname.model_crm_lead +msgid "Lead/Opportunity" +msgstr "" diff --git a/crm_lead_firstname/i18n/hr.po b/crm_lead_firstname/i18n/hr.po new file mode 100644 index 00000000000..f95db3be67d --- /dev/null +++ b/crm_lead_firstname/i18n/hr.po @@ -0,0 +1,47 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_firstname +# +# Translators: +# Ana-Maria Olujić <ana-maria.olujic@slobodni-programi.hr>, 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ć <ana-maria.olujic@slobodni-programi.hr>\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_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Contact Name" +msgstr "Ime kontakta" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Firstname" +msgstr "Ime" + +#. module: crm_lead_firstname +#: field:crm.lead,contact_lastname:0 +msgid "Last name" +msgstr "Prezime" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Lastname" +msgstr "Prezime" + +#. module: crm_lead_firstname +#: model:ir.model,name:crm_lead_firstname.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Potencijalni klijent" diff --git a/crm_lead_firstname/i18n/it.po b/crm_lead_firstname/i18n/it.po new file mode 100644 index 00000000000..51be0a66aa0 --- /dev/null +++ b/crm_lead_firstname/i18n/it.po @@ -0,0 +1,48 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_firstname +# +# Translators: +# Paolo Valier, 2016 +# Paolo Valier, 2016 +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-04-16 11:11+0000\n" +"PO-Revision-Date: 2016-04-30 20:14+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_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Contact Name" +msgstr "Nome del Contatto" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Firstname" +msgstr "Nome" + +#. module: crm_lead_firstname +#: field:crm.lead,contact_lastname:0 +msgid "Last name" +msgstr "Cognome" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Lastname" +msgstr "Cognome" + +#. module: crm_lead_firstname +#: model:ir.model,name:crm_lead_firstname.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Lead/Opportunità" diff --git a/crm_lead_firstname/i18n/pt_BR.po b/crm_lead_firstname/i18n/pt_BR.po new file mode 100644 index 00000000000..c1598fc311e --- /dev/null +++ b/crm_lead_firstname/i18n/pt_BR.po @@ -0,0 +1,46 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_firstname +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-03-26 09:38+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_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Contact Name" +msgstr "" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Firstname" +msgstr "" + +#. module: crm_lead_firstname +#: field:crm.lead,contact_lastname:0 +msgid "Last name" +msgstr "" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Lastname" +msgstr "" + +#. module: crm_lead_firstname +#: model:ir.model,name:crm_lead_firstname.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Prospector/Oportunidade" diff --git a/crm_lead_firstname/i18n/sk.po b/crm_lead_firstname/i18n/sk.po new file mode 100644 index 00000000000..8f54964dad0 --- /dev/null +++ b/crm_lead_firstname/i18n/sk.po @@ -0,0 +1,46 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_firstname +# +# 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_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Contact Name" +msgstr "" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Firstname" +msgstr "" + +#. module: crm_lead_firstname +#: field:crm.lead,contact_lastname:0 +msgid "Last name" +msgstr "" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Lastname" +msgstr "" + +#. module: crm_lead_firstname +#: model:ir.model,name:crm_lead_firstname.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Iniciatíva/Príležitosť" diff --git a/crm_lead_firstname/i18n/sl.po b/crm_lead_firstname/i18n/sl.po new file mode 100644 index 00000000000..4b393d3783f --- /dev/null +++ b/crm_lead_firstname/i18n/sl.po @@ -0,0 +1,47 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_firstname +# +# Translators: +# Matjaž Mozetič <m.mozetic@matmoz.si>, 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:40+0000\n" +"Last-Translator: Matjaž Mozetič <m.mozetic@matmoz.si>\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_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Contact Name" +msgstr "Naziv stika" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Firstname" +msgstr "Ime" + +#. module: crm_lead_firstname +#: field:crm.lead,contact_lastname:0 +msgid "Last name" +msgstr "Priimek" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Lastname" +msgstr "Priimek" + +#. module: crm_lead_firstname +#: model:ir.model,name:crm_lead_firstname.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Indic/priložnost" diff --git a/crm_lead_firstname/i18n/tr.po b/crm_lead_firstname/i18n/tr.po new file mode 100644 index 00000000000..fbcd61dc04b --- /dev/null +++ b/crm_lead_firstname/i18n/tr.po @@ -0,0 +1,46 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_firstname +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: crm (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-12-24 01:15+0000\n" +"PO-Revision-Date: 2016-03-10 18:53+0000\n" +"Last-Translator: <>\n" +"Language-Team: Turkish (http://www.transifex.com/oca/OCA-crm-8-0/language/tr/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: tr\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Contact Name" +msgstr "" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Firstname" +msgstr "" + +#. module: crm_lead_firstname +#: field:crm.lead,contact_lastname:0 +msgid "Last name" +msgstr "Soyadı" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Lastname" +msgstr "" + +#. module: crm_lead_firstname +#: model:ir.model,name:crm_lead_firstname.model_crm_lead +msgid "Lead/Opportunity" +msgstr "" diff --git a/crm_lead_firstname/i18n/zh_CN.po b/crm_lead_firstname/i18n/zh_CN.po new file mode 100644 index 00000000000..8366ea6a78a --- /dev/null +++ b/crm_lead_firstname/i18n/zh_CN.po @@ -0,0 +1,46 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_firstname +# +# 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_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Contact Name" +msgstr "" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Firstname" +msgstr "" + +#. module: crm_lead_firstname +#: field:crm.lead,contact_lastname:0 +msgid "Last name" +msgstr "" + +#. module: crm_lead_firstname +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads +#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +msgid "Lastname" +msgstr "" + +#. module: crm_lead_firstname +#: model:ir.model,name:crm_lead_firstname.model_crm_lead +msgid "Lead/Opportunity" +msgstr "线索/商机" From 7181d2900b7ffad86f928a2d5211d3762fb6dbca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Em=C4=ABls=20Go=C5=A1ko?= <emils.gosko@avoin.systems> Date: Wed, 22 Aug 2018 17:05:48 +0300 Subject: [PATCH 03/30] [MIG] crm_lead_firstname: Migration to 11.0 --- crm_lead_firstname/README.rst | 4 +- .../{__openerp__.py => __manifest__.py} | 4 +- crm_lead_firstname/models/crm_lead.py | 49 ++++++++++--------- crm_lead_firstname/tests/test_crm_lead.py | 16 +++--- crm_lead_firstname/views/crm_lead_view.xml | 8 +-- 5 files changed, 40 insertions(+), 41 deletions(-) rename crm_lead_firstname/{__openerp__.py => __manifest__.py} (88%) diff --git a/crm_lead_firstname/README.rst b/crm_lead_firstname/README.rst index 4d11e485ea4..144a5e9780d 100644 --- a/crm_lead_firstname/README.rst +++ b/crm_lead_firstname/README.rst @@ -39,7 +39,7 @@ To use this module, you need to: .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/134/8.0 + :target: https://runbot.odoo-community.org/runbot/111/11.0 Bug Tracker =========== @@ -51,7 +51,7 @@ help us smashing it by providing a detailed and welcomed `feedback <https://github.com/OCA/ crm/issues/new?body=module:%20 crm_lead_firstname%0Aversion:%20 -8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. +11.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. Credits ======= diff --git a/crm_lead_firstname/__openerp__.py b/crm_lead_firstname/__manifest__.py similarity index 88% rename from crm_lead_firstname/__openerp__.py rename to crm_lead_firstname/__manifest__.py index 4d682438d04..9c0100bbfe2 100644 --- a/crm_lead_firstname/__openerp__.py +++ b/crm_lead_firstname/__manifest__.py @@ -4,9 +4,9 @@ { "name": "Firstname and Lastname in Leads", "summary": "Specify split names for contacts in leads", - "version": "8.0.1.0.0", + "version": "11.0.1.0.0", "category": "Customer Relationship Management", - "website": "http://www.antiun.com", + "website": "http://www.github.com/OCA/crm", "author": "Antiun Ingeniería S.L., Odoo Community Association (OCA)", "license": "AGPL-3", "application": False, diff --git a/crm_lead_firstname/models/crm_lead.py b/crm_lead_firstname/models/crm_lead.py index 78bc3d6a0cf..0edfac3291a 100644 --- a/crm_lead_firstname/models/crm_lead.py +++ b/crm_lead_firstname/models/crm_lead.py @@ -2,8 +2,7 @@ # © 2016 Antiun Ingeniería S.L. - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from collections import OrderedDict -from openerp import api, fields, models +from odoo import api, fields, models class CrmLead(models.Model): @@ -12,33 +11,37 @@ class CrmLead(models.Model): contact_name = fields.Char("First name") contact_lastname = fields.Char("Last name") - @api.model - def _lead_create_contact(self, lead, name, is_company, parent_id=False): + @api.multi + def _create_lead_partner_data(self, name, is_company, parent_id=False): """Ensure first and last names of contact match those in lead.""" - partner_id = super(CrmLead, self)._lead_create_contact( - lead, name, is_company, parent_id) - if not is_company and partner_id: - partner = self.env["res.partner"].browse(partner_id) - - # Write fields with values first - partner.update( - OrderedDict( - sorted( - (("firstname", lead.contact_name), - ("lastname", lead.contact_lastname)), - key=lambda item: item[1], - reverse=True))) - return partner_id + lead_partner_data = super(CrmLead, self)._create_lead_partner_data( + name, + is_company, + parent_id + ) + if not is_company: + if self.contact_name: + lead_partner_data.update({ + "firstname": self.contact_name, + }) + if 'name' in lead_partner_data: + del lead_partner_data['name'] + if self.contact_lastname: + lead_partner_data.update({ + "lastname": self.contact_lastname, + }) + if 'name' in lead_partner_data: + del lead_partner_data['name'] + return lead_partner_data - @api.multi - def on_change_partner_id(self, partner_id): + def _onchange_partner_id_values(self, partner_id): """Recover first and last names from partner if available.""" - result = super(CrmLead, self).on_change_partner_id(partner_id) + result = super(CrmLead, self)._onchange_partner_id_values(partner_id) - if result.get("value") and partner_id: + if partner_id: partner = self.env["res.partner"].browse(partner_id) if not partner.is_company: - result["value"].update({ + result.update({ "contact_name": partner.firstname, "contact_lastname": partner.lastname, }) diff --git a/crm_lead_firstname/tests/test_crm_lead.py b/crm_lead_firstname/tests/test_crm_lead.py index c8b9a9dd007..c49201112cd 100644 --- a/crm_lead_firstname/tests/test_crm_lead.py +++ b/crm_lead_firstname/tests/test_crm_lead.py @@ -2,21 +2,21 @@ # © 2016 Antiun Ingeniería S.L. - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp.tests.common import TransactionCase +from odoo.tests.common import TransactionCase class FirstnameCase(TransactionCase): def setUp(self): super(FirstnameCase, self).setUp() self.lead = self.env["crm.lead"].create({ - "name": u"Léad", - "partner_name": u"Pärtner", - "contact_name": u"Firçt name", - "contact_lastname": u"Laçt name", + "name": "Léad", + "partner_name": "Pärtner", + "contact_name": "Firçt name", + "contact_lastname": "Laçt name", }) self.partner = self.env["res.partner"].create({ - "firstname": u"Firçt name", - "lastname": u"Laçt name", + "firstname": "Firçt name", + "lastname": "Laçt name", }) def test_create_contact(self): @@ -38,7 +38,7 @@ def test_onchange_partner(self): """When changing partner, fields get correctly updated.""" with self.env.do_in_onchange(): self.lead.partner_id = self.partner - value = self.lead.on_change_partner_id(self.partner.id)["value"] + value = self.lead._onchange_partner_id_values(self.partner.id) self.assertEqual( self.partner.firstname, value["contact_name"]) self.assertEqual( diff --git a/crm_lead_firstname/views/crm_lead_view.xml b/crm_lead_firstname/views/crm_lead_view.xml index 28f08d9f844..207fa5a9d85 100644 --- a/crm_lead_firstname/views/crm_lead_view.xml +++ b/crm_lead_firstname/views/crm_lead_view.xml @@ -2,9 +2,7 @@ <!-- © 2016 Antiun Ingeniería S.L. - Jairo Llopis License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> -<openerp> -<data> - +<odoo> <record id="crm_case_form_view_leads" model="ir.ui.view"> <field name="name">Add firstname and lastname</field> <field name="model">crm.lead</field> @@ -38,6 +36,4 @@ </xpath> </field> </record> - -</data> -</openerp> +</odoo> From 3745b0cc01e608de82353b1226adf8927bd1de75 Mon Sep 17 00:00:00 2001 From: oca-travis <oca+oca-travis@odoo-community.org> Date: Sat, 23 Jun 2018 02:09:09 +0000 Subject: [PATCH 04/30] [UPD] Update crm_lead_firstname.pot --- crm_lead_firstname/i18n/bg.po | 7 +-- .../i18n/crm_lead_firstname.pot | 43 +++++++++++++++++++ crm_lead_firstname/i18n/de.po | 7 +-- crm_lead_firstname/i18n/es.po | 2 +- crm_lead_firstname/i18n/fr.po | 7 +-- crm_lead_firstname/i18n/fr_CH.po | 7 +-- crm_lead_firstname/i18n/hr.po | 10 +++-- crm_lead_firstname/i18n/it.po | 7 +-- crm_lead_firstname/i18n/pt_BR.po | 7 +-- crm_lead_firstname/i18n/sk.po | 7 +-- crm_lead_firstname/i18n/sl.po | 10 +++-- crm_lead_firstname/i18n/tr.po | 7 +-- crm_lead_firstname/i18n/zh_CN.po | 7 +-- 13 files changed, 92 insertions(+), 36 deletions(-) create mode 100644 crm_lead_firstname/i18n/crm_lead_firstname.pot diff --git a/crm_lead_firstname/i18n/bg.po b/crm_lead_firstname/i18n/bg.po index 5c5996c13bd..4f13f9bb7ce 100644 --- a/crm_lead_firstname/i18n/bg.po +++ b/crm_lead_firstname/i18n/bg.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_lead_firstname -# +# # Translators: msgid "" msgstr "" @@ -10,11 +10,12 @@ 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_lead_firstname diff --git a/crm_lead_firstname/i18n/crm_lead_firstname.pot b/crm_lead_firstname/i18n/crm_lead_firstname.pot new file mode 100644 index 00000000000..8afb2fd84de --- /dev/null +++ b/crm_lead_firstname/i18n/crm_lead_firstname.pot @@ -0,0 +1,43 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_firstname +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 11.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_lead_firstname +#: model:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +msgid "Contact Name" +msgstr "" + +#. module: crm_lead_firstname +#: model:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +msgid "Firstname" +msgstr "" + +#. module: crm_lead_firstname +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead_contact_lastname +msgid "Last name" +msgstr "" + +#. module: crm_lead_firstname +#: model:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +msgid "Lastname" +msgstr "" + +#. module: crm_lead_firstname +#: model:ir.model,name:crm_lead_firstname.model_crm_lead +msgid "Lead/Opportunity" +msgstr "" + diff --git a/crm_lead_firstname/i18n/de.po b/crm_lead_firstname/i18n/de.po index ee19ec4af2e..2f7ef4e0163 100644 --- a/crm_lead_firstname/i18n/de.po +++ b/crm_lead_firstname/i18n/de.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_lead_firstname -# +# # Translators: # Rudolf Schnapka <rs@techno-flex.de>, 2017 msgid "" @@ -11,11 +11,12 @@ msgstr "" "POT-Creation-Date: 2017-03-28 02:25+0000\n" "PO-Revision-Date: 2017-04-11 14:58+0000\n" "Last-Translator: Rudolf Schnapka <rs@techno-flex.de>\n" -"Language-Team: German (http://www.transifex.com/oca/OCA-crm-8-0/language/de/)\n" +"Language-Team: German (http://www.transifex.com/oca/OCA-crm-8-0/language/" +"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_lead_firstname diff --git a/crm_lead_firstname/i18n/es.po b/crm_lead_firstname/i18n/es.po index ea10d2d19ce..86d1abca4f1 100644 --- a/crm_lead_firstname/i18n/es.po +++ b/crm_lead_firstname/i18n/es.po @@ -10,11 +10,11 @@ msgstr "" "PO-Revision-Date: 2016-02-15 18:27+0100\n" "Last-Translator: <>\n" "Language-Team: \n" +"Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: \n" -"Language: es\n" "X-Generator: Poedit 1.8.6\n" #. module: crm_lead_firstname diff --git a/crm_lead_firstname/i18n/fr.po b/crm_lead_firstname/i18n/fr.po index 52060494575..a9e843799a1 100644 --- a/crm_lead_firstname/i18n/fr.po +++ b/crm_lead_firstname/i18n/fr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_lead_firstname -# +# # Translators: msgid "" msgstr "" @@ -10,11 +10,12 @@ msgstr "" "POT-Creation-Date: 2016-03-10 18:52+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" +"Language-Team: French (http://www.transifex.com/oca/OCA-crm-8-0/language/" +"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_lead_firstname diff --git a/crm_lead_firstname/i18n/fr_CH.po b/crm_lead_firstname/i18n/fr_CH.po index ec7f64ad61a..8c66eef5742 100644 --- a/crm_lead_firstname/i18n/fr_CH.po +++ b/crm_lead_firstname/i18n/fr_CH.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_lead_firstname -# +# # Translators: msgid "" msgstr "" @@ -10,11 +10,12 @@ msgstr "" "POT-Creation-Date: 2016-11-26 06:47+0000\n" "PO-Revision-Date: 2016-03-10 18:53+0000\n" "Last-Translator: <>\n" -"Language-Team: French (Switzerland) (http://www.transifex.com/oca/OCA-crm-8-0/language/fr_CH/)\n" +"Language-Team: French (Switzerland) (http://www.transifex.com/oca/OCA-" +"crm-8-0/language/fr_CH/)\n" +"Language: fr_CH\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: fr_CH\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: crm_lead_firstname diff --git a/crm_lead_firstname/i18n/hr.po b/crm_lead_firstname/i18n/hr.po index f95db3be67d..dca3efc20b9 100644 --- a/crm_lead_firstname/i18n/hr.po +++ b/crm_lead_firstname/i18n/hr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_lead_firstname -# +# # Translators: # Ana-Maria Olujić <ana-maria.olujic@slobodni-programi.hr>, 2016 msgid "" @@ -11,12 +11,14 @@ msgstr "" "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ć <ana-maria.olujic@slobodni-programi.hr>\n" -"Language-Team: Croatian (http://www.transifex.com/oca/OCA-crm-8-0/language/hr/)\n" +"Language-Team: Croatian (http://www.transifex.com/oca/OCA-crm-8-0/language/" +"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_lead_firstname #: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads diff --git a/crm_lead_firstname/i18n/it.po b/crm_lead_firstname/i18n/it.po index 51be0a66aa0..1e9cc66956e 100644 --- a/crm_lead_firstname/i18n/it.po +++ b/crm_lead_firstname/i18n/it.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_lead_firstname -# +# # Translators: # Paolo Valier, 2016 # Paolo Valier, 2016 @@ -12,11 +12,12 @@ msgstr "" "POT-Creation-Date: 2016-04-16 11:11+0000\n" "PO-Revision-Date: 2016-04-30 20:14+0000\n" "Last-Translator: Paolo Valier\n" -"Language-Team: Italian (http://www.transifex.com/oca/OCA-crm-8-0/language/it/)\n" +"Language-Team: Italian (http://www.transifex.com/oca/OCA-crm-8-0/language/" +"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_lead_firstname diff --git a/crm_lead_firstname/i18n/pt_BR.po b/crm_lead_firstname/i18n/pt_BR.po index c1598fc311e..4469564e825 100644 --- a/crm_lead_firstname/i18n/pt_BR.po +++ b/crm_lead_firstname/i18n/pt_BR.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_lead_firstname -# +# # Translators: msgid "" msgstr "" @@ -10,11 +10,12 @@ msgstr "" "POT-Creation-Date: 2016-03-26 09:38+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" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-crm-8-0/" +"language/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_lead_firstname diff --git a/crm_lead_firstname/i18n/sk.po b/crm_lead_firstname/i18n/sk.po index 8f54964dad0..d9e8bc2ec20 100644 --- a/crm_lead_firstname/i18n/sk.po +++ b/crm_lead_firstname/i18n/sk.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_lead_firstname -# +# # Translators: msgid "" msgstr "" @@ -10,11 +10,12 @@ 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_lead_firstname diff --git a/crm_lead_firstname/i18n/sl.po b/crm_lead_firstname/i18n/sl.po index 4b393d3783f..7fe41870600 100644 --- a/crm_lead_firstname/i18n/sl.po +++ b/crm_lead_firstname/i18n/sl.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_lead_firstname -# +# # Translators: # Matjaž Mozetič <m.mozetic@matmoz.si>, 2016 msgid "" @@ -11,12 +11,14 @@ msgstr "" "POT-Creation-Date: 2016-03-10 18:52+0000\n" "PO-Revision-Date: 2016-03-11 10:40+0000\n" "Last-Translator: Matjaž Mozetič <m.mozetic@matmoz.si>\n" -"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-crm-8-0/language/sl/)\n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-crm-8-0/language/" +"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_lead_firstname #: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads diff --git a/crm_lead_firstname/i18n/tr.po b/crm_lead_firstname/i18n/tr.po index fbcd61dc04b..978a75575a0 100644 --- a/crm_lead_firstname/i18n/tr.po +++ b/crm_lead_firstname/i18n/tr.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_lead_firstname -# +# # Translators: msgid "" msgstr "" @@ -10,11 +10,12 @@ msgstr "" "POT-Creation-Date: 2016-12-24 01:15+0000\n" "PO-Revision-Date: 2016-03-10 18:53+0000\n" "Last-Translator: <>\n" -"Language-Team: Turkish (http://www.transifex.com/oca/OCA-crm-8-0/language/tr/)\n" +"Language-Team: Turkish (http://www.transifex.com/oca/OCA-crm-8-0/language/" +"tr/)\n" +"Language: tr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Language: tr\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: crm_lead_firstname diff --git a/crm_lead_firstname/i18n/zh_CN.po b/crm_lead_firstname/i18n/zh_CN.po index 8366ea6a78a..c5c5af0870d 100644 --- a/crm_lead_firstname/i18n/zh_CN.po +++ b/crm_lead_firstname/i18n/zh_CN.po @@ -1,7 +1,7 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: # * crm_lead_firstname -# +# # Translators: msgid "" msgstr "" @@ -10,11 +10,12 @@ 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_lead_firstname From f44f7e01b9b4af8865bc71d392f116621989e944 Mon Sep 17 00:00:00 2001 From: Raf Ven <raf.ven@dynapps.be> Date: Wed, 26 Dec 2018 21:31:41 +0100 Subject: [PATCH 05/30] [MIG] crm_lead_firstname: Migration to 12.0 --- crm_lead_firstname/README.rst | 78 ++- crm_lead_firstname/__init__.py | 2 - crm_lead_firstname/__manifest__.py | 5 +- crm_lead_firstname/models/__init__.py | 2 - crm_lead_firstname/models/crm_lead.py | 1 - crm_lead_firstname/readme/CONTRIBUTORS.rst | 3 + crm_lead_firstname/readme/DESCRIPTION.rst | 4 + crm_lead_firstname/readme/INSTALL.rst | 8 + crm_lead_firstname/readme/USAGE.rst | 10 + .../static/description/index.html | 450 ++++++++++++++++++ crm_lead_firstname/tests/__init__.py | 2 - crm_lead_firstname/tests/test_crm_lead.py | 19 +- 12 files changed, 540 insertions(+), 44 deletions(-) create mode 100644 crm_lead_firstname/readme/CONTRIBUTORS.rst create mode 100644 crm_lead_firstname/readme/DESCRIPTION.rst create mode 100644 crm_lead_firstname/readme/INSTALL.rst create mode 100644 crm_lead_firstname/readme/USAGE.rst create mode 100644 crm_lead_firstname/static/description/index.html diff --git a/crm_lead_firstname/README.rst b/crm_lead_firstname/README.rst index 144a5e9780d..6e1237198d5 100644 --- a/crm_lead_firstname/README.rst +++ b/crm_lead_firstname/README.rst @@ -1,16 +1,40 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - =============================== Firstname and Lastname in Leads =============================== +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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_lead_firstname + :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_lead_firstname + :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 extends the functionality of CRM leads to support split first and last name fields for contacts and allow you to port that information to and from partners. +**Table of contents** + +.. contents:: + :local: + Installation ============ @@ -28,51 +52,53 @@ Usage To use this module, you need to: -* Go to *Sales > Sales > Leads > Create*. +* Go to *CRM > Leads > Leads > Create*. * You have the new split fields *Firstname* and *Lastname*. Fill them. * Press *Convert to Opportunity*. * In *Related Customer* choose *Create a new customer*. * Press *Create Opportunity*. -* In the new opportunity, go to *Lead* tab. There are the new fields too. +* In the new opportunity, go to *Followup* tab. There are the new fields too. * If you go to the partner you just created, you will see that its first and last names match those in the lead. -.. 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/11.0 - Bug Tracker =========== -Bugs are tracked on `GitHub Issues -<https://github.com/OCA/crm/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 -<https://github.com/OCA/ -crm/issues/new?body=module:%20 -crm_lead_firstname%0Aversion:%20 -11.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. +Bugs are tracked on `GitHub Issues <https://github.com/OCA/crm/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 <https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= +Authors +~~~~~~~ + +* Tecnativa + Contributors ------------- +~~~~~~~~~~~~ + +* Rafael Blasco +* Jairo Llopis +* Raf Ven <raf.ven@dynapps.be> -* Rafael Blasco <rafabn@antiun.com> -* Jairo Llopis <yajo.sk8@gmail.com> +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 <https://github.com/OCA/crm/tree/12.0/crm_lead_firstname>`_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/crm_lead_firstname/__init__.py b/crm_lead_firstname/__init__.py index ac009a20339..83e553ac462 100644 --- a/crm_lead_firstname/__init__.py +++ b/crm_lead_firstname/__init__.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# © 2016 Antiun Ingeniería S.L. - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import models diff --git a/crm_lead_firstname/__manifest__.py b/crm_lead_firstname/__manifest__.py index 9c0100bbfe2..7fce5bab4aa 100644 --- a/crm_lead_firstname/__manifest__.py +++ b/crm_lead_firstname/__manifest__.py @@ -1,13 +1,12 @@ -# -*- coding: utf-8 -*- # © 2016 Antiun Ingeniería S.L. - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Firstname and Lastname in Leads", "summary": "Specify split names for contacts in leads", - "version": "11.0.1.0.0", + "version": "12.0.1.0.0", "category": "Customer Relationship Management", "website": "http://www.github.com/OCA/crm", - "author": "Antiun Ingeniería S.L., Odoo Community Association (OCA)", + "author": "Tecnativa, Odoo Community Association (OCA)", "license": "AGPL-3", "application": False, "installable": True, diff --git a/crm_lead_firstname/models/__init__.py b/crm_lead_firstname/models/__init__.py index 4979cdf4658..b8b7e10d5a6 100644 --- a/crm_lead_firstname/models/__init__.py +++ b/crm_lead_firstname/models/__init__.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# © 2016 Antiun Ingeniería S.L. - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import crm_lead diff --git a/crm_lead_firstname/models/crm_lead.py b/crm_lead_firstname/models/crm_lead.py index 0edfac3291a..a26d0f7f486 100644 --- a/crm_lead_firstname/models/crm_lead.py +++ b/crm_lead_firstname/models/crm_lead.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # © 2016 Antiun Ingeniería S.L. - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). diff --git a/crm_lead_firstname/readme/CONTRIBUTORS.rst b/crm_lead_firstname/readme/CONTRIBUTORS.rst new file mode 100644 index 00000000000..0ece1fe0741 --- /dev/null +++ b/crm_lead_firstname/readme/CONTRIBUTORS.rst @@ -0,0 +1,3 @@ +* Rafael Blasco +* Jairo Llopis +* Raf Ven <raf.ven@dynapps.be> diff --git a/crm_lead_firstname/readme/DESCRIPTION.rst b/crm_lead_firstname/readme/DESCRIPTION.rst new file mode 100644 index 00000000000..6272bb4c61b --- /dev/null +++ b/crm_lead_firstname/readme/DESCRIPTION.rst @@ -0,0 +1,4 @@ +This module extends the functionality of CRM leads to support split first and +last name fields for contacts and allow you to port that information to and +from partners. + diff --git a/crm_lead_firstname/readme/INSTALL.rst b/crm_lead_firstname/readme/INSTALL.rst new file mode 100644 index 00000000000..844fb09c248 --- /dev/null +++ b/crm_lead_firstname/readme/INSTALL.rst @@ -0,0 +1,8 @@ +Since leads are expected to create partners only when needed and after +information is correctly set up, in leads there is no inverse logic to +transform the old single name in the new split names automatically. The old +single name will simply be the firstname now. + +To install this module, you need to: + +* Install `OCA/partner-contact <https://github.com/OCA/partner-contact>`_ repo. diff --git a/crm_lead_firstname/readme/USAGE.rst b/crm_lead_firstname/readme/USAGE.rst new file mode 100644 index 00000000000..6930c1e4aed --- /dev/null +++ b/crm_lead_firstname/readme/USAGE.rst @@ -0,0 +1,10 @@ +To use this module, you need to: + +* Go to *CRM > Leads > Leads > Create*. +* You have the new split fields *Firstname* and *Lastname*. Fill them. +* Press *Convert to Opportunity*. +* In *Related Customer* choose *Create a new customer*. +* Press *Create Opportunity*. +* In the new opportunity, go to *Followup* tab. There are the new fields too. +* If you go to the partner you just created, you will see that its first and + last names match those in the lead. diff --git a/crm_lead_firstname/static/description/index.html b/crm_lead_firstname/static/description/index.html new file mode 100644 index 00000000000..21b7a8d34dc --- /dev/null +++ b/crm_lead_firstname/static/description/index.html @@ -0,0 +1,450 @@ +<?xml version="1.0" encoding="utf-8" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> +<meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/" /> +<title>Firstname and Lastname in Leads</title> +<style type="text/css"> + +/* +:Author: David Goodger (goodger@python.org) +:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $ +:Copyright: This stylesheet has been placed in the public domain. + +Default cascading style sheet for the HTML output of Docutils. + +See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to +customize this style sheet. +*/ + +/* used to remove borders from tables and images */ +.borderless, table.borderless td, table.borderless th { + border: 0 } + +table.borderless td, table.borderless th { + /* Override padding for "table.docutils td" with "! important". + The right padding separates the table cells. */ + padding: 0 0.5em 0 0 ! important } + +.first { + /* Override more specific margin styles with "! important". */ + margin-top: 0 ! important } + +.last, .with-subtitle { + margin-bottom: 0 ! important } + +.hidden { + display: none } + +.subscript { + vertical-align: sub; + font-size: smaller } + +.superscript { + vertical-align: super; + font-size: smaller } + +a.toc-backref { + text-decoration: none ; + color: black } + +blockquote.epigraph { + margin: 2em 5em ; } + +dl.docutils dd { + margin-bottom: 0.5em } + +object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] { + overflow: hidden; +} + +/* Uncomment (and remove this text!) to get bold-faced definition list terms +dl.docutils dt { + font-weight: bold } +*/ + +div.abstract { + margin: 2em 5em } + +div.abstract p.topic-title { + font-weight: bold ; + text-align: center } + +div.admonition, div.attention, div.caution, div.danger, div.error, +div.hint, div.important, div.note, div.tip, div.warning { + margin: 2em ; + border: medium outset ; + padding: 1em } + +div.admonition p.admonition-title, div.hint p.admonition-title, +div.important p.admonition-title, div.note p.admonition-title, +div.tip p.admonition-title { + font-weight: bold ; + font-family: sans-serif } + +div.attention p.admonition-title, div.caution p.admonition-title, +div.danger p.admonition-title, div.error p.admonition-title, +div.warning p.admonition-title, .code .error { + color: red ; + font-weight: bold ; + font-family: sans-serif } + +/* Uncomment (and remove this text!) to get reduced vertical space in + compound paragraphs. +div.compound .compound-first, div.compound .compound-middle { + margin-bottom: 0.5em } + +div.compound .compound-last, div.compound .compound-middle { + margin-top: 0.5em } +*/ + +div.dedication { + margin: 2em 5em ; + text-align: center ; + font-style: italic } + +div.dedication p.topic-title { + font-weight: bold ; + font-style: normal } + +div.figure { + margin-left: 2em ; + margin-right: 2em } + +div.footer, div.header { + clear: both; + font-size: smaller } + +div.line-block { + display: block ; + margin-top: 1em ; + margin-bottom: 1em } + +div.line-block div.line-block { + margin-top: 0 ; + margin-bottom: 0 ; + margin-left: 1.5em } + +div.sidebar { + margin: 0 0 0.5em 1em ; + border: medium outset ; + padding: 1em ; + background-color: #ffffee ; + width: 40% ; + float: right ; + clear: right } + +div.sidebar p.rubric { + font-family: sans-serif ; + font-size: medium } + +div.system-messages { + margin: 5em } + +div.system-messages h1 { + color: red } + +div.system-message { + border: medium outset ; + padding: 1em } + +div.system-message p.system-message-title { + color: red ; + font-weight: bold } + +div.topic { + margin: 2em } + +h1.section-subtitle, h2.section-subtitle, h3.section-subtitle, +h4.section-subtitle, h5.section-subtitle, h6.section-subtitle { + margin-top: 0.4em } + +h1.title { + text-align: center } + +h2.subtitle { + text-align: center } + +hr.docutils { + width: 75% } + +img.align-left, .figure.align-left, object.align-left, table.align-left { + clear: left ; + float: left ; + margin-right: 1em } + +img.align-right, .figure.align-right, object.align-right, table.align-right { + clear: right ; + float: right ; + margin-left: 1em } + +img.align-center, .figure.align-center, object.align-center { + display: block; + margin-left: auto; + margin-right: auto; +} + +table.align-center { + margin-left: auto; + margin-right: auto; +} + +.align-left { + text-align: left } + +.align-center { + clear: both ; + text-align: center } + +.align-right { + text-align: right } + +/* reset inner alignment in figures */ +div.align-right { + text-align: inherit } + +/* div.align-center * { */ +/* text-align: left } */ + +.align-top { + vertical-align: top } + +.align-middle { + vertical-align: middle } + +.align-bottom { + vertical-align: bottom } + +ol.simple, ul.simple { + margin-bottom: 1em } + +ol.arabic { + list-style: decimal } + +ol.loweralpha { + list-style: lower-alpha } + +ol.upperalpha { + list-style: upper-alpha } + +ol.lowerroman { + list-style: lower-roman } + +ol.upperroman { + list-style: upper-roman } + +p.attribution { + text-align: right ; + margin-left: 50% } + +p.caption { + font-style: italic } + +p.credits { + font-style: italic ; + font-size: smaller } + +p.label { + white-space: nowrap } + +p.rubric { + font-weight: bold ; + font-size: larger ; + color: maroon ; + text-align: center } + +p.sidebar-title { + font-family: sans-serif ; + font-weight: bold ; + font-size: larger } + +p.sidebar-subtitle { + font-family: sans-serif ; + font-weight: bold } + +p.topic-title { + font-weight: bold } + +pre.address { + margin-bottom: 0 ; + margin-top: 0 ; + font: inherit } + +pre.literal-block, pre.doctest-block, pre.math, pre.code { + margin-left: 2em ; + margin-right: 2em } + +pre.code .ln { color: grey; } /* line numbers */ +pre.code, code { background-color: #eeeeee } +pre.code .comment, code .comment { color: #5C6576 } +pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } +pre.code .literal.string, code .literal.string { color: #0C5404 } +pre.code .name.builtin, code .name.builtin { color: #352B84 } +pre.code .deleted, code .deleted { background-color: #DEB0A1} +pre.code .inserted, code .inserted { background-color: #A3D289} + +span.classifier { + font-family: sans-serif ; + font-style: oblique } + +span.classifier-delimiter { + font-family: sans-serif ; + font-weight: bold } + +span.interpreted { + font-family: sans-serif } + +span.option { + white-space: nowrap } + +span.pre { + white-space: pre } + +span.problematic { + color: red } + +span.section-subtitle { + /* font-size relative to parent (h1..h6 element) */ + font-size: 80% } + +table.citation { + border-left: solid 1px gray; + margin-left: 1px } + +table.docinfo { + margin: 2em 4em } + +table.docutils { + margin-top: 0.5em ; + margin-bottom: 0.5em } + +table.footnote { + border-left: solid 1px black; + margin-left: 1px } + +table.docutils td, table.docutils th, +table.docinfo td, table.docinfo th { + padding-left: 0.5em ; + padding-right: 0.5em ; + vertical-align: top } + +table.docutils th.field-name, table.docinfo th.docinfo-name { + font-weight: bold ; + text-align: left ; + white-space: nowrap ; + padding-left: 0 } + +/* "booktabs" style (no vertical lines) */ +table.docutils.booktabs { + border: 0px; + border-top: 2px solid; + border-bottom: 2px solid; + border-collapse: collapse; +} +table.docutils.booktabs * { + border: 0px; +} +table.docutils.booktabs th { + border-bottom: thin solid; + text-align: left; +} + +h1 tt.docutils, h2 tt.docutils, h3 tt.docutils, +h4 tt.docutils, h5 tt.docutils, h6 tt.docutils { + font-size: 100% } + +ul.auto-toc { + list-style-type: none } + +</style> +</head> +<body> +<div class="document" id="firstname-and-lastname-in-leads"> +<h1 class="title">Firstname and Lastname in Leads</h1> + +<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! This file is generated by oca-gen-addon-readme !! +!! changes will be overwritten. !! +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> +<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/crm/tree/12.0/crm_lead_firstname"><img alt="OCA/crm" src="https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/crm-12-0/crm-12-0-crm_lead_firstname"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/111/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> +<p>This module extends the functionality of CRM leads to support split first and +last name fields for contacts and allow you to port that information to and +from partners.</p> +<p><strong>Table of contents</strong></p> +<div class="contents local topic" id="contents"> +<ul class="simple"> +<li><a class="reference internal" href="#installation" id="id1">Installation</a></li> +<li><a class="reference internal" href="#usage" id="id2">Usage</a></li> +<li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li> +<li><a class="reference internal" href="#credits" id="id4">Credits</a><ul> +<li><a class="reference internal" href="#authors" id="id5">Authors</a></li> +<li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li> +<li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li> +</ul> +</li> +</ul> +</div> +<div class="section" id="installation"> +<h1><a class="toc-backref" href="#id1">Installation</a></h1> +<p>Since leads are expected to create partners only when needed and after +information is correctly set up, in leads there is no inverse logic to +transform the old single name in the new split names automatically. The old +single name will simply be the firstname now.</p> +<p>To install this module, you need to:</p> +<ul class="simple"> +<li>Install <a class="reference external" href="https://github.com/OCA/partner-contact">OCA/partner-contact</a> repo.</li> +</ul> +</div> +<div class="section" id="usage"> +<h1><a class="toc-backref" href="#id2">Usage</a></h1> +<p>To use this module, you need to:</p> +<ul class="simple"> +<li>Go to <em>CRM > Leads > Leads > Create</em>.</li> +<li>You have the new split fields <em>Firstname</em> and <em>Lastname</em>. Fill them.</li> +<li>Press <em>Convert to Opportunity</em>.</li> +<li>In <em>Related Customer</em> choose <em>Create a new customer</em>.</li> +<li>Press <em>Create Opportunity</em>.</li> +<li>In the new opportunity, go to <em>Followup</em> tab. There are the new fields too.</li> +<li>If you go to the partner you just created, you will see that its first and +last names match those in the lead.</li> +</ul> +</div> +<div class="section" id="bug-tracker"> +<h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1> +<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/crm/issues">GitHub Issues</a>. +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 +<a class="reference external" href="https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> +<p>Do not contact contributors directly about support or help with technical issues.</p> +</div> +<div class="section" id="credits"> +<h1><a class="toc-backref" href="#id4">Credits</a></h1> +<div class="section" id="authors"> +<h2><a class="toc-backref" href="#id5">Authors</a></h2> +<ul class="simple"> +<li>Tecnativa</li> +</ul> +</div> +<div class="section" id="contributors"> +<h2><a class="toc-backref" href="#id6">Contributors</a></h2> +<ul class="simple"> +<li>Rafael Blasco</li> +<li>Jairo Llopis</li> +<li>Raf Ven <<a class="reference external" href="mailto:raf.ven@dynapps.be">raf.ven@dynapps.be</a>></li> +</ul> +</div> +<div class="section" id="maintainers"> +<h2><a class="toc-backref" href="#id7">Maintainers</a></h2> +<p>This module is maintained by the OCA.</p> +<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> +<p>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.</p> +<p>This module is part of the <a class="reference external" href="https://github.com/OCA/crm/tree/12.0/crm_lead_firstname">OCA/crm</a> project on GitHub.</p> +<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p> +</div> +</div> +</div> +</body> +</html> diff --git a/crm_lead_firstname/tests/__init__.py b/crm_lead_firstname/tests/__init__.py index 253e779a129..1d245ec7d92 100644 --- a/crm_lead_firstname/tests/__init__.py +++ b/crm_lead_firstname/tests/__init__.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- -# © 2016 Antiun Ingeniería S.L. - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import test_crm_lead diff --git a/crm_lead_firstname/tests/test_crm_lead.py b/crm_lead_firstname/tests/test_crm_lead.py index c49201112cd..c3f7cd150ba 100644 --- a/crm_lead_firstname/tests/test_crm_lead.py +++ b/crm_lead_firstname/tests/test_crm_lead.py @@ -1,20 +1,23 @@ -# -*- coding: utf-8 -*- # © 2016 Antiun Ingeniería S.L. - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo.tests.common import TransactionCase +from odoo.tests.common import SavepointCase -class FirstnameCase(TransactionCase): - def setUp(self): - super(FirstnameCase, self).setUp() - self.lead = self.env["crm.lead"].create({ +class FirstNameCase(SavepointCase): + + @classmethod + def setUpClass(cls): + super(FirstNameCase, cls).setUpClass() + cls.lead_model = cls.env["crm.lead"] + cls.partner_model = cls.env["res.partner"] + cls.lead = cls.lead_model.create({ "name": "Léad", "partner_name": "Pärtner", "contact_name": "Firçt name", "contact_lastname": "Laçt name", }) - self.partner = self.env["res.partner"].create({ + cls.partner = cls.partner_model.create({ "firstname": "Firçt name", "lastname": "Laçt name", }) @@ -22,7 +25,7 @@ def setUp(self): def test_create_contact(self): """Contact correctly created.""" partner_id = self.lead.handle_partner_assignation()[self.lead.id] - partner = self.env["res.partner"].browse(partner_id) + partner = self.partner_model.browse(partner_id) self.assertEqual(self.lead.contact_name, partner.firstname) self.assertEqual(self.lead.contact_lastname, partner.lastname) From dbcad912cee580df94e326568347b97f50bd13b9 Mon Sep 17 00:00:00 2001 From: oca-travis <oca+oca-travis@odoo-community.org> Date: Wed, 24 Apr 2019 22:33:45 +0000 Subject: [PATCH 06/30] [UPD] Update crm_lead_firstname.pot --- crm_lead_firstname/i18n/bg.po | 19 ++++++++++------- .../i18n/crm_lead_firstname.pot | 21 ++++++++++++------- crm_lead_firstname/i18n/de.po | 21 ++++++++++++------- crm_lead_firstname/i18n/es.po | 21 ++++++++++++------- crm_lead_firstname/i18n/fr.po | 19 ++++++++++------- crm_lead_firstname/i18n/fr_CH.po | 21 ++++++++++++------- crm_lead_firstname/i18n/hr.po | 21 ++++++++++++------- crm_lead_firstname/i18n/it.po | 21 ++++++++++++------- crm_lead_firstname/i18n/pt_BR.po | 19 ++++++++++------- crm_lead_firstname/i18n/sk.po | 19 ++++++++++------- crm_lead_firstname/i18n/sl.po | 21 ++++++++++++------- crm_lead_firstname/i18n/tr.po | 21 ++++++++++++------- crm_lead_firstname/i18n/zh_CN.po | 19 ++++++++++------- 13 files changed, 171 insertions(+), 92 deletions(-) diff --git a/crm_lead_firstname/i18n/bg.po b/crm_lead_firstname/i18n/bg.po index 4f13f9bb7ce..81f7a09c13e 100644 --- a/crm_lead_firstname/i18n/bg.po +++ b/crm_lead_firstname/i18n/bg.po @@ -19,25 +19,30 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Contact Name" msgstr "" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name +msgid "First name" +msgstr "" + +#. module: crm_lead_firstname +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Firstname" msgstr "" #. module: crm_lead_firstname -#: field:crm.lead,contact_lastname:0 +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname msgid "Last name" msgstr "" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Lastname" msgstr "" diff --git a/crm_lead_firstname/i18n/crm_lead_firstname.pot b/crm_lead_firstname/i18n/crm_lead_firstname.pot index 8afb2fd84de..9b5ca397cb1 100644 --- a/crm_lead_firstname/i18n/crm_lead_firstname.pot +++ b/crm_lead_firstname/i18n/crm_lead_firstname.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 11.0\n" +"Project-Id-Version: Odoo Server 12.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: <>\n" "Language-Team: \n" @@ -14,25 +14,30 @@ msgstr "" "Plural-Forms: \n" #. module: crm_lead_firstname -#: model:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Contact Name" msgstr "" #. module: crm_lead_firstname -#: model:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name +msgid "First name" +msgstr "" + +#. module: crm_lead_firstname +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Firstname" msgstr "" #. module: crm_lead_firstname -#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead_contact_lastname +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname msgid "Last name" msgstr "" #. module: crm_lead_firstname -#: model:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Lastname" msgstr "" diff --git a/crm_lead_firstname/i18n/de.po b/crm_lead_firstname/i18n/de.po index 2f7ef4e0163..92686ab69f4 100644 --- a/crm_lead_firstname/i18n/de.po +++ b/crm_lead_firstname/i18n/de.po @@ -20,25 +20,32 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Contact Name" msgstr "Ansprechpartner" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name +#, fuzzy +#| msgid "Firstname" +msgid "First name" +msgstr "Vorname" + +#. module: crm_lead_firstname +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Firstname" msgstr "Vorname" #. module: crm_lead_firstname -#: field:crm.lead,contact_lastname:0 +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname msgid "Last name" msgstr "Nachname" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Lastname" msgstr "Nachname" diff --git a/crm_lead_firstname/i18n/es.po b/crm_lead_firstname/i18n/es.po index 86d1abca4f1..f7095840dd4 100644 --- a/crm_lead_firstname/i18n/es.po +++ b/crm_lead_firstname/i18n/es.po @@ -18,25 +18,32 @@ msgstr "" "X-Generator: Poedit 1.8.6\n" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Contact Name" msgstr "Nombre del contacto" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name +#, fuzzy +#| msgid "Firstname" +msgid "First name" +msgstr "Nombre de pila" + +#. module: crm_lead_firstname +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Firstname" msgstr "Nombre de pila" #. module: crm_lead_firstname -#: field:crm.lead,contact_lastname:0 +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname msgid "Last name" msgstr "Apellido" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Lastname" msgstr "Apellido" diff --git a/crm_lead_firstname/i18n/fr.po b/crm_lead_firstname/i18n/fr.po index a9e843799a1..0a7d3a5b270 100644 --- a/crm_lead_firstname/i18n/fr.po +++ b/crm_lead_firstname/i18n/fr.po @@ -19,25 +19,30 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Contact Name" msgstr "" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name +msgid "First name" +msgstr "" + +#. module: crm_lead_firstname +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Firstname" msgstr "" #. module: crm_lead_firstname -#: field:crm.lead,contact_lastname:0 +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname msgid "Last name" msgstr "" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Lastname" msgstr "" diff --git a/crm_lead_firstname/i18n/fr_CH.po b/crm_lead_firstname/i18n/fr_CH.po index 8c66eef5742..945435e3d67 100644 --- a/crm_lead_firstname/i18n/fr_CH.po +++ b/crm_lead_firstname/i18n/fr_CH.po @@ -19,25 +19,32 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Contact Name" msgstr "" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name +#, fuzzy +#| msgid "Last name" +msgid "First name" +msgstr "Nom de famille" + +#. module: crm_lead_firstname +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Firstname" msgstr "" #. module: crm_lead_firstname -#: field:crm.lead,contact_lastname:0 +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname msgid "Last name" msgstr "Nom de famille" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Lastname" msgstr "" diff --git a/crm_lead_firstname/i18n/hr.po b/crm_lead_firstname/i18n/hr.po index dca3efc20b9..62c1ff34e25 100644 --- a/crm_lead_firstname/i18n/hr.po +++ b/crm_lead_firstname/i18n/hr.po @@ -21,25 +21,32 @@ msgstr "" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Contact Name" msgstr "Ime kontakta" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name +#, fuzzy +#| msgid "Firstname" +msgid "First name" +msgstr "Ime" + +#. module: crm_lead_firstname +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Firstname" msgstr "Ime" #. module: crm_lead_firstname -#: field:crm.lead,contact_lastname:0 +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname msgid "Last name" msgstr "Prezime" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Lastname" msgstr "Prezime" diff --git a/crm_lead_firstname/i18n/it.po b/crm_lead_firstname/i18n/it.po index 1e9cc66956e..9f23ab4280e 100644 --- a/crm_lead_firstname/i18n/it.po +++ b/crm_lead_firstname/i18n/it.po @@ -21,25 +21,32 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Contact Name" msgstr "Nome del Contatto" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name +#, fuzzy +#| msgid "Firstname" +msgid "First name" +msgstr "Nome" + +#. module: crm_lead_firstname +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Firstname" msgstr "Nome" #. module: crm_lead_firstname -#: field:crm.lead,contact_lastname:0 +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname msgid "Last name" msgstr "Cognome" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Lastname" msgstr "Cognome" diff --git a/crm_lead_firstname/i18n/pt_BR.po b/crm_lead_firstname/i18n/pt_BR.po index 4469564e825..ce2b5b75dbe 100644 --- a/crm_lead_firstname/i18n/pt_BR.po +++ b/crm_lead_firstname/i18n/pt_BR.po @@ -19,25 +19,30 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Contact Name" msgstr "" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name +msgid "First name" +msgstr "" + +#. module: crm_lead_firstname +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Firstname" msgstr "" #. module: crm_lead_firstname -#: field:crm.lead,contact_lastname:0 +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname msgid "Last name" msgstr "" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Lastname" msgstr "" diff --git a/crm_lead_firstname/i18n/sk.po b/crm_lead_firstname/i18n/sk.po index d9e8bc2ec20..174db3c8796 100644 --- a/crm_lead_firstname/i18n/sk.po +++ b/crm_lead_firstname/i18n/sk.po @@ -19,25 +19,30 @@ msgstr "" "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Contact Name" msgstr "" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name +msgid "First name" +msgstr "" + +#. module: crm_lead_firstname +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Firstname" msgstr "" #. module: crm_lead_firstname -#: field:crm.lead,contact_lastname:0 +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname msgid "Last name" msgstr "" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Lastname" msgstr "" diff --git a/crm_lead_firstname/i18n/sl.po b/crm_lead_firstname/i18n/sl.po index 7fe41870600..4fe9dda5808 100644 --- a/crm_lead_firstname/i18n/sl.po +++ b/crm_lead_firstname/i18n/sl.po @@ -21,25 +21,32 @@ msgstr "" "%100==4 ? 2 : 3);\n" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Contact Name" msgstr "Naziv stika" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name +#, fuzzy +#| msgid "Firstname" +msgid "First name" +msgstr "Ime" + +#. module: crm_lead_firstname +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Firstname" msgstr "Ime" #. module: crm_lead_firstname -#: field:crm.lead,contact_lastname:0 +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname msgid "Last name" msgstr "Priimek" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Lastname" msgstr "Priimek" diff --git a/crm_lead_firstname/i18n/tr.po b/crm_lead_firstname/i18n/tr.po index 978a75575a0..f8edf14bec8 100644 --- a/crm_lead_firstname/i18n/tr.po +++ b/crm_lead_firstname/i18n/tr.po @@ -19,25 +19,32 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Contact Name" msgstr "" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name +#, fuzzy +#| msgid "Last name" +msgid "First name" +msgstr "Soyadı" + +#. module: crm_lead_firstname +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Firstname" msgstr "" #. module: crm_lead_firstname -#: field:crm.lead,contact_lastname:0 +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname msgid "Last name" msgstr "Soyadı" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Lastname" msgstr "" diff --git a/crm_lead_firstname/i18n/zh_CN.po b/crm_lead_firstname/i18n/zh_CN.po index c5c5af0870d..5dd698354bd 100644 --- a/crm_lead_firstname/i18n/zh_CN.po +++ b/crm_lead_firstname/i18n/zh_CN.po @@ -19,25 +19,30 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Contact Name" msgstr "" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name +msgid "First name" +msgstr "" + +#. module: crm_lead_firstname +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Firstname" msgstr "" #. module: crm_lead_firstname -#: field:crm.lead,contact_lastname:0 +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname msgid "Last name" msgstr "" #. module: crm_lead_firstname -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_leads -#: view:crm.lead:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Lastname" msgstr "" From 9dc7e0a2a8ba7e01089129e967627a6a945fa0d4 Mon Sep 17 00:00:00 2001 From: Maria Sparenberg <maria.sparenberg@gmx.net> Date: Fri, 28 Jun 2019 10:47:43 +0000 Subject: [PATCH 07/30] Translated using Weblate (German) Currently translated at 100.0% (6 of 6 strings) Translation: crm-12.0/crm-12.0-crm_lead_firstname Translate-URL: https://translation.odoo-community.org/projects/crm-12-0/crm-12-0-crm_lead_firstname/de/ --- crm_lead_firstname/i18n/de.po | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/crm_lead_firstname/i18n/de.po b/crm_lead_firstname/i18n/de.po index 92686ab69f4..5b0b80a18e0 100644 --- a/crm_lead_firstname/i18n/de.po +++ b/crm_lead_firstname/i18n/de.po @@ -9,15 +9,16 @@ msgstr "" "Project-Id-Version: crm (8.0)\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2017-03-28 02:25+0000\n" -"PO-Revision-Date: 2017-04-11 14:58+0000\n" -"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>\n" -"Language-Team: German (http://www.transifex.com/oca/OCA-crm-8-0/language/" -"de/)\n" +"PO-Revision-Date: 2019-06-28 13:42+0000\n" +"Last-Translator: Maria Sparenberg <maria.sparenberg@gmx.net>\n" +"Language-Team: German (http://www.transifex.com/oca/OCA-crm-8-0/language/de/)" +"\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.6.1\n" #. module: crm_lead_firstname #: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads @@ -27,8 +28,6 @@ msgstr "Ansprechpartner" #. module: crm_lead_firstname #: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name -#, fuzzy -#| msgid "Firstname" msgid "First name" msgstr "Vorname" From 7ec5a1d1ba4503be40402adc9d04be18c5dece7c Mon Sep 17 00:00:00 2001 From: OCA-git-bot <oca-git-bot@odoo-community.org> Date: Mon, 29 Jul 2019 02:49:12 +0000 Subject: [PATCH 08/30] [UPD] README.rst --- crm_lead_firstname/static/description/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm_lead_firstname/static/description/index.html b/crm_lead_firstname/static/description/index.html index 21b7a8d34dc..47d76d4392b 100644 --- a/crm_lead_firstname/static/description/index.html +++ b/crm_lead_firstname/static/description/index.html @@ -3,7 +3,7 @@ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/" /> +<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" /> <title>Firstname and Lastname in Leads</title> <style type="text/css"> From 9527b28a590fdf009fee29b331f4efa805d6071f Mon Sep 17 00:00:00 2001 From: Rodrigo Macedo <rmsolucoeseminformatic4@gmail.com> Date: Tue, 3 Sep 2019 01:00:01 +0000 Subject: [PATCH 09/30] Translated using Weblate (Portuguese (Brazil)) Currently translated at 100.0% (6 of 6 strings) Translation: crm-12.0/crm-12.0-crm_lead_firstname Translate-URL: https://translation.odoo-community.org/projects/crm-12-0/crm-12-0-crm_lead_firstname/pt_BR/ --- crm_lead_firstname/i18n/pt_BR.po | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/crm_lead_firstname/i18n/pt_BR.po b/crm_lead_firstname/i18n/pt_BR.po index ce2b5b75dbe..e22dde8b906 100644 --- a/crm_lead_firstname/i18n/pt_BR.po +++ b/crm_lead_firstname/i18n/pt_BR.po @@ -8,43 +8,44 @@ msgstr "" "Project-Id-Version: crm (8.0)\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-03-26 09:38+0000\n" -"PO-Revision-Date: 2016-03-10 18:53+0000\n" -"Last-Translator: <>\n" +"PO-Revision-Date: 2019-09-03 03:23+0000\n" +"Last-Translator: Rodrigo Macedo <rmsolucoeseminformatic4@gmail.com>\n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-crm-8-0/" "language/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_lead_firstname #: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads #: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Contact Name" -msgstr "" +msgstr "Nome de Contato" #. module: crm_lead_firstname #: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name msgid "First name" -msgstr "" +msgstr "Primeiro Nome" #. module: crm_lead_firstname #: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads #: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Firstname" -msgstr "" +msgstr "Primeironome" #. module: crm_lead_firstname #: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname msgid "Last name" -msgstr "" +msgstr "Último Nome" #. module: crm_lead_firstname #: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads #: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Lastname" -msgstr "" +msgstr "Sobrenome" #. module: crm_lead_firstname #: model:ir.model,name:crm_lead_firstname.model_crm_lead From 96c9d4ab0e3c257e2e6bf2cad5eb48cae87dd312 Mon Sep 17 00:00:00 2001 From: Bole <bole@dajmi5.com> Date: Wed, 13 Nov 2019 13:19:34 +0000 Subject: [PATCH 10/30] Translated using Weblate (Croatian) Currently translated at 100.0% (6 of 6 strings) Translation: crm-12.0/crm-12.0-crm_lead_firstname Translate-URL: https://translation.odoo-community.org/projects/crm-12-0/crm-12-0-crm_lead_firstname/hr/ --- crm_lead_firstname/i18n/hr.po | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/crm_lead_firstname/i18n/hr.po b/crm_lead_firstname/i18n/hr.po index 62c1ff34e25..250b0db2225 100644 --- a/crm_lead_firstname/i18n/hr.po +++ b/crm_lead_firstname/i18n/hr.po @@ -9,16 +9,17 @@ 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ć <ana-maria.olujic@slobodni-programi.hr>\n" +"PO-Revision-Date: 2019-11-13 15:34+0000\n" +"Last-Translator: Bole <bole@dajmi5.com>\n" "Language-Team: Croatian (http://www.transifex.com/oca/OCA-crm-8-0/language/" "hr/)\n" "Language: hr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" -"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"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" +"X-Generator: Weblate 3.8\n" #. module: crm_lead_firstname #: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads @@ -28,8 +29,6 @@ msgstr "Ime kontakta" #. module: crm_lead_firstname #: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name -#, fuzzy -#| msgid "Firstname" msgid "First name" msgstr "Ime" From 3f95ae193c153cb5a8a2dcf0728aaa996a54d190 Mon Sep 17 00:00:00 2001 From: Sergio Zanchetta <primes2h@gmail.com> Date: Wed, 8 Jan 2020 17:06:05 +0000 Subject: [PATCH 11/30] Translated using Weblate (Italian) Currently translated at 100.0% (6 of 6 strings) Translation: crm-12.0/crm-12.0-crm_lead_firstname Translate-URL: https://translation.odoo-community.org/projects/crm-12-0/crm-12-0-crm_lead_firstname/it/ --- crm_lead_firstname/i18n/it.po | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/crm_lead_firstname/i18n/it.po b/crm_lead_firstname/i18n/it.po index 9f23ab4280e..6aef46c6cd0 100644 --- a/crm_lead_firstname/i18n/it.po +++ b/crm_lead_firstname/i18n/it.po @@ -10,26 +10,25 @@ msgstr "" "Project-Id-Version: crm (8.0)\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-04-16 11:11+0000\n" -"PO-Revision-Date: 2016-04-30 20:14+0000\n" -"Last-Translator: Paolo Valier\n" -"Language-Team: Italian (http://www.transifex.com/oca/OCA-crm-8-0/language/" -"it/)\n" +"PO-Revision-Date: 2020-01-08 19:13+0000\n" +"Last-Translator: Sergio Zanchetta <primes2h@gmail.com>\n" +"Language-Team: Italian (http://www.transifex.com/oca/OCA-crm-8-0/language/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_lead_firstname #: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads #: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor msgid "Contact Name" -msgstr "Nome del Contatto" +msgstr "Nome contatto" #. module: crm_lead_firstname #: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name -#, fuzzy -#| msgid "Firstname" msgid "First name" msgstr "Nome" @@ -53,4 +52,4 @@ msgstr "Cognome" #. module: crm_lead_firstname #: model:ir.model,name:crm_lead_firstname.model_crm_lead msgid "Lead/Opportunity" -msgstr "Lead/Opportunità" +msgstr "Contatto/Opportunità" From 77e6635cd618d300f31dd9f5b064b1200b99faeb Mon Sep 17 00:00:00 2001 From: Nikos Tsirintanis <ntsirintanis@therp.nl> Date: Wed, 5 Feb 2020 15:03:35 +0100 Subject: [PATCH 12/30] [MIG] crm_lead_firstname: Migration to 13.0 --- crm_lead_firstname/__manifest__.py | 2 +- crm_lead_firstname/models/crm_lead.py | 3 +-- crm_lead_firstname/views/crm_lead_view.xml | 20 ++++++-------------- 3 files changed, 8 insertions(+), 17 deletions(-) diff --git a/crm_lead_firstname/__manifest__.py b/crm_lead_firstname/__manifest__.py index 7fce5bab4aa..7ae9e09c4e6 100644 --- a/crm_lead_firstname/__manifest__.py +++ b/crm_lead_firstname/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Firstname and Lastname in Leads", "summary": "Specify split names for contacts in leads", - "version": "12.0.1.0.0", + "version": "13.0.1.0.0", "category": "Customer Relationship Management", "website": "http://www.github.com/OCA/crm", "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/crm_lead_firstname/models/crm_lead.py b/crm_lead_firstname/models/crm_lead.py index a26d0f7f486..d9f10a5b8fe 100644 --- a/crm_lead_firstname/models/crm_lead.py +++ b/crm_lead_firstname/models/crm_lead.py @@ -1,7 +1,7 @@ # © 2016 Antiun Ingeniería S.L. - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo import api, fields, models +from odoo import fields, models class CrmLead(models.Model): @@ -10,7 +10,6 @@ class CrmLead(models.Model): contact_name = fields.Char("First name") contact_lastname = fields.Char("Last name") - @api.multi def _create_lead_partner_data(self, name, is_company, parent_id=False): """Ensure first and last names of contact match those in lead.""" lead_partner_data = super(CrmLead, self)._create_lead_partner_data( diff --git a/crm_lead_firstname/views/crm_lead_view.xml b/crm_lead_firstname/views/crm_lead_view.xml index 207fa5a9d85..a79d9b34f7f 100644 --- a/crm_lead_firstname/views/crm_lead_view.xml +++ b/crm_lead_firstname/views/crm_lead_view.xml @@ -3,10 +3,10 @@ License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> <odoo> - <record id="crm_case_form_view_leads" model="ir.ui.view"> + <record id="crm_lead_view_form" model="ir.ui.view"> <field name="name">Add firstname and lastname</field> <field name="model">crm.lead</field> - <field name="inherit_id" ref="crm.crm_case_form_view_leads"/> + <field name="inherit_id" ref="crm.crm_lead_view_form"/> <field name="arch" type="xml"> <xpath expr="//label[@for='contact_name']" position="attributes"> <attribute name="string">Contact Name</attribute> @@ -16,22 +16,14 @@ </xpath> <xpath expr="//field[@name='contact_name']" position="after"> <field name="contact_lastname" placeholder="Lastname"/> - </xpath> - </field> - </record> - - <record id="crm_case_form_view_oppor" model="ir.ui.view"> - <field name="name">Add firstname and lastname</field> - <field name="model">crm.lead</field> - <field name="inherit_id" ref="crm.crm_case_form_view_oppor"/> - <field name="arch" type="xml"> - <xpath expr="//label[@for='contact_name']" position="attributes"> + </xpath> + <xpath expr="//page[@name='lead']//label[@for='contact_name']" position="attributes"> <attribute name="string">Contact Name</attribute> </xpath> - <xpath expr="//field[@name='contact_name']" position="attributes"> + <xpath expr="//page[@name='lead']//field[@name='contact_name']" position="attributes"> <attribute name="placeholder">Firstname</attribute> </xpath> - <xpath expr="//field[@name='contact_name']" position="after"> + <xpath expr="//page[@name='lead']//field[@name='contact_name']" position="after"> <field name="contact_lastname" placeholder="Lastname"/> </xpath> </field> From a7a1a11056fae3a2ed5698b189af14d314edcbfe Mon Sep 17 00:00:00 2001 From: Nikos Tsirintanis <ntsirintanis@therp.nl> Date: Tue, 17 Mar 2020 11:20:01 +0100 Subject: [PATCH 13/30] [IMP] crm_lead_firstname: black, isort --- crm_lead_firstname/__manifest__.py | 9 ++---- crm_lead_firstname/models/crm_lead.py | 34 ++++++++++----------- crm_lead_firstname/readme/DESCRIPTION.rst | 1 - crm_lead_firstname/tests/test_crm_lead.py | 35 ++++++++++------------ crm_lead_firstname/views/crm_lead_view.xml | 26 ++++++++++------ 5 files changed, 52 insertions(+), 53 deletions(-) diff --git a/crm_lead_firstname/__manifest__.py b/crm_lead_firstname/__manifest__.py index 7ae9e09c4e6..108f4e81a88 100644 --- a/crm_lead_firstname/__manifest__.py +++ b/crm_lead_firstname/__manifest__.py @@ -10,11 +10,6 @@ "license": "AGPL-3", "application": False, "installable": True, - "depends": [ - "crm", - "partner_firstname", - ], - "data": [ - "views/crm_lead_view.xml", - ], + "depends": ["crm", "partner_firstname",], + "data": ["views/crm_lead_view.xml",], } diff --git a/crm_lead_firstname/models/crm_lead.py b/crm_lead_firstname/models/crm_lead.py index d9f10a5b8fe..812a0d42297 100644 --- a/crm_lead_firstname/models/crm_lead.py +++ b/crm_lead_firstname/models/crm_lead.py @@ -13,23 +13,21 @@ class CrmLead(models.Model): def _create_lead_partner_data(self, name, is_company, parent_id=False): """Ensure first and last names of contact match those in lead.""" lead_partner_data = super(CrmLead, self)._create_lead_partner_data( - name, - is_company, - parent_id + name, is_company, parent_id ) if not is_company: if self.contact_name: - lead_partner_data.update({ - "firstname": self.contact_name, - }) - if 'name' in lead_partner_data: - del lead_partner_data['name'] + lead_partner_data.update( + {"firstname": self.contact_name,} + ) + if "name" in lead_partner_data: + del lead_partner_data["name"] if self.contact_lastname: - lead_partner_data.update({ - "lastname": self.contact_lastname, - }) - if 'name' in lead_partner_data: - del lead_partner_data['name'] + lead_partner_data.update( + {"lastname": self.contact_lastname,} + ) + if "name" in lead_partner_data: + del lead_partner_data["name"] return lead_partner_data def _onchange_partner_id_values(self, partner_id): @@ -39,9 +37,11 @@ def _onchange_partner_id_values(self, partner_id): if partner_id: partner = self.env["res.partner"].browse(partner_id) if not partner.is_company: - result.update({ - "contact_name": partner.firstname, - "contact_lastname": partner.lastname, - }) + result.update( + { + "contact_name": partner.firstname, + "contact_lastname": partner.lastname, + } + ) return result diff --git a/crm_lead_firstname/readme/DESCRIPTION.rst b/crm_lead_firstname/readme/DESCRIPTION.rst index 6272bb4c61b..4ae85949d5c 100644 --- a/crm_lead_firstname/readme/DESCRIPTION.rst +++ b/crm_lead_firstname/readme/DESCRIPTION.rst @@ -1,4 +1,3 @@ This module extends the functionality of CRM leads to support split first and last name fields for contacts and allow you to port that information to and from partners. - diff --git a/crm_lead_firstname/tests/test_crm_lead.py b/crm_lead_firstname/tests/test_crm_lead.py index c3f7cd150ba..a6483e19325 100644 --- a/crm_lead_firstname/tests/test_crm_lead.py +++ b/crm_lead_firstname/tests/test_crm_lead.py @@ -5,22 +5,22 @@ class FirstNameCase(SavepointCase): - @classmethod def setUpClass(cls): super(FirstNameCase, cls).setUpClass() cls.lead_model = cls.env["crm.lead"] cls.partner_model = cls.env["res.partner"] - cls.lead = cls.lead_model.create({ - "name": "Léad", - "partner_name": "Pärtner", - "contact_name": "Firçt name", - "contact_lastname": "Laçt name", - }) - cls.partner = cls.partner_model.create({ - "firstname": "Firçt name", - "lastname": "Laçt name", - }) + cls.lead = cls.lead_model.create( + { + "name": "Léad", + "partner_name": "Pärtner", + "contact_name": "Firçt name", + "contact_lastname": "Laçt name", + } + ) + cls.partner = cls.partner_model.create( + {"firstname": "Firçt name", "lastname": "Laçt name",} + ) def test_create_contact(self): """Contact correctly created.""" @@ -31,10 +31,9 @@ def test_create_contact(self): def test_create_contact_empty(self): """No problems creating a contact without names.""" - self.lead.write({ - "contact_name": False, - "contact_lastname": False, - }) + self.lead.write( + {"contact_name": False, "contact_lastname": False,} + ) self.lead.handle_partner_assignation() def test_onchange_partner(self): @@ -42,7 +41,5 @@ def test_onchange_partner(self): with self.env.do_in_onchange(): self.lead.partner_id = self.partner value = self.lead._onchange_partner_id_values(self.partner.id) - self.assertEqual( - self.partner.firstname, value["contact_name"]) - self.assertEqual( - self.partner.lastname, value["contact_lastname"]) + self.assertEqual(self.partner.firstname, value["contact_name"]) + self.assertEqual(self.partner.lastname, value["contact_lastname"]) diff --git a/crm_lead_firstname/views/crm_lead_view.xml b/crm_lead_firstname/views/crm_lead_view.xml index a79d9b34f7f..b7f709d60ea 100644 --- a/crm_lead_firstname/views/crm_lead_view.xml +++ b/crm_lead_firstname/views/crm_lead_view.xml @@ -1,12 +1,11 @@ -<?xml version="1.0" encoding="utf-8"?> +<?xml version="1.0" encoding="utf-8" ?> <!-- © 2016 Antiun Ingeniería S.L. - Jairo Llopis License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> - <odoo> <record id="crm_lead_view_form" model="ir.ui.view"> <field name="name">Add firstname and lastname</field> <field name="model">crm.lead</field> - <field name="inherit_id" ref="crm.crm_lead_view_form"/> + <field name="inherit_id" ref="crm.crm_lead_view_form" /> <field name="arch" type="xml"> <xpath expr="//label[@for='contact_name']" position="attributes"> <attribute name="string">Contact Name</attribute> @@ -15,16 +14,25 @@ <attribute name="placeholder">Firstname</attribute> </xpath> <xpath expr="//field[@name='contact_name']" position="after"> - <field name="contact_lastname" placeholder="Lastname"/> - </xpath> - <xpath expr="//page[@name='lead']//label[@for='contact_name']" position="attributes"> + <field name="contact_lastname" placeholder="Lastname" /> + </xpath> + <xpath + expr="//page[@name='lead']//label[@for='contact_name']" + position="attributes" + > <attribute name="string">Contact Name</attribute> </xpath> - <xpath expr="//page[@name='lead']//field[@name='contact_name']" position="attributes"> + <xpath + expr="//page[@name='lead']//field[@name='contact_name']" + position="attributes" + > <attribute name="placeholder">Firstname</attribute> </xpath> - <xpath expr="//page[@name='lead']//field[@name='contact_name']" position="after"> - <field name="contact_lastname" placeholder="Lastname"/> + <xpath + expr="//page[@name='lead']//field[@name='contact_name']" + position="after" + > + <field name="contact_lastname" placeholder="Lastname" /> </xpath> </field> </record> From f1abcdc51720de11a8d75404e4d35917439503c7 Mon Sep 17 00:00:00 2001 From: Nikos Tsirintanis <ntsirintanis@therp.nl> Date: Tue, 17 Mar 2020 11:46:18 +0100 Subject: [PATCH 14/30] [FIX] unit tests in crm_lead_firstname, linting errors, minor review changes --- crm_lead_firstname/__manifest__.py | 8 ++++---- crm_lead_firstname/models/crm_lead.py | 10 +++------- crm_lead_firstname/readme/CONTRIBUTORS.rst | 1 + crm_lead_firstname/readme/DESCRIPTION.rst | 4 ++++ crm_lead_firstname/readme/INSTALL.rst | 5 ----- crm_lead_firstname/tests/test_crm_lead.py | 22 +++++++++++----------- crm_lead_firstname/views/crm_lead_view.xml | 2 +- 7 files changed, 24 insertions(+), 28 deletions(-) diff --git a/crm_lead_firstname/__manifest__.py b/crm_lead_firstname/__manifest__.py index 108f4e81a88..8f1c9d53c18 100644 --- a/crm_lead_firstname/__manifest__.py +++ b/crm_lead_firstname/__manifest__.py @@ -1,15 +1,15 @@ -# © 2016 Antiun Ingeniería S.L. - Jairo Llopis +# Copyright 2016 Antiun Ingeniería S.L. - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { "name": "Firstname and Lastname in Leads", "summary": "Specify split names for contacts in leads", "version": "13.0.1.0.0", "category": "Customer Relationship Management", - "website": "http://www.github.com/OCA/crm", + "website": "http://github.com/OCA/crm", "author": "Tecnativa, Odoo Community Association (OCA)", "license": "AGPL-3", "application": False, "installable": True, - "depends": ["crm", "partner_firstname",], - "data": ["views/crm_lead_view.xml",], + "depends": ["crm", "partner_firstname"], + "data": ["views/crm_lead_view.xml"], } diff --git a/crm_lead_firstname/models/crm_lead.py b/crm_lead_firstname/models/crm_lead.py index 812a0d42297..fb525fe6cd5 100644 --- a/crm_lead_firstname/models/crm_lead.py +++ b/crm_lead_firstname/models/crm_lead.py @@ -1,4 +1,4 @@ -# © 2016 Antiun Ingeniería S.L. - Jairo Llopis +# Copyright 2016 Antiun Ingeniería S.L. - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo import fields, models @@ -17,15 +17,11 @@ def _create_lead_partner_data(self, name, is_company, parent_id=False): ) if not is_company: if self.contact_name: - lead_partner_data.update( - {"firstname": self.contact_name,} - ) + lead_partner_data.update({"firstname": self.contact_name}) if "name" in lead_partner_data: del lead_partner_data["name"] if self.contact_lastname: - lead_partner_data.update( - {"lastname": self.contact_lastname,} - ) + lead_partner_data.update({"lastname": self.contact_lastname}) if "name" in lead_partner_data: del lead_partner_data["name"] return lead_partner_data diff --git a/crm_lead_firstname/readme/CONTRIBUTORS.rst b/crm_lead_firstname/readme/CONTRIBUTORS.rst index 0ece1fe0741..72e64124b50 100644 --- a/crm_lead_firstname/readme/CONTRIBUTORS.rst +++ b/crm_lead_firstname/readme/CONTRIBUTORS.rst @@ -1,3 +1,4 @@ * Rafael Blasco * Jairo Llopis * Raf Ven <raf.ven@dynapps.be> +* Nikos Tsirintanis <ntsirintanis@therp.nl> diff --git a/crm_lead_firstname/readme/DESCRIPTION.rst b/crm_lead_firstname/readme/DESCRIPTION.rst index 4ae85949d5c..7e3a4d6e7d1 100644 --- a/crm_lead_firstname/readme/DESCRIPTION.rst +++ b/crm_lead_firstname/readme/DESCRIPTION.rst @@ -1,3 +1,7 @@ This module extends the functionality of CRM leads to support split first and last name fields for contacts and allow you to port that information to and from partners. +Since leads are expected to create partners only when needed and after +information is correctly set up, in leads there is no inverse logic to +transform the old single name in the new split names automatically. The old +single name will simply be the firstname now. diff --git a/crm_lead_firstname/readme/INSTALL.rst b/crm_lead_firstname/readme/INSTALL.rst index 844fb09c248..0cbfe9c472b 100644 --- a/crm_lead_firstname/readme/INSTALL.rst +++ b/crm_lead_firstname/readme/INSTALL.rst @@ -1,8 +1,3 @@ -Since leads are expected to create partners only when needed and after -information is correctly set up, in leads there is no inverse logic to -transform the old single name in the new split names automatically. The old -single name will simply be the firstname now. - To install this module, you need to: * Install `OCA/partner-contact <https://github.com/OCA/partner-contact>`_ repo. diff --git a/crm_lead_firstname/tests/test_crm_lead.py b/crm_lead_firstname/tests/test_crm_lead.py index a6483e19325..9604c739e72 100644 --- a/crm_lead_firstname/tests/test_crm_lead.py +++ b/crm_lead_firstname/tests/test_crm_lead.py @@ -1,13 +1,14 @@ -# © 2016 Antiun Ingeniería S.L. - Jairo Llopis +# Copyright 2016 Antiun Ingeniería S.L. - Jairo Llopis # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from odoo.tests.common import SavepointCase +from odoo.tests.common import Form, SavepointCase class FirstNameCase(SavepointCase): @classmethod def setUpClass(cls): super(FirstNameCase, cls).setUpClass() + cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) cls.lead_model = cls.env["crm.lead"] cls.partner_model = cls.env["res.partner"] cls.lead = cls.lead_model.create( @@ -19,7 +20,7 @@ def setUpClass(cls): } ) cls.partner = cls.partner_model.create( - {"firstname": "Firçt name", "lastname": "Laçt name",} + {"firstname": "Firçt name", "lastname": "Laçt name"} ) def test_create_contact(self): @@ -31,15 +32,14 @@ def test_create_contact(self): def test_create_contact_empty(self): """No problems creating a contact without names.""" - self.lead.write( - {"contact_name": False, "contact_lastname": False,} - ) + self.lead.write({"contact_name": False, "contact_lastname": False}) self.lead.handle_partner_assignation() def test_onchange_partner(self): """When changing partner, fields get correctly updated.""" - with self.env.do_in_onchange(): - self.lead.partner_id = self.partner - value = self.lead._onchange_partner_id_values(self.partner.id) - self.assertEqual(self.partner.firstname, value["contact_name"]) - self.assertEqual(self.partner.lastname, value["contact_lastname"]) + with Form(self.env["crm.lead"], view="crm.crm_lead_view_form") as lead_form: + lead_form.partner_id = self.partner + lead_form.name = self.partner.name + lead_form.save() + self.assertEqual(self.partner.firstname, lead_form.contact_name) + self.assertEqual(self.partner.lastname, lead_form.contact_lastname) diff --git a/crm_lead_firstname/views/crm_lead_view.xml b/crm_lead_firstname/views/crm_lead_view.xml index b7f709d60ea..fd83aeb9d92 100644 --- a/crm_lead_firstname/views/crm_lead_view.xml +++ b/crm_lead_firstname/views/crm_lead_view.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- © 2016 Antiun Ingeniería S.L. - Jairo Llopis +<!-- Copyright 2016 Antiun Ingeniería S.L. - Jairo Llopis License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> <odoo> <record id="crm_lead_view_form" model="ir.ui.view"> From f3601b307e72318d41a1a5ba6e53c72286348e58 Mon Sep 17 00:00:00 2001 From: oca-travis <oca+oca-travis@odoo-community.org> Date: Wed, 18 Mar 2020 13:16:44 +0000 Subject: [PATCH 15/30] [UPD] Update crm_lead_firstname.pot --- crm_lead_firstname/README.rst | 21 +++++++++---------- crm_lead_firstname/i18n/bg.po | 9 +++----- .../i18n/crm_lead_firstname.pot | 16 ++++++-------- crm_lead_firstname/i18n/de.po | 13 +++++------- crm_lead_firstname/i18n/es.po | 10 +++------ crm_lead_firstname/i18n/fr.po | 9 +++----- crm_lead_firstname/i18n/fr_CH.po | 10 +++------ crm_lead_firstname/i18n/hr.po | 13 +++++------- crm_lead_firstname/i18n/it.po | 13 +++++------- crm_lead_firstname/i18n/pt_BR.po | 9 +++----- crm_lead_firstname/i18n/sk.po | 9 +++----- crm_lead_firstname/i18n/sl.po | 10 +++------ crm_lead_firstname/i18n/tr.po | 10 +++------ crm_lead_firstname/i18n/zh_CN.po | 9 +++----- .../static/description/index.html | 17 ++++++++------- 15 files changed, 67 insertions(+), 111 deletions(-) diff --git a/crm_lead_firstname/README.rst b/crm_lead_firstname/README.rst index 6e1237198d5..db7815391a1 100644 --- a/crm_lead_firstname/README.rst +++ b/crm_lead_firstname/README.rst @@ -14,13 +14,13 @@ Firstname and Lastname in Leads :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_lead_firstname + :target: https://github.com/OCA/crm/tree/13.0/crm_lead_firstname :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_lead_firstname + :target: https://translation.odoo-community.org/projects/crm-13-0/crm-13-0-crm_lead_firstname :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| @@ -28,7 +28,10 @@ Firstname and Lastname in Leads This module extends the functionality of CRM leads to support split first and last name fields for contacts and allow you to port that information to and from partners. - +Since leads are expected to create partners only when needed and after +information is correctly set up, in leads there is no inverse logic to +transform the old single name in the new split names automatically. The old +single name will simply be the firstname now. **Table of contents** @@ -38,11 +41,6 @@ from partners. Installation ============ -Since leads are expected to create partners only when needed and after -information is correctly set up, in leads there is no inverse logic to -transform the old single name in the new split names automatically. The old -single name will simply be the firstname now. - To install this module, you need to: * Install `OCA/partner-contact <https://github.com/OCA/partner-contact>`_ repo. @@ -67,7 +65,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues <https://github.com/OCA/crm/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 <https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. +`feedback <https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. Do not contact contributors directly about support or help with technical issues. @@ -85,6 +83,7 @@ Contributors * Rafael Blasco * Jairo Llopis * Raf Ven <raf.ven@dynapps.be> +* Nikos Tsirintanis <ntsirintanis@therp.nl> Maintainers ~~~~~~~~~~~ @@ -99,6 +98,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 <https://github.com/OCA/crm/tree/12.0/crm_lead_firstname>`_ project on GitHub. +This module is part of the `OCA/crm <https://github.com/OCA/crm/tree/13.0/crm_lead_firstname>`_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/crm_lead_firstname/i18n/bg.po b/crm_lead_firstname/i18n/bg.po index 81f7a09c13e..4df40756074 100644 --- a/crm_lead_firstname/i18n/bg.po +++ b/crm_lead_firstname/i18n/bg.po @@ -19,8 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Contact Name" msgstr "" @@ -30,8 +29,7 @@ msgid "First name" msgstr "" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Firstname" msgstr "" @@ -41,8 +39,7 @@ msgid "Last name" msgstr "" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Lastname" msgstr "" diff --git a/crm_lead_firstname/i18n/crm_lead_firstname.pot b/crm_lead_firstname/i18n/crm_lead_firstname.pot index 9b5ca397cb1..5253483c337 100644 --- a/crm_lead_firstname/i18n/crm_lead_firstname.pot +++ b/crm_lead_firstname/i18n/crm_lead_firstname.pot @@ -1,12 +1,12 @@ # Translation of Odoo Server. # This file contains the translation of the following modules: -# * crm_lead_firstname +# * crm_lead_firstname # 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_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Contact Name" msgstr "" @@ -25,8 +24,7 @@ msgid "First name" msgstr "" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Firstname" msgstr "" @@ -36,8 +34,7 @@ msgid "Last name" msgstr "" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Lastname" msgstr "" @@ -45,4 +42,3 @@ msgstr "" #: model:ir.model,name:crm_lead_firstname.model_crm_lead msgid "Lead/Opportunity" msgstr "" - diff --git a/crm_lead_firstname/i18n/de.po b/crm_lead_firstname/i18n/de.po index 5b0b80a18e0..718932224a9 100644 --- a/crm_lead_firstname/i18n/de.po +++ b/crm_lead_firstname/i18n/de.po @@ -11,8 +11,8 @@ msgstr "" "POT-Creation-Date: 2017-03-28 02:25+0000\n" "PO-Revision-Date: 2019-06-28 13:42+0000\n" "Last-Translator: Maria Sparenberg <maria.sparenberg@gmx.net>\n" -"Language-Team: German (http://www.transifex.com/oca/OCA-crm-8-0/language/de/)" -"\n" +"Language-Team: German (http://www.transifex.com/oca/OCA-crm-8-0/language/" +"de/)\n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -21,8 +21,7 @@ msgstr "" "X-Generator: Weblate 3.6.1\n" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Contact Name" msgstr "Ansprechpartner" @@ -32,8 +31,7 @@ msgid "First name" msgstr "Vorname" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Firstname" msgstr "Vorname" @@ -43,8 +41,7 @@ msgid "Last name" msgstr "Nachname" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Lastname" msgstr "Nachname" diff --git a/crm_lead_firstname/i18n/es.po b/crm_lead_firstname/i18n/es.po index f7095840dd4..32e4539675e 100644 --- a/crm_lead_firstname/i18n/es.po +++ b/crm_lead_firstname/i18n/es.po @@ -18,21 +18,18 @@ msgstr "" "X-Generator: Poedit 1.8.6\n" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Contact Name" msgstr "Nombre del contacto" #. module: crm_lead_firstname #: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name #, fuzzy -#| msgid "Firstname" msgid "First name" msgstr "Nombre de pila" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Firstname" msgstr "Nombre de pila" @@ -42,8 +39,7 @@ msgid "Last name" msgstr "Apellido" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Lastname" msgstr "Apellido" diff --git a/crm_lead_firstname/i18n/fr.po b/crm_lead_firstname/i18n/fr.po index 0a7d3a5b270..b14a507c467 100644 --- a/crm_lead_firstname/i18n/fr.po +++ b/crm_lead_firstname/i18n/fr.po @@ -19,8 +19,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Contact Name" msgstr "" @@ -30,8 +29,7 @@ msgid "First name" msgstr "" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Firstname" msgstr "" @@ -41,8 +39,7 @@ msgid "Last name" msgstr "" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Lastname" msgstr "" diff --git a/crm_lead_firstname/i18n/fr_CH.po b/crm_lead_firstname/i18n/fr_CH.po index 945435e3d67..9fa5021d6af 100644 --- a/crm_lead_firstname/i18n/fr_CH.po +++ b/crm_lead_firstname/i18n/fr_CH.po @@ -19,21 +19,18 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Contact Name" msgstr "" #. module: crm_lead_firstname #: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name #, fuzzy -#| msgid "Last name" msgid "First name" msgstr "Nom de famille" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Firstname" msgstr "" @@ -43,8 +40,7 @@ msgid "Last name" msgstr "Nom de famille" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Lastname" msgstr "" diff --git a/crm_lead_firstname/i18n/hr.po b/crm_lead_firstname/i18n/hr.po index 250b0db2225..ec15d1197a0 100644 --- a/crm_lead_firstname/i18n/hr.po +++ b/crm_lead_firstname/i18n/hr.po @@ -17,13 +17,12 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: \n" -"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=" -"4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" +"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" "X-Generator: Weblate 3.8\n" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Contact Name" msgstr "Ime kontakta" @@ -33,8 +32,7 @@ msgid "First name" msgstr "Ime" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Firstname" msgstr "Ime" @@ -44,8 +42,7 @@ msgid "Last name" msgstr "Prezime" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Lastname" msgstr "Prezime" diff --git a/crm_lead_firstname/i18n/it.po b/crm_lead_firstname/i18n/it.po index 6aef46c6cd0..8ac9690be28 100644 --- a/crm_lead_firstname/i18n/it.po +++ b/crm_lead_firstname/i18n/it.po @@ -12,8 +12,8 @@ msgstr "" "POT-Creation-Date: 2016-04-16 11:11+0000\n" "PO-Revision-Date: 2020-01-08 19:13+0000\n" "Last-Translator: Sergio Zanchetta <primes2h@gmail.com>\n" -"Language-Team: Italian (http://www.transifex.com/oca/OCA-crm-8-0/language/it/" -")\n" +"Language-Team: Italian (http://www.transifex.com/oca/OCA-crm-8-0/language/" +"it/)\n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" @@ -22,8 +22,7 @@ msgstr "" "X-Generator: Weblate 3.10\n" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Contact Name" msgstr "Nome contatto" @@ -33,8 +32,7 @@ msgid "First name" msgstr "Nome" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Firstname" msgstr "Nome" @@ -44,8 +42,7 @@ msgid "Last name" msgstr "Cognome" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Lastname" msgstr "Cognome" diff --git a/crm_lead_firstname/i18n/pt_BR.po b/crm_lead_firstname/i18n/pt_BR.po index e22dde8b906..50a5a98cd74 100644 --- a/crm_lead_firstname/i18n/pt_BR.po +++ b/crm_lead_firstname/i18n/pt_BR.po @@ -20,8 +20,7 @@ msgstr "" "X-Generator: Weblate 3.8\n" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Contact Name" msgstr "Nome de Contato" @@ -31,8 +30,7 @@ msgid "First name" msgstr "Primeiro Nome" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Firstname" msgstr "Primeironome" @@ -42,8 +40,7 @@ msgid "Last name" msgstr "Último Nome" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Lastname" msgstr "Sobrenome" diff --git a/crm_lead_firstname/i18n/sk.po b/crm_lead_firstname/i18n/sk.po index 174db3c8796..3491cab5348 100644 --- a/crm_lead_firstname/i18n/sk.po +++ b/crm_lead_firstname/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_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Contact Name" msgstr "" @@ -30,8 +29,7 @@ msgid "First name" msgstr "" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Firstname" msgstr "" @@ -41,8 +39,7 @@ msgid "Last name" msgstr "" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Lastname" msgstr "" diff --git a/crm_lead_firstname/i18n/sl.po b/crm_lead_firstname/i18n/sl.po index 4fe9dda5808..190f5bf2780 100644 --- a/crm_lead_firstname/i18n/sl.po +++ b/crm_lead_firstname/i18n/sl.po @@ -21,21 +21,18 @@ msgstr "" "%100==4 ? 2 : 3);\n" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Contact Name" msgstr "Naziv stika" #. module: crm_lead_firstname #: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name #, fuzzy -#| msgid "Firstname" msgid "First name" msgstr "Ime" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Firstname" msgstr "Ime" @@ -45,8 +42,7 @@ msgid "Last name" msgstr "Priimek" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Lastname" msgstr "Priimek" diff --git a/crm_lead_firstname/i18n/tr.po b/crm_lead_firstname/i18n/tr.po index f8edf14bec8..0e56641d982 100644 --- a/crm_lead_firstname/i18n/tr.po +++ b/crm_lead_firstname/i18n/tr.po @@ -19,21 +19,18 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Contact Name" msgstr "" #. module: crm_lead_firstname #: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name #, fuzzy -#| msgid "Last name" msgid "First name" msgstr "Soyadı" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Firstname" msgstr "" @@ -43,8 +40,7 @@ msgid "Last name" msgstr "Soyadı" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Lastname" msgstr "" diff --git a/crm_lead_firstname/i18n/zh_CN.po b/crm_lead_firstname/i18n/zh_CN.po index 5dd698354bd..45a03aa6fb3 100644 --- a/crm_lead_firstname/i18n/zh_CN.po +++ b/crm_lead_firstname/i18n/zh_CN.po @@ -19,8 +19,7 @@ msgstr "" "Plural-Forms: nplurals=1; plural=0;\n" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Contact Name" msgstr "" @@ -30,8 +29,7 @@ msgid "First name" msgstr "" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Firstname" msgstr "" @@ -41,8 +39,7 @@ msgid "Last name" msgstr "" #. module: crm_lead_firstname -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_leads -#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_case_form_view_oppor +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form msgid "Lastname" msgstr "" diff --git a/crm_lead_firstname/static/description/index.html b/crm_lead_firstname/static/description/index.html index 47d76d4392b..22fefe7a9af 100644 --- a/crm_lead_firstname/static/description/index.html +++ b/crm_lead_firstname/static/description/index.html @@ -367,10 +367,14 @@ <h1 class="title">Firstname and Lastname in Leads</h1> !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/crm/tree/12.0/crm_lead_firstname"><img alt="OCA/crm" src="https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/crm-12-0/crm-12-0-crm_lead_firstname"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/111/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> +<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/crm/tree/13.0/crm_lead_firstname"><img alt="OCA/crm" src="https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/crm-13-0/crm-13-0-crm_lead_firstname"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/111/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module extends the functionality of CRM leads to support split first and last name fields for contacts and allow you to port that information to and -from partners.</p> +from partners. +Since leads are expected to create partners only when needed and after +information is correctly set up, in leads there is no inverse logic to +transform the old single name in the new split names automatically. The old +single name will simply be the firstname now.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> @@ -387,10 +391,6 @@ <h1 class="title">Firstname and Lastname in Leads</h1> </div> <div class="section" id="installation"> <h1><a class="toc-backref" href="#id1">Installation</a></h1> -<p>Since leads are expected to create partners only when needed and after -information is correctly set up, in leads there is no inverse logic to -transform the old single name in the new split names automatically. The old -single name will simply be the firstname now.</p> <p>To install this module, you need to:</p> <ul class="simple"> <li>Install <a class="reference external" href="https://github.com/OCA/partner-contact">OCA/partner-contact</a> repo.</li> @@ -415,7 +415,7 @@ <h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/crm/issues">GitHub Issues</a>. 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 -<a class="reference external" href="https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> +<a class="reference external" href="https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> </div> <div class="section" id="credits"> @@ -432,6 +432,7 @@ <h2><a class="toc-backref" href="#id6">Contributors</a></h2> <li>Rafael Blasco</li> <li>Jairo Llopis</li> <li>Raf Ven <<a class="reference external" href="mailto:raf.ven@dynapps.be">raf.ven@dynapps.be</a>></li> +<li>Nikos Tsirintanis <<a class="reference external" href="mailto:ntsirintanis@therp.nl">ntsirintanis@therp.nl</a>></li> </ul> </div> <div class="section" id="maintainers"> @@ -441,7 +442,7 @@ <h2><a class="toc-backref" href="#id7">Maintainers</a></h2> <p>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.</p> -<p>This module is part of the <a class="reference external" href="https://github.com/OCA/crm/tree/12.0/crm_lead_firstname">OCA/crm</a> project on GitHub.</p> +<p>This module is part of the <a class="reference external" href="https://github.com/OCA/crm/tree/13.0/crm_lead_firstname">OCA/crm</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p> </div> </div> From f5d42d142590aa48d9ef4f49b7f49a4b7c30d126 Mon Sep 17 00:00:00 2001 From: Stephan Keller <MiStK@gmx.de> Date: Wed, 13 May 2020 12:21:01 +0200 Subject: [PATCH 16/30] [FIX] Clean up license links --- crm_lead_firstname/__init__.py | 2 +- crm_lead_firstname/__manifest__.py | 3 ++- crm_lead_firstname/models/__init__.py | 2 +- crm_lead_firstname/models/crm_lead.py | 2 +- crm_lead_firstname/tests/__init__.py | 2 +- crm_lead_firstname/tests/test_crm_lead.py | 2 +- crm_lead_firstname/views/crm_lead_view.xml | 2 +- 7 files changed, 8 insertions(+), 7 deletions(-) diff --git a/crm_lead_firstname/__init__.py b/crm_lead_firstname/__init__.py index 83e553ac462..4b76c7b2d5c 100644 --- a/crm_lead_firstname/__init__.py +++ b/crm_lead_firstname/__init__.py @@ -1,3 +1,3 @@ -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from . import models diff --git a/crm_lead_firstname/__manifest__.py b/crm_lead_firstname/__manifest__.py index 8f1c9d53c18..fc4026ca895 100644 --- a/crm_lead_firstname/__manifest__.py +++ b/crm_lead_firstname/__manifest__.py @@ -1,5 +1,6 @@ # Copyright 2016 Antiun Ingeniería S.L. - Jairo Llopis -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). + { "name": "Firstname and Lastname in Leads", "summary": "Specify split names for contacts in leads", diff --git a/crm_lead_firstname/models/__init__.py b/crm_lead_firstname/models/__init__.py index b8b7e10d5a6..f11a18fc4e9 100644 --- a/crm_lead_firstname/models/__init__.py +++ b/crm_lead_firstname/models/__init__.py @@ -1,3 +1,3 @@ -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from . import crm_lead diff --git a/crm_lead_firstname/models/crm_lead.py b/crm_lead_firstname/models/crm_lead.py index fb525fe6cd5..eb76291a85e 100644 --- a/crm_lead_firstname/models/crm_lead.py +++ b/crm_lead_firstname/models/crm_lead.py @@ -1,5 +1,5 @@ # Copyright 2016 Antiun Ingeniería S.L. - Jairo Llopis -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo import fields, models diff --git a/crm_lead_firstname/tests/__init__.py b/crm_lead_firstname/tests/__init__.py index 1d245ec7d92..dc2e6c04d0c 100644 --- a/crm_lead_firstname/tests/__init__.py +++ b/crm_lead_firstname/tests/__init__.py @@ -1,3 +1,3 @@ -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from . import test_crm_lead diff --git a/crm_lead_firstname/tests/test_crm_lead.py b/crm_lead_firstname/tests/test_crm_lead.py index 9604c739e72..5a8f235b37d 100644 --- a/crm_lead_firstname/tests/test_crm_lead.py +++ b/crm_lead_firstname/tests/test_crm_lead.py @@ -1,5 +1,5 @@ # Copyright 2016 Antiun Ingeniería S.L. - Jairo Llopis -# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). from odoo.tests.common import Form, SavepointCase diff --git a/crm_lead_firstname/views/crm_lead_view.xml b/crm_lead_firstname/views/crm_lead_view.xml index fd83aeb9d92..52afc96bba9 100644 --- a/crm_lead_firstname/views/crm_lead_view.xml +++ b/crm_lead_firstname/views/crm_lead_view.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> <!-- Copyright 2016 Antiun Ingeniería S.L. - Jairo Llopis - License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). --> + License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). --> <odoo> <record id="crm_lead_view_form" model="ir.ui.view"> <field name="name">Add firstname and lastname</field> From 6a80e11300eb3e715f9d9465f788defe47ce6c36 Mon Sep 17 00:00:00 2001 From: RIDA YAHLA <mi_reda2012@live.fr> Date: Tue, 10 Nov 2020 14:29:27 +0100 Subject: [PATCH 17/30] [IMP] crm_lead_firstname: black, isort, prettier --- crm_lead_firstname/README.rst | 9 +++++---- crm_lead_firstname/__manifest__.py | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/crm_lead_firstname/README.rst b/crm_lead_firstname/README.rst index db7815391a1..ae4fc569c55 100644 --- a/crm_lead_firstname/README.rst +++ b/crm_lead_firstname/README.rst @@ -14,13 +14,13 @@ Firstname and Lastname in Leads :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_lead_firstname + :target: https://github.com/OCA/crm/tree/14.0/crm_lead_firstname :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_lead_firstname :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| @@ -65,7 +65,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues <https://github.com/OCA/crm/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 <https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. +`feedback <https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. Do not contact contributors directly about support or help with technical issues. @@ -85,6 +85,7 @@ Contributors * Raf Ven <raf.ven@dynapps.be> * Nikos Tsirintanis <ntsirintanis@therp.nl> + Maintainers ~~~~~~~~~~~ @@ -98,6 +99,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 <https://github.com/OCA/crm/tree/13.0/crm_lead_firstname>`_ project on GitHub. +This module is part of the `OCA/crm <https://github.com/OCA/crm/tree/14.0/crm_lead_firstname>`_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/crm_lead_firstname/__manifest__.py b/crm_lead_firstname/__manifest__.py index fc4026ca895..a8a18b4db04 100644 --- a/crm_lead_firstname/__manifest__.py +++ b/crm_lead_firstname/__manifest__.py @@ -4,9 +4,9 @@ { "name": "Firstname and Lastname in Leads", "summary": "Specify split names for contacts in leads", - "version": "13.0.1.0.0", + "version": "14.0.1.0.0", "category": "Customer Relationship Management", - "website": "http://github.com/OCA/crm", + "website": "https://github.com/OCA/crm", "author": "Tecnativa, Odoo Community Association (OCA)", "license": "AGPL-3", "application": False, From c0aa31174ec7b858d99498c15bcfdf88aef18c1e Mon Sep 17 00:00:00 2001 From: RIDA YAHLA <mi_reda2012@live.fr> Date: Wed, 11 Nov 2020 12:30:34 +0100 Subject: [PATCH 18/30] [MIG] crm_lead_firstname: Migration to 14.0 --- crm_lead_firstname/README.rst | 1 + crm_lead_firstname/models/__init__.py | 1 - crm_lead_firstname/models/crm_lead.py | 15 +++++++-------- crm_lead_firstname/tests/test_crm_lead.py | 6 +++--- crm_lead_firstname/views/crm_lead_view.xml | 2 +- 5 files changed, 12 insertions(+), 13 deletions(-) diff --git a/crm_lead_firstname/README.rst b/crm_lead_firstname/README.rst index ae4fc569c55..91d739bfeb5 100644 --- a/crm_lead_firstname/README.rst +++ b/crm_lead_firstname/README.rst @@ -84,6 +84,7 @@ Contributors * Jairo Llopis * Raf Ven <raf.ven@dynapps.be> * Nikos Tsirintanis <ntsirintanis@therp.nl> +* Rida Yahla <mi_reda2012@live.fr> Maintainers diff --git a/crm_lead_firstname/models/__init__.py b/crm_lead_firstname/models/__init__.py index f11a18fc4e9..195bee42544 100644 --- a/crm_lead_firstname/models/__init__.py +++ b/crm_lead_firstname/models/__init__.py @@ -1,3 +1,2 @@ # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). - from . import crm_lead diff --git a/crm_lead_firstname/models/crm_lead.py b/crm_lead_firstname/models/crm_lead.py index eb76291a85e..24163ab4ebc 100644 --- a/crm_lead_firstname/models/crm_lead.py +++ b/crm_lead_firstname/models/crm_lead.py @@ -10,10 +10,10 @@ class CrmLead(models.Model): contact_name = fields.Char("First name") contact_lastname = fields.Char("Last name") - def _create_lead_partner_data(self, name, is_company, parent_id=False): + def _prepare_customer_values(self, partner_name, is_company, parent_id=False): """Ensure first and last names of contact match those in lead.""" - lead_partner_data = super(CrmLead, self)._create_lead_partner_data( - name, is_company, parent_id + lead_partner_data = super(CrmLead, self)._prepare_customer_values( + partner_name, is_company, parent_id ) if not is_company: if self.contact_name: @@ -26,12 +26,11 @@ def _create_lead_partner_data(self, name, is_company, parent_id=False): del lead_partner_data["name"] return lead_partner_data - def _onchange_partner_id_values(self, partner_id): + def _prepare_values_from_partner(self, partner): """Recover first and last names from partner if available.""" - result = super(CrmLead, self)._onchange_partner_id_values(partner_id) + result = super(CrmLead, self)._prepare_values_from_partner(partner) - if partner_id: - partner = self.env["res.partner"].browse(partner_id) + if partner: if not partner.is_company: result.update( { @@ -40,4 +39,4 @@ def _onchange_partner_id_values(self, partner_id): } ) - return result + return self._convert_to_write(result) diff --git a/crm_lead_firstname/tests/test_crm_lead.py b/crm_lead_firstname/tests/test_crm_lead.py index 5a8f235b37d..8d53d4707e6 100644 --- a/crm_lead_firstname/tests/test_crm_lead.py +++ b/crm_lead_firstname/tests/test_crm_lead.py @@ -25,15 +25,15 @@ def setUpClass(cls): def test_create_contact(self): """Contact correctly created.""" - partner_id = self.lead.handle_partner_assignation()[self.lead.id] - partner = self.partner_model.browse(partner_id) + self.lead.handle_partner_assignment() + partner = self.partner_model.browse(self.lead.partner_id.id) self.assertEqual(self.lead.contact_name, partner.firstname) self.assertEqual(self.lead.contact_lastname, partner.lastname) def test_create_contact_empty(self): """No problems creating a contact without names.""" self.lead.write({"contact_name": False, "contact_lastname": False}) - self.lead.handle_partner_assignation() + self.lead.handle_partner_assignment() def test_onchange_partner(self): """When changing partner, fields get correctly updated.""" diff --git a/crm_lead_firstname/views/crm_lead_view.xml b/crm_lead_firstname/views/crm_lead_view.xml index 52afc96bba9..bb7d2e0acf5 100644 --- a/crm_lead_firstname/views/crm_lead_view.xml +++ b/crm_lead_firstname/views/crm_lead_view.xml @@ -17,7 +17,7 @@ <field name="contact_lastname" placeholder="Lastname" /> </xpath> <xpath - expr="//page[@name='lead']//label[@for='contact_name']" + expr="//page[@name='lead']//label[@for='contact_name_page_lead']" position="attributes" > <attribute name="string">Contact Name</attribute> From 1d1438e0eaa1569f427bb5fe0702c3aaf614918c Mon Sep 17 00:00:00 2001 From: oca-travis <oca+oca-travis@odoo-community.org> Date: Sat, 9 Jan 2021 15:31:25 +0000 Subject: [PATCH 19/30] [UPD] Update crm_lead_firstname.pot --- crm_lead_firstname/README.rst | 4 +--- crm_lead_firstname/i18n/crm_lead_firstname.pot | 17 ++++++++++++++++- .../static/description/index.html | 6 +++--- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/crm_lead_firstname/README.rst b/crm_lead_firstname/README.rst index 91d739bfeb5..9485ad3efe2 100644 --- a/crm_lead_firstname/README.rst +++ b/crm_lead_firstname/README.rst @@ -17,7 +17,7 @@ Firstname and Lastname in Leads :target: https://github.com/OCA/crm/tree/14.0/crm_lead_firstname :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_lead_firstname + :target: https://translation.odoo-community.org/projects/crm-14-0/crm-14-0-crm_lead_firstname :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png :target: https://runbot.odoo-community.org/runbot/111/14.0 @@ -84,8 +84,6 @@ Contributors * Jairo Llopis * Raf Ven <raf.ven@dynapps.be> * Nikos Tsirintanis <ntsirintanis@therp.nl> -* Rida Yahla <mi_reda2012@live.fr> - Maintainers ~~~~~~~~~~~ diff --git a/crm_lead_firstname/i18n/crm_lead_firstname.pot b/crm_lead_firstname/i18n/crm_lead_firstname.pot index 5253483c337..60de4b53c0b 100644 --- a/crm_lead_firstname/i18n/crm_lead_firstname.pot +++ b/crm_lead_firstname/i18n/crm_lead_firstname.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,11 @@ msgstr "" msgid "Contact Name" msgstr "" +#. module: crm_lead_firstname +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__display_name +msgid "Display Name" +msgstr "" + #. module: crm_lead_firstname #: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name msgid "First name" @@ -28,6 +33,16 @@ msgstr "" msgid "Firstname" msgstr "" +#. module: crm_lead_firstname +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__id +msgid "ID" +msgstr "" + +#. module: crm_lead_firstname +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead____last_update +msgid "Last Modified on" +msgstr "" + #. module: crm_lead_firstname #: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname msgid "Last name" diff --git a/crm_lead_firstname/static/description/index.html b/crm_lead_firstname/static/description/index.html index 22fefe7a9af..7165ec39c17 100644 --- a/crm_lead_firstname/static/description/index.html +++ b/crm_lead_firstname/static/description/index.html @@ -367,7 +367,7 @@ <h1 class="title">Firstname and Lastname in Leads</h1> !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/crm/tree/13.0/crm_lead_firstname"><img alt="OCA/crm" src="https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/crm-13-0/crm-13-0-crm_lead_firstname"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/111/13.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> +<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/crm/tree/14.0/crm_lead_firstname"><img alt="OCA/crm" src="https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/crm-14-0/crm-14-0-crm_lead_firstname"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/111/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module extends the functionality of CRM leads to support split first and last name fields for contacts and allow you to port that information to and from partners. @@ -415,7 +415,7 @@ <h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/crm/issues">GitHub Issues</a>. 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 -<a class="reference external" href="https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2013.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> +<a class="reference external" href="https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> </div> <div class="section" id="credits"> @@ -442,7 +442,7 @@ <h2><a class="toc-backref" href="#id7">Maintainers</a></h2> <p>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.</p> -<p>This module is part of the <a class="reference external" href="https://github.com/OCA/crm/tree/13.0/crm_lead_firstname">OCA/crm</a> project on GitHub.</p> +<p>This module is part of the <a class="reference external" href="https://github.com/OCA/crm/tree/14.0/crm_lead_firstname">OCA/crm</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p> </div> </div> From 1dcebf920450e39247d712e977818ed9882ce068 Mon Sep 17 00:00:00 2001 From: OCA-git-bot <oca-git-bot@odoo-community.org> Date: Sat, 9 Jan 2021 15:42:14 +0000 Subject: [PATCH 20/30] crm_lead_firstname 14.0.1.0.1 --- crm_lead_firstname/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm_lead_firstname/__manifest__.py b/crm_lead_firstname/__manifest__.py index a8a18b4db04..e4413547ff3 100644 --- a/crm_lead_firstname/__manifest__.py +++ b/crm_lead_firstname/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Firstname and Lastname in Leads", "summary": "Specify split names for contacts in leads", - "version": "14.0.1.0.0", + "version": "14.0.1.0.1", "category": "Customer Relationship Management", "website": "https://github.com/OCA/crm", "author": "Tecnativa, Odoo Community Association (OCA)", From bb0aa8c5283db8b874a345a9a91168c042adea89 Mon Sep 17 00:00:00 2001 From: Ignacio Buioli <ibuioli@gmail.com> Date: Sat, 6 Feb 2021 18:27:45 +0000 Subject: [PATCH 21/30] Added translation using Weblate (Spanish (Argentina)) --- crm_lead_firstname/i18n/es_AR.po | 62 ++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 crm_lead_firstname/i18n/es_AR.po diff --git a/crm_lead_firstname/i18n/es_AR.po b/crm_lead_firstname/i18n/es_AR.po new file mode 100644 index 00000000000..b74a0c19903 --- /dev/null +++ b/crm_lead_firstname/i18n/es_AR.po @@ -0,0 +1,62 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * crm_lead_firstname +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 14.0\n" +"Report-Msgid-Bugs-To: \n" +"PO-Revision-Date: 2021-02-06 20:44+0000\n" +"Last-Translator: Ignacio Buioli <ibuioli@gmail.com>\n" +"Language-Team: none\n" +"Language: es_AR\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.3.2\n" + +#. module: crm_lead_firstname +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form +msgid "Contact Name" +msgstr "Nombre del Contacto" + +#. module: crm_lead_firstname +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__display_name +msgid "Display Name" +msgstr "Mostrar Nombre" + +#. module: crm_lead_firstname +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name +msgid "First name" +msgstr "Primer nombre" + +#. module: crm_lead_firstname +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form +msgid "Firstname" +msgstr "Primer nombre" + +#. module: crm_lead_firstname +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__id +msgid "ID" +msgstr "ID" + +#. module: crm_lead_firstname +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead____last_update +msgid "Last Modified on" +msgstr "Última Modificación el" + +#. module: crm_lead_firstname +#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname +msgid "Last name" +msgstr "Apellido" + +#. module: crm_lead_firstname +#: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form +msgid "Lastname" +msgstr "Apellido" + +#. module: crm_lead_firstname +#: model:ir.model,name:crm_lead_firstname.model_crm_lead +msgid "Lead/Opportunity" +msgstr "Iniciativa/Oportunidad" From b8c4d18852f7219ffc759d7697838337d9dead63 Mon Sep 17 00:00:00 2001 From: Oihane Crucelaegui <oihanecruce@gmail.com> Date: Tue, 13 Apr 2021 11:22:04 +0200 Subject: [PATCH 22/30] [FIX] crm_lead_firstname: tests were failing because of changes in crm module --- crm_lead_firstname/models/crm_lead.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crm_lead_firstname/models/crm_lead.py b/crm_lead_firstname/models/crm_lead.py index 24163ab4ebc..94b4c748822 100644 --- a/crm_lead_firstname/models/crm_lead.py +++ b/crm_lead_firstname/models/crm_lead.py @@ -40,3 +40,15 @@ def _prepare_values_from_partner(self, partner): ) return self._convert_to_write(result) + + def _prepare_contact_name_from_partner(self, partner): + result = super()._prepare_contact_name_from_partner(partner) + contact_name = False if partner.is_company else partner.firstname + contact_lastname = False if partner.is_company else partner.lastname + result.update( + { + "contact_name": contact_name or self.contact_name, + "contact_lastname": contact_lastname or self.contact_lastname, + } + ) + return result From 8ce4040913064bfbe36c280487b8ae8b77a54446 Mon Sep 17 00:00:00 2001 From: OCA-git-bot <oca-git-bot@odoo-community.org> Date: Wed, 14 Apr 2021 05:21:10 +0000 Subject: [PATCH 23/30] crm_lead_firstname 14.0.1.0.2 --- crm_lead_firstname/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm_lead_firstname/__manifest__.py b/crm_lead_firstname/__manifest__.py index e4413547ff3..9bac27d1ba6 100644 --- a/crm_lead_firstname/__manifest__.py +++ b/crm_lead_firstname/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Firstname and Lastname in Leads", "summary": "Specify split names for contacts in leads", - "version": "14.0.1.0.1", + "version": "14.0.1.0.2", "category": "Customer Relationship Management", "website": "https://github.com/OCA/crm", "author": "Tecnativa, Odoo Community Association (OCA)", From 97580e367eb64402b9ec3ef1ba74240452699f16 Mon Sep 17 00:00:00 2001 From: Xander De Matteis <xander.dematteis@dynapps.be> Date: Tue, 13 Sep 2022 08:29:24 +0200 Subject: [PATCH 24/30] [MIG] crm_lead_firstname: Migration to 15.0 --- crm_lead_firstname/__manifest__.py | 2 +- crm_lead_firstname/tests/test_crm_lead.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crm_lead_firstname/__manifest__.py b/crm_lead_firstname/__manifest__.py index 9bac27d1ba6..7d3ffbf8ccf 100644 --- a/crm_lead_firstname/__manifest__.py +++ b/crm_lead_firstname/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Firstname and Lastname in Leads", "summary": "Specify split names for contacts in leads", - "version": "14.0.1.0.2", + "version": "15.0.1.0.0", "category": "Customer Relationship Management", "website": "https://github.com/OCA/crm", "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/crm_lead_firstname/tests/test_crm_lead.py b/crm_lead_firstname/tests/test_crm_lead.py index 8d53d4707e6..2ef120225b7 100644 --- a/crm_lead_firstname/tests/test_crm_lead.py +++ b/crm_lead_firstname/tests/test_crm_lead.py @@ -1,10 +1,10 @@ # Copyright 2016 Antiun Ingeniería S.L. - Jairo Llopis # License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html). -from odoo.tests.common import Form, SavepointCase +from odoo.tests.common import Form, TransactionCase -class FirstNameCase(SavepointCase): +class FirstNameCase(TransactionCase): @classmethod def setUpClass(cls): super(FirstNameCase, cls).setUpClass() @@ -25,7 +25,7 @@ def setUpClass(cls): def test_create_contact(self): """Contact correctly created.""" - self.lead.handle_partner_assignment() + self.lead._handle_partner_assignment() partner = self.partner_model.browse(self.lead.partner_id.id) self.assertEqual(self.lead.contact_name, partner.firstname) self.assertEqual(self.lead.contact_lastname, partner.lastname) @@ -33,7 +33,7 @@ def test_create_contact(self): def test_create_contact_empty(self): """No problems creating a contact without names.""" self.lead.write({"contact_name": False, "contact_lastname": False}) - self.lead.handle_partner_assignment() + self.lead._handle_partner_assignment() def test_onchange_partner(self): """When changing partner, fields get correctly updated.""" From f70231e19b53ef4c72f4f626d106ca47dbb566e9 Mon Sep 17 00:00:00 2001 From: oca-ci <oca-ci@odoo-community.org> Date: Wed, 9 Nov 2022 14:43:05 +0000 Subject: [PATCH 25/30] [UPD] Update crm_lead_firstname.pot --- crm_lead_firstname/README.rst | 10 ++++---- .../i18n/crm_lead_firstname.pot | 17 +------------ crm_lead_firstname/i18n/es_AR.po | 24 +++++++------------ .../static/description/index.html | 6 ++--- 4 files changed, 18 insertions(+), 39 deletions(-) diff --git a/crm_lead_firstname/README.rst b/crm_lead_firstname/README.rst index 9485ad3efe2..5be93d2c0b3 100644 --- a/crm_lead_firstname/README.rst +++ b/crm_lead_firstname/README.rst @@ -14,13 +14,13 @@ Firstname and Lastname in Leads :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github - :target: https://github.com/OCA/crm/tree/14.0/crm_lead_firstname + :target: https://github.com/OCA/crm/tree/15.0/crm_lead_firstname :alt: OCA/crm .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/crm-14-0/crm-14-0-crm_lead_firstname + :target: https://translation.odoo-community.org/projects/crm-15-0/crm-15-0-crm_lead_firstname :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/111/14.0 + :target: https://runbot.odoo-community.org/runbot/111/15.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -65,7 +65,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues <https://github.com/OCA/crm/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 <https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. +`feedback <https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. Do not contact contributors directly about support or help with technical issues. @@ -98,6 +98,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 <https://github.com/OCA/crm/tree/14.0/crm_lead_firstname>`_ project on GitHub. +This module is part of the `OCA/crm <https://github.com/OCA/crm/tree/15.0/crm_lead_firstname>`_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/crm_lead_firstname/i18n/crm_lead_firstname.pot b/crm_lead_firstname/i18n/crm_lead_firstname.pot index 60de4b53c0b..42b08d28385 100644 --- a/crm_lead_firstname/i18n/crm_lead_firstname.pot +++ b/crm_lead_firstname/i18n/crm_lead_firstname.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 14.0\n" +"Project-Id-Version: Odoo Server 15.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" @@ -18,11 +18,6 @@ msgstr "" msgid "Contact Name" msgstr "" -#. module: crm_lead_firstname -#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__display_name -msgid "Display Name" -msgstr "" - #. module: crm_lead_firstname #: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name msgid "First name" @@ -33,16 +28,6 @@ msgstr "" msgid "Firstname" msgstr "" -#. module: crm_lead_firstname -#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__id -msgid "ID" -msgstr "" - -#. module: crm_lead_firstname -#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead____last_update -msgid "Last Modified on" -msgstr "" - #. module: crm_lead_firstname #: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname msgid "Last name" diff --git a/crm_lead_firstname/i18n/es_AR.po b/crm_lead_firstname/i18n/es_AR.po index b74a0c19903..03af6dbb394 100644 --- a/crm_lead_firstname/i18n/es_AR.po +++ b/crm_lead_firstname/i18n/es_AR.po @@ -21,11 +21,6 @@ msgstr "" msgid "Contact Name" msgstr "Nombre del Contacto" -#. module: crm_lead_firstname -#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__display_name -msgid "Display Name" -msgstr "Mostrar Nombre" - #. module: crm_lead_firstname #: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name msgid "First name" @@ -36,16 +31,6 @@ msgstr "Primer nombre" msgid "Firstname" msgstr "Primer nombre" -#. module: crm_lead_firstname -#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__id -msgid "ID" -msgstr "ID" - -#. module: crm_lead_firstname -#: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead____last_update -msgid "Last Modified on" -msgstr "Última Modificación el" - #. module: crm_lead_firstname #: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_lastname msgid "Last name" @@ -60,3 +45,12 @@ msgstr "Apellido" #: model:ir.model,name:crm_lead_firstname.model_crm_lead msgid "Lead/Opportunity" msgstr "Iniciativa/Oportunidad" + +#~ msgid "Display Name" +#~ msgstr "Mostrar Nombre" + +#~ msgid "ID" +#~ msgstr "ID" + +#~ msgid "Last Modified on" +#~ msgstr "Última Modificación el" diff --git a/crm_lead_firstname/static/description/index.html b/crm_lead_firstname/static/description/index.html index 7165ec39c17..a524deb396c 100644 --- a/crm_lead_firstname/static/description/index.html +++ b/crm_lead_firstname/static/description/index.html @@ -367,7 +367,7 @@ <h1 class="title">Firstname and Lastname in Leads</h1> !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/crm/tree/14.0/crm_lead_firstname"><img alt="OCA/crm" src="https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/crm-14-0/crm-14-0-crm_lead_firstname"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/111/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> +<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/crm/tree/15.0/crm_lead_firstname"><img alt="OCA/crm" src="https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/crm-15-0/crm-15-0-crm_lead_firstname"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/111/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module extends the functionality of CRM leads to support split first and last name fields for contacts and allow you to port that information to and from partners. @@ -415,7 +415,7 @@ <h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/crm/issues">GitHub Issues</a>. 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 -<a class="reference external" href="https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> +<a class="reference external" href="https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> </div> <div class="section" id="credits"> @@ -442,7 +442,7 @@ <h2><a class="toc-backref" href="#id7">Maintainers</a></h2> <p>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.</p> -<p>This module is part of the <a class="reference external" href="https://github.com/OCA/crm/tree/14.0/crm_lead_firstname">OCA/crm</a> project on GitHub.</p> +<p>This module is part of the <a class="reference external" href="https://github.com/OCA/crm/tree/15.0/crm_lead_firstname">OCA/crm</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p> </div> </div> From 4bc918ddef2c8f85c4b1ff1d078f840bd64c60c4 Mon Sep 17 00:00:00 2001 From: Xander De Matteis <xander.dematteis@dynapps.be> Date: Tue, 22 Nov 2022 14:38:06 +0100 Subject: [PATCH 26/30] [MIG] crm_lead_firstname: Migration to 16.0 --- crm_lead_firstname/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm_lead_firstname/__manifest__.py b/crm_lead_firstname/__manifest__.py index 7d3ffbf8ccf..cbd2b0457fd 100644 --- a/crm_lead_firstname/__manifest__.py +++ b/crm_lead_firstname/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Firstname and Lastname in Leads", "summary": "Specify split names for contacts in leads", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "category": "Customer Relationship Management", "website": "https://github.com/OCA/crm", "author": "Tecnativa, Odoo Community Association (OCA)", From 6c3d62b4cda7cc84b40932b88e4bd909a50d9af4 Mon Sep 17 00:00:00 2001 From: Xander De Matteis <xander.dematteis@dynapps.be> Date: Fri, 25 Nov 2022 14:02:18 +0100 Subject: [PATCH 27/30] [FIX] Missing contact_lastname when quick create is used --- crm_lead_firstname/README.rst | 23 ++++++---- crm_lead_firstname/__manifest__.py | 2 +- .../i18n/crm_lead_firstname.pot | 2 +- .../static/description/index.html | 46 ++++++++++--------- crm_lead_firstname/views/crm_lead_view.xml | 9 ++++ 5 files changed, 48 insertions(+), 34 deletions(-) diff --git a/crm_lead_firstname/README.rst b/crm_lead_firstname/README.rst index 5be93d2c0b3..e49a1bc03d7 100644 --- a/crm_lead_firstname/README.rst +++ b/crm_lead_firstname/README.rst @@ -2,10 +2,13 @@ Firstname and Lastname in Leads =============================== -.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:d89299b802331ab36ebfb460f5956c82da92a8f9dc525a3a1e864dc20be898bb + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status @@ -14,16 +17,16 @@ Firstname and Lastname in Leads :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github - :target: https://github.com/OCA/crm/tree/15.0/crm_lead_firstname + :target: https://github.com/OCA/crm/tree/16.0/crm_lead_firstname :alt: OCA/crm .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/crm-15-0/crm-15-0-crm_lead_firstname + :target: https://translation.odoo-community.org/projects/crm-16-0/crm-16-0-crm_lead_firstname :alt: Translate me on Weblate -.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/111/15.0 - :alt: Try me on Runbot +.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png + :target: https://runboat.odoo-community.org/builds?repo=OCA/crm&target_branch=16.0 + :alt: Try me on Runboat -|badge1| |badge2| |badge3| |badge4| |badge5| +|badge1| |badge2| |badge3| |badge4| |badge5| This module extends the functionality of CRM leads to support split first and last name fields for contacts and allow you to port that information to and @@ -64,8 +67,8 @@ Bug Tracker Bugs are tracked on `GitHub Issues <https://github.com/OCA/crm/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 <https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. +If you spotted it first, help us to smash it by providing a detailed and welcomed +`feedback <https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. Do not contact contributors directly about support or help with technical issues. @@ -98,6 +101,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 <https://github.com/OCA/crm/tree/15.0/crm_lead_firstname>`_ project on GitHub. +This module is part of the `OCA/crm <https://github.com/OCA/crm/tree/16.0/crm_lead_firstname>`_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/crm_lead_firstname/__manifest__.py b/crm_lead_firstname/__manifest__.py index cbd2b0457fd..058e27f09d2 100644 --- a/crm_lead_firstname/__manifest__.py +++ b/crm_lead_firstname/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Firstname and Lastname in Leads", "summary": "Specify split names for contacts in leads", - "version": "16.0.1.0.0", + "version": "16.0.1.0.1", "category": "Customer Relationship Management", "website": "https://github.com/OCA/crm", "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/crm_lead_firstname/i18n/crm_lead_firstname.pot b/crm_lead_firstname/i18n/crm_lead_firstname.pot index 42b08d28385..7d79ee4ff60 100644 --- a/crm_lead_firstname/i18n/crm_lead_firstname.pot +++ b/crm_lead_firstname/i18n/crm_lead_firstname.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 15.0\n" +"Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" diff --git a/crm_lead_firstname/static/description/index.html b/crm_lead_firstname/static/description/index.html index a524deb396c..40862304501 100644 --- a/crm_lead_firstname/static/description/index.html +++ b/crm_lead_firstname/static/description/index.html @@ -1,20 +1,20 @@ -<?xml version="1.0" encoding="utf-8" ?> +<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> -<meta name="generator" content="Docutils 0.15.1: http://docutils.sourceforge.net/" /> +<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" /> <title>Firstname and Lastname in Leads</title> <style type="text/css"> /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $ +:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. -See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to +See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. */ @@ -366,8 +366,10 @@ <h1 class="title">Firstname and Lastname in Leads</h1> <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! source digest: sha256:d89299b802331ab36ebfb460f5956c82da92a8f9dc525a3a1e864dc20be898bb !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/crm/tree/15.0/crm_lead_firstname"><img alt="OCA/crm" src="https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/crm-15-0/crm-15-0-crm_lead_firstname"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/111/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> +<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/crm/tree/16.0/crm_lead_firstname"><img alt="OCA/crm" src="https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/crm-16-0/crm-16-0-crm_lead_firstname"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/crm&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p> <p>This module extends the functionality of CRM leads to support split first and last name fields for contacts and allow you to port that information to and from partners. @@ -378,26 +380,26 @@ <h1 class="title">Firstname and Lastname in Leads</h1> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> -<li><a class="reference internal" href="#installation" id="id1">Installation</a></li> -<li><a class="reference internal" href="#usage" id="id2">Usage</a></li> -<li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li> -<li><a class="reference internal" href="#credits" id="id4">Credits</a><ul> -<li><a class="reference internal" href="#authors" id="id5">Authors</a></li> -<li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li> -<li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li> +<li><a class="reference internal" href="#installation" id="toc-entry-1">Installation</a></li> +<li><a class="reference internal" href="#usage" id="toc-entry-2">Usage</a></li> +<li><a class="reference internal" href="#bug-tracker" id="toc-entry-3">Bug Tracker</a></li> +<li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul> +<li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li> +<li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li> +<li><a class="reference internal" href="#maintainers" id="toc-entry-7">Maintainers</a></li> </ul> </li> </ul> </div> <div class="section" id="installation"> -<h1><a class="toc-backref" href="#id1">Installation</a></h1> +<h1><a class="toc-backref" href="#toc-entry-1">Installation</a></h1> <p>To install this module, you need to:</p> <ul class="simple"> <li>Install <a class="reference external" href="https://github.com/OCA/partner-contact">OCA/partner-contact</a> repo.</li> </ul> </div> <div class="section" id="usage"> -<h1><a class="toc-backref" href="#id2">Usage</a></h1> +<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1> <p>To use this module, you need to:</p> <ul class="simple"> <li>Go to <em>CRM > Leads > Leads > Create</em>.</li> @@ -411,23 +413,23 @@ <h1><a class="toc-backref" href="#id2">Usage</a></h1> </ul> </div> <div class="section" id="bug-tracker"> -<h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1> +<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/crm/issues">GitHub Issues</a>. 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 -<a class="reference external" href="https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> +If you spotted it first, help us to smash it by providing a detailed and welcomed +<a class="reference external" href="https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> </div> <div class="section" id="credits"> -<h1><a class="toc-backref" href="#id4">Credits</a></h1> +<h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1> <div class="section" id="authors"> -<h2><a class="toc-backref" href="#id5">Authors</a></h2> +<h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2> <ul class="simple"> <li>Tecnativa</li> </ul> </div> <div class="section" id="contributors"> -<h2><a class="toc-backref" href="#id6">Contributors</a></h2> +<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2> <ul class="simple"> <li>Rafael Blasco</li> <li>Jairo Llopis</li> @@ -436,13 +438,13 @@ <h2><a class="toc-backref" href="#id6">Contributors</a></h2> </ul> </div> <div class="section" id="maintainers"> -<h2><a class="toc-backref" href="#id7">Maintainers</a></h2> +<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>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.</p> -<p>This module is part of the <a class="reference external" href="https://github.com/OCA/crm/tree/15.0/crm_lead_firstname">OCA/crm</a> project on GitHub.</p> +<p>This module is part of the <a class="reference external" href="https://github.com/OCA/crm/tree/16.0/crm_lead_firstname">OCA/crm</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p> </div> </div> diff --git a/crm_lead_firstname/views/crm_lead_view.xml b/crm_lead_firstname/views/crm_lead_view.xml index bb7d2e0acf5..b7a5ebe95ef 100644 --- a/crm_lead_firstname/views/crm_lead_view.xml +++ b/crm_lead_firstname/views/crm_lead_view.xml @@ -36,4 +36,13 @@ </xpath> </field> </record> + <record id="quick_create_opportunity_form" model="ir.ui.view"> + <field name="inherit_id" ref="crm.quick_create_opportunity_form" /> + <field name="model">crm.lead</field> + <field name="arch" type="xml"> + <xpath expr="//field[@name='contact_name']" position="after"> + <field name="contact_lastname" invisible="1" /> + </xpath> + </field> + </record> </odoo> From 4a60ab4fbbe9545140f7a663e3a2a5572cfaa359 Mon Sep 17 00:00:00 2001 From: luis-ron <luis.ron@sygel.es> Date: Tue, 6 Jun 2023 11:44:39 +0000 Subject: [PATCH 28/30] Translated using Weblate (Spanish) Currently translated at 100.0% (6 of 6 strings) Translation: crm-16.0/crm-16.0-crm_lead_firstname Translate-URL: https://translation.odoo-community.org/projects/crm-16-0/crm-16-0-crm_lead_firstname/es/ --- crm_lead_firstname/i18n/es.po | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/crm_lead_firstname/i18n/es.po b/crm_lead_firstname/i18n/es.po index 32e4539675e..e2ae4923668 100644 --- a/crm_lead_firstname/i18n/es.po +++ b/crm_lead_firstname/i18n/es.po @@ -7,15 +7,15 @@ msgstr "" "Project-Id-Version: Odoo Server 8.0\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2016-02-15 17:25+0000\n" -"PO-Revision-Date: 2016-02-15 18:27+0100\n" -"Last-Translator: <>\n" +"PO-Revision-Date: 2023-06-06 14:10+0000\n" +"Last-Translator: luis-ron <luis.ron@sygel.es>\n" "Language-Team: \n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: \n" -"X-Generator: Poedit 1.8.6\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 4.17\n" #. module: crm_lead_firstname #: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form @@ -24,9 +24,8 @@ msgstr "Nombre del contacto" #. module: crm_lead_firstname #: model:ir.model.fields,field_description:crm_lead_firstname.field_crm_lead__contact_name -#, fuzzy msgid "First name" -msgstr "Nombre de pila" +msgstr "Nombre" #. module: crm_lead_firstname #: model_terms:ir.ui.view,arch_db:crm_lead_firstname.crm_lead_view_form From c8916de3abbe9b6ee24acbb74dec6bfe73dff0f8 Mon Sep 17 00:00:00 2001 From: Carlos Lopez <celm1990@gmail.com> Date: Fri, 12 Jan 2024 14:11:29 -0500 Subject: [PATCH 29/30] [IMP] crm_lead_firstname: pre-commit auto fixes --- crm_lead_firstname/README.rst | 59 ++++++++++--------- crm_lead_firstname/pyproject.toml | 3 + crm_lead_firstname/readme/CONTRIBUTORS.md | 4 ++ crm_lead_firstname/readme/CONTRIBUTORS.rst | 4 -- crm_lead_firstname/readme/DESCRIPTION.md | 7 +++ crm_lead_firstname/readme/DESCRIPTION.rst | 7 --- crm_lead_firstname/readme/INSTALL.md | 4 ++ crm_lead_firstname/readme/INSTALL.rst | 3 - crm_lead_firstname/readme/USAGE.md | 11 ++++ crm_lead_firstname/readme/USAGE.rst | 10 ---- .../static/description/index.html | 31 +++++----- 11 files changed, 77 insertions(+), 66 deletions(-) create mode 100644 crm_lead_firstname/pyproject.toml create mode 100644 crm_lead_firstname/readme/CONTRIBUTORS.md delete mode 100644 crm_lead_firstname/readme/CONTRIBUTORS.rst create mode 100644 crm_lead_firstname/readme/DESCRIPTION.md delete mode 100644 crm_lead_firstname/readme/DESCRIPTION.rst create mode 100644 crm_lead_firstname/readme/INSTALL.md delete mode 100644 crm_lead_firstname/readme/INSTALL.rst create mode 100644 crm_lead_firstname/readme/USAGE.md delete mode 100644 crm_lead_firstname/readme/USAGE.rst diff --git a/crm_lead_firstname/README.rst b/crm_lead_firstname/README.rst index e49a1bc03d7..530cde72d40 100644 --- a/crm_lead_firstname/README.rst +++ b/crm_lead_firstname/README.rst @@ -17,24 +17,24 @@ Firstname and Lastname in Leads :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/16.0/crm_lead_firstname + :target: https://github.com/OCA/crm/tree/17.0/crm_lead_firstname :alt: OCA/crm .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/crm-16-0/crm-16-0-crm_lead_firstname + :target: https://translation.odoo-community.org/projects/crm-17-0/crm-17-0-crm_lead_firstname :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/crm&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/crm&target_branch=17.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -This module extends the functionality of CRM leads to support split first and -last name fields for contacts and allow you to port that information to and -from partners. -Since leads are expected to create partners only when needed and after -information is correctly set up, in leads there is no inverse logic to -transform the old single name in the new split names automatically. The old -single name will simply be the firstname now. +This module extends the functionality of CRM leads to support split +first and last name fields for contacts and allow you to port that +information to and from partners. Since leads are expected to create +partners only when needed and after information is correctly set up, in +leads there is no inverse logic to transform the old single name in the +new split names automatically. The old single name will simply be the +firstname now. **Table of contents** @@ -46,21 +46,24 @@ Installation To install this module, you need to: -* Install `OCA/partner-contact <https://github.com/OCA/partner-contact>`_ repo. +- Install + `OCA/partner-contact <https://github.com/OCA/partner-contact>`__ + repo. Usage ===== To use this module, you need to: -* Go to *CRM > Leads > Leads > Create*. -* You have the new split fields *Firstname* and *Lastname*. Fill them. -* Press *Convert to Opportunity*. -* In *Related Customer* choose *Create a new customer*. -* Press *Create Opportunity*. -* In the new opportunity, go to *Followup* tab. There are the new fields too. -* If you go to the partner you just created, you will see that its first and - last names match those in the lead. +- Go to *CRM > Leads > Leads > Create*. +- You have the new split fields *Firstname* and *Lastname*. Fill them. +- Press *Convert to Opportunity*. +- In *Related Customer* choose *Create a new customer*. +- Press *Create Opportunity*. +- In the new opportunity, go to *Followup* tab. There are the new + fields too. +- If you go to the partner you just created, you will see that its + first and last names match those in the lead. Bug Tracker =========== @@ -68,7 +71,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues <https://github.com/OCA/crm/issues>`_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback <https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. +`feedback <https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. Do not contact contributors directly about support or help with technical issues. @@ -76,20 +79,20 @@ Credits ======= Authors -~~~~~~~ +------- * Tecnativa Contributors -~~~~~~~~~~~~ +------------ -* Rafael Blasco -* Jairo Llopis -* Raf Ven <raf.ven@dynapps.be> -* Nikos Tsirintanis <ntsirintanis@therp.nl> +- Rafael Blasco +- Jairo Llopis +- Raf Ven <raf.ven@dynapps.be> +- Nikos Tsirintanis <ntsirintanis@therp.nl> Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -101,6 +104,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 <https://github.com/OCA/crm/tree/16.0/crm_lead_firstname>`_ project on GitHub. +This module is part of the `OCA/crm <https://github.com/OCA/crm/tree/17.0/crm_lead_firstname>`_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/crm_lead_firstname/pyproject.toml b/crm_lead_firstname/pyproject.toml new file mode 100644 index 00000000000..4231d0cccb3 --- /dev/null +++ b/crm_lead_firstname/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/crm_lead_firstname/readme/CONTRIBUTORS.md b/crm_lead_firstname/readme/CONTRIBUTORS.md new file mode 100644 index 00000000000..d5d6d2c16f0 --- /dev/null +++ b/crm_lead_firstname/readme/CONTRIBUTORS.md @@ -0,0 +1,4 @@ +- Rafael Blasco +- Jairo Llopis +- Raf Ven \<<raf.ven@dynapps.be>\> +- Nikos Tsirintanis \<<ntsirintanis@therp.nl>\> diff --git a/crm_lead_firstname/readme/CONTRIBUTORS.rst b/crm_lead_firstname/readme/CONTRIBUTORS.rst deleted file mode 100644 index 72e64124b50..00000000000 --- a/crm_lead_firstname/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,4 +0,0 @@ -* Rafael Blasco -* Jairo Llopis -* Raf Ven <raf.ven@dynapps.be> -* Nikos Tsirintanis <ntsirintanis@therp.nl> diff --git a/crm_lead_firstname/readme/DESCRIPTION.md b/crm_lead_firstname/readme/DESCRIPTION.md new file mode 100644 index 00000000000..639f371cb1b --- /dev/null +++ b/crm_lead_firstname/readme/DESCRIPTION.md @@ -0,0 +1,7 @@ +This module extends the functionality of CRM leads to support split +first and last name fields for contacts and allow you to port that +information to and from partners. Since leads are expected to create +partners only when needed and after information is correctly set up, in +leads there is no inverse logic to transform the old single name in the +new split names automatically. The old single name will simply be the +firstname now. diff --git a/crm_lead_firstname/readme/DESCRIPTION.rst b/crm_lead_firstname/readme/DESCRIPTION.rst deleted file mode 100644 index 7e3a4d6e7d1..00000000000 --- a/crm_lead_firstname/readme/DESCRIPTION.rst +++ /dev/null @@ -1,7 +0,0 @@ -This module extends the functionality of CRM leads to support split first and -last name fields for contacts and allow you to port that information to and -from partners. -Since leads are expected to create partners only when needed and after -information is correctly set up, in leads there is no inverse logic to -transform the old single name in the new split names automatically. The old -single name will simply be the firstname now. diff --git a/crm_lead_firstname/readme/INSTALL.md b/crm_lead_firstname/readme/INSTALL.md new file mode 100644 index 00000000000..582af6c75be --- /dev/null +++ b/crm_lead_firstname/readme/INSTALL.md @@ -0,0 +1,4 @@ +To install this module, you need to: + +- Install [OCA/partner-contact](https://github.com/OCA/partner-contact) + repo. diff --git a/crm_lead_firstname/readme/INSTALL.rst b/crm_lead_firstname/readme/INSTALL.rst deleted file mode 100644 index 0cbfe9c472b..00000000000 --- a/crm_lead_firstname/readme/INSTALL.rst +++ /dev/null @@ -1,3 +0,0 @@ -To install this module, you need to: - -* Install `OCA/partner-contact <https://github.com/OCA/partner-contact>`_ repo. diff --git a/crm_lead_firstname/readme/USAGE.md b/crm_lead_firstname/readme/USAGE.md new file mode 100644 index 00000000000..4353a839298 --- /dev/null +++ b/crm_lead_firstname/readme/USAGE.md @@ -0,0 +1,11 @@ +To use this module, you need to: + +- Go to *CRM \> Leads \> Leads \> Create*. +- You have the new split fields *Firstname* and *Lastname*. Fill them. +- Press *Convert to Opportunity*. +- In *Related Customer* choose *Create a new customer*. +- Press *Create Opportunity*. +- In the new opportunity, go to *Followup* tab. There are the new fields + too. +- If you go to the partner you just created, you will see that its first + and last names match those in the lead. diff --git a/crm_lead_firstname/readme/USAGE.rst b/crm_lead_firstname/readme/USAGE.rst deleted file mode 100644 index 6930c1e4aed..00000000000 --- a/crm_lead_firstname/readme/USAGE.rst +++ /dev/null @@ -1,10 +0,0 @@ -To use this module, you need to: - -* Go to *CRM > Leads > Leads > Create*. -* You have the new split fields *Firstname* and *Lastname*. Fill them. -* Press *Convert to Opportunity*. -* In *Related Customer* choose *Create a new customer*. -* Press *Create Opportunity*. -* In the new opportunity, go to *Followup* tab. There are the new fields too. -* If you go to the partner you just created, you will see that its first and - last names match those in the lead. diff --git a/crm_lead_firstname/static/description/index.html b/crm_lead_firstname/static/description/index.html index 40862304501..8db2afa1cf0 100644 --- a/crm_lead_firstname/static/description/index.html +++ b/crm_lead_firstname/static/description/index.html @@ -369,14 +369,14 @@ <h1 class="title">Firstname and Lastname in Leads</h1> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:d89299b802331ab36ebfb460f5956c82da92a8f9dc525a3a1e864dc20be898bb !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/crm/tree/16.0/crm_lead_firstname"><img alt="OCA/crm" src="https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/crm-16-0/crm-16-0-crm_lead_firstname"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/crm&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p> -<p>This module extends the functionality of CRM leads to support split first and -last name fields for contacts and allow you to port that information to and -from partners. -Since leads are expected to create partners only when needed and after -information is correctly set up, in leads there is no inverse logic to -transform the old single name in the new split names automatically. The old -single name will simply be the firstname now.</p> +<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/crm/tree/17.0/crm_lead_firstname"><img alt="OCA/crm" src="https://img.shields.io/badge/github-OCA%2Fcrm-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/crm-17-0/crm-17-0-crm_lead_firstname"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/crm&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p> +<p>This module extends the functionality of CRM leads to support split +first and last name fields for contacts and allow you to port that +information to and from partners. Since leads are expected to create +partners only when needed and after information is correctly set up, in +leads there is no inverse logic to transform the old single name in the +new split names automatically. The old single name will simply be the +firstname now.</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> @@ -395,7 +395,9 @@ <h1 class="title">Firstname and Lastname in Leads</h1> <h1><a class="toc-backref" href="#toc-entry-1">Installation</a></h1> <p>To install this module, you need to:</p> <ul class="simple"> -<li>Install <a class="reference external" href="https://github.com/OCA/partner-contact">OCA/partner-contact</a> repo.</li> +<li>Install +<a class="reference external" href="https://github.com/OCA/partner-contact">OCA/partner-contact</a> +repo.</li> </ul> </div> <div class="section" id="usage"> @@ -407,9 +409,10 @@ <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1> <li>Press <em>Convert to Opportunity</em>.</li> <li>In <em>Related Customer</em> choose <em>Create a new customer</em>.</li> <li>Press <em>Create Opportunity</em>.</li> -<li>In the new opportunity, go to <em>Followup</em> tab. There are the new fields too.</li> -<li>If you go to the partner you just created, you will see that its first and -last names match those in the lead.</li> +<li>In the new opportunity, go to <em>Followup</em> tab. There are the new +fields too.</li> +<li>If you go to the partner you just created, you will see that its +first and last names match those in the lead.</li> </ul> </div> <div class="section" id="bug-tracker"> @@ -417,7 +420,7 @@ <h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/crm/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -<a class="reference external" href="https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> +<a class="reference external" href="https://github.com/OCA/crm/issues/new?body=module:%20crm_lead_firstname%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> </div> <div class="section" id="credits"> @@ -444,7 +447,7 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2> <p>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.</p> -<p>This module is part of the <a class="reference external" href="https://github.com/OCA/crm/tree/16.0/crm_lead_firstname">OCA/crm</a> project on GitHub.</p> +<p>This module is part of the <a class="reference external" href="https://github.com/OCA/crm/tree/17.0/crm_lead_firstname">OCA/crm</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p> </div> </div> From 12974233e99717fc5dc8f8f775008c2247afb48f Mon Sep 17 00:00:00 2001 From: Carlos Lopez <celm1990@gmail.com> Date: Fri, 12 Jan 2024 14:17:11 -0500 Subject: [PATCH 30/30] [MIG] crm_lead_firstname: Migration to 17.0 --- crm_lead_firstname/__manifest__.py | 2 +- crm_lead_firstname/models/crm_lead.py | 4 ++-- crm_lead_firstname/tests/test_crm_lead.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crm_lead_firstname/__manifest__.py b/crm_lead_firstname/__manifest__.py index 058e27f09d2..5b19b824711 100644 --- a/crm_lead_firstname/__manifest__.py +++ b/crm_lead_firstname/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Firstname and Lastname in Leads", "summary": "Specify split names for contacts in leads", - "version": "16.0.1.0.1", + "version": "17.0.1.0.0", "category": "Customer Relationship Management", "website": "https://github.com/OCA/crm", "author": "Tecnativa, Odoo Community Association (OCA)", diff --git a/crm_lead_firstname/models/crm_lead.py b/crm_lead_firstname/models/crm_lead.py index 94b4c748822..8cf7862c53d 100644 --- a/crm_lead_firstname/models/crm_lead.py +++ b/crm_lead_firstname/models/crm_lead.py @@ -12,7 +12,7 @@ class CrmLead(models.Model): def _prepare_customer_values(self, partner_name, is_company, parent_id=False): """Ensure first and last names of contact match those in lead.""" - lead_partner_data = super(CrmLead, self)._prepare_customer_values( + lead_partner_data = super()._prepare_customer_values( partner_name, is_company, parent_id ) if not is_company: @@ -28,7 +28,7 @@ def _prepare_customer_values(self, partner_name, is_company, parent_id=False): def _prepare_values_from_partner(self, partner): """Recover first and last names from partner if available.""" - result = super(CrmLead, self)._prepare_values_from_partner(partner) + result = super()._prepare_values_from_partner(partner) if partner: if not partner.is_company: diff --git a/crm_lead_firstname/tests/test_crm_lead.py b/crm_lead_firstname/tests/test_crm_lead.py index 2ef120225b7..b1b4026c585 100644 --- a/crm_lead_firstname/tests/test_crm_lead.py +++ b/crm_lead_firstname/tests/test_crm_lead.py @@ -7,7 +7,7 @@ class FirstNameCase(TransactionCase): @classmethod def setUpClass(cls): - super(FirstNameCase, cls).setUpClass() + super().setUpClass() cls.env = cls.env(context=dict(cls.env.context, tracking_disable=True)) cls.lead_model = cls.env["crm.lead"] cls.partner_model = cls.env["res.partner"]