From 4ff0c9897876318fd7c3670fbe389d12dd4cfbe8 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Thu, 24 Nov 2016 23:52:04 +0100 Subject: [PATCH 1/6] partner_contact_lang: Manage language in contacts (#302) =========================== Manage language in contacts =========================== Odoo by default propagate language field to the created contacts from their form, but it doesn't allow to change it once created. This module fills this gap, and also provides other facilities for the contact language management: * Put the language of the parent company when the contact doesn't have a language and this parent company is assigned. * When the company changes the language, it fills with the same language all the contacts that don't have any. Usage ===== Go to any partner that is a company and has contacts. Click on one contact and you will be able to edit the language. --- partner_contact_lang/README.rst | 63 ++ partner_contact_lang/__init__.py | 4 + partner_contact_lang/__openerp__.py | 20 + partner_contact_lang/models/__init__.py | 4 + partner_contact_lang/models/res_partner.py | 42 + .../static/description/icon.png | Bin 0 -> 14414 bytes .../static/description/icon.svg | 760 ++++++++++++++++++ partner_contact_lang/tests/__init__.py | 4 + .../tests/test_partner_contact_lang.py | 29 + .../views/res_partner_view.xml | 16 + 10 files changed, 942 insertions(+) create mode 100644 partner_contact_lang/README.rst create mode 100644 partner_contact_lang/__init__.py create mode 100644 partner_contact_lang/__openerp__.py create mode 100644 partner_contact_lang/models/__init__.py create mode 100644 partner_contact_lang/models/res_partner.py create mode 100644 partner_contact_lang/static/description/icon.png create mode 100644 partner_contact_lang/static/description/icon.svg create mode 100644 partner_contact_lang/tests/__init__.py create mode 100644 partner_contact_lang/tests/test_partner_contact_lang.py create mode 100644 partner_contact_lang/views/res_partner_view.xml diff --git a/partner_contact_lang/README.rst b/partner_contact_lang/README.rst new file mode 100644 index 000000000..ecab7d3d5 --- /dev/null +++ b/partner_contact_lang/README.rst @@ -0,0 +1,63 @@ +.. 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 + +=========================== +Manage language in contacts +=========================== + +Odoo by default propagate language field to the created contacts from their +form, but it doesn't allow to change it once created. + +This module fills this gap, and also provides other facilities for the +contact language management: + +* Put the language of the parent company when the contact doesn't have a + language and this parent company is assigned. +* When the company changes the language, it fills with the same language all + the contacts that don't have any. + +Usage +===== + +Go to any partner that is a company and has contacts. Click on one contact +and you will be able to edit the language. + +.. 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 +`_. 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. + +Credits +======= + +Contributors +------------ + +* Pedro M. Baeza + +Icon +---- +* Original Odoo icons. + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: http://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/partner_contact_lang/__init__.py b/partner_contact_lang/__init__.py new file mode 100644 index 000000000..a77a6fcbc --- /dev/null +++ b/partner_contact_lang/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import models diff --git a/partner_contact_lang/__openerp__.py b/partner_contact_lang/__openerp__.py new file mode 100644 index 000000000..6d154ab4d --- /dev/null +++ b/partner_contact_lang/__openerp__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# © 2016 Pedro M. Baeza +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +{ + 'name': 'Manage language in contacts', + 'version': '8.0.1.0.0', + 'category': 'Partner Management', + 'license': 'AGPL-3', + 'author': 'Tecnativa,' + 'Odoo Community Association (OCA)', + 'website': 'https://www.tecnativa.com', + 'depends': [ + 'base', + ], + 'data': [ + 'views/res_partner_view.xml', + ], + 'installable': True +} diff --git a/partner_contact_lang/models/__init__.py b/partner_contact_lang/models/__init__.py new file mode 100644 index 000000000..e0345afe7 --- /dev/null +++ b/partner_contact_lang/models/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import res_partner diff --git a/partner_contact_lang/models/res_partner.py b/partner_contact_lang/models/res_partner.py new file mode 100644 index 000000000..23d6e02f9 --- /dev/null +++ b/partner_contact_lang/models/res_partner.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +# © 2016 Pedro M. Baeza +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openerp import api, models + + +class ResPartner(models.Model): + _inherit = 'res.partner' + + @api.multi + def write(self, vals): + """Propagate a language change in the partner to the child contacts.""" + res = super(ResPartner, self).write(vals) + if vals.get('lang'): + childs = self.search([ + ('id', 'child_of', self.ids), + ('lang', '=', False), + ]) + if childs: + childs.write({'lang': vals['lang']}) + return res + + @api.multi + def onchange_address(self, use_parent_address, parent_id): + """Change language if the parent company changes and there's no + language defined yet""" + res = super(ResPartner, self).onchange_address( + use_parent_address, parent_id) + if parent_id and self.parent_id.id != parent_id and not self.lang: + parent = self.browse(parent_id) + val = res.setdefault('value', {}) + val['lang'] = parent.lang + return res + + @api.multi + @api.onchange('lang') + def onchange_lang(self): + if self.lang: + childs = self.child_ids.filtered(lambda x: not x.lang) + for child in childs: + child.lang = self.lang diff --git a/partner_contact_lang/static/description/icon.png b/partner_contact_lang/static/description/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..90980f18432272ce0ec400c00f35bfeecf15f54b GIT binary patch literal 14414 zcmV-UII+ixP)Sb_q&rigr|Mr$Ft8qE40p5rQ}Ug_%K`k9Ed&(;50~NV4DM+9o`c$6NwH$ z4@L*VYs6S#wnj>7fF9$q=|0Gv9x}iO7^hC%5Ld3Pe#k;RUgpKel*%8IQl0{^1+Ze~ z42QXv1SX;$Od5b@whL?QUe~vE-*yBg-;|_!X5Jwpey>|SWPlGaCX;hgi0OF(K9lG9 zW24c^>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Y0587yV*cjadw)AC)PJ|OI{wsnT;`dNe1$`o!b1ioAQB+q z;LH-j_lqrMIsiJ__RL79ccc@+iDe`}wCxd0t8^d)1HP-cUu}x3K@R~0D(}3MiA1k100b-?(d&$8{?|T zi%boA?)kvU(xyxHmGFxyB8Vf;C;=O!Hf_mQ9-?pq5j?c(;lyRIp~C_PoxAii92St$ zq3EDLLldaPW&WFRQ9Kg<{=zqk4E>`Jbh)!6+z~?T3vN1(ZgOl0pNw55}CmNM_3l2QM85$gWs3TDerbAK@jYi#3HUwQW4SQ8-l*H zTO$x70+A!02@=VBYAh4{aR5nDk&ED2;<}}thd)!^ZXGY>W_?7vQ{`gGl2%~ zZ1?$wz6Oe~xf9Oa5j6s7j*ECQz=U4gU+c8_$oBU3-AMr8DF8pI2$Tbe4wvu&B1cou zl>>7p`tsSM{UFFG9=A&Dt8i_kQdDy3Ll1XxLh4KVjt;1v*xA6do)CZu(keao(DO(> zVi?NB;9rX?=s&OY9m|IRFaDi|KMP11BqidzhUu}XRS@qYsTa@A!xg)2JqQUnhqp~< zDpM|qN{gp{8G7F~)Mr1tGkWEO7h?8_Ku!#}9h;unxq_4Ek8|xX zzCY+QKq12j-aHNWLBuN|fF*tDy5sqz{zBI?;rks7omsPX_BBdP^Ickmo;ozv$|9c`SQlV|F5mStyf7oA@IfAV?4 UY(&}0J^%m!07*qoM6N<$g7qn`qyPW_ literal 0 HcmV?d00001 diff --git a/partner_contact_lang/static/description/icon.svg b/partner_contact_lang/static/description/icon.svg new file mode 100644 index 000000000..95b972591 --- /dev/null +++ b/partner_contact_lang/static/description/icon.svg @@ -0,0 +1,760 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + diff --git a/partner_contact_lang/tests/__init__.py b/partner_contact_lang/tests/__init__.py new file mode 100644 index 000000000..410aa95b3 --- /dev/null +++ b/partner_contact_lang/tests/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from . import test_partner_contact_lang diff --git a/partner_contact_lang/tests/test_partner_contact_lang.py b/partner_contact_lang/tests/test_partner_contact_lang.py new file mode 100644 index 000000000..273958854 --- /dev/null +++ b/partner_contact_lang/tests/test_partner_contact_lang.py @@ -0,0 +1,29 @@ +# -*- coding: utf-8 -*- +# © 2016 Pedro M. Baeza +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from openerp.tests import common + + +class TestPartnerContactLang(common.TransactionCase): + def setUp(self): + super(TestPartnerContactLang, self).setUp() + self.ResPartner = self.env['res.partner'] + self.partner = self.ResPartner.create({ + 'name': 'Partner test', + 'lang': 'en_US', + }) + self.contact = self.ResPartner.create({ + 'name': 'Contact test', + 'lang': False, + 'parent_id': self.partner.id, + }) + + def test_onchange_parent_id(self): + self.contact.parent_id = False + res = self.contact.onchange_address(False, self.partner.id) + self.assertEqual(res.get('value', {}).get('lang'), 'en_US') + + def test_write_parent_lang(self): + self.partner.lang = 'en_US' + self.assertEqual(self.contact.lang, 'en_US') diff --git a/partner_contact_lang/views/res_partner_view.xml b/partner_contact_lang/views/res_partner_view.xml new file mode 100644 index 000000000..1213a38b9 --- /dev/null +++ b/partner_contact_lang/views/res_partner_view.xml @@ -0,0 +1,16 @@ + + + + + + res.partner + + + + + + + + + + From 25b3b11e1271072257064f48cf731601ab15899f Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Tue, 29 Nov 2016 08:31:02 -0500 Subject: [PATCH 2/6] OCA Transbot updated translations from Transifex --- partner_contact_lang/i18n/sl.po | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 partner_contact_lang/i18n/sl.po diff --git a/partner_contact_lang/i18n/sl.po b/partner_contact_lang/i18n/sl.po new file mode 100644 index 000000000..f922deb67 --- /dev/null +++ b/partner_contact_lang/i18n/sl.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# Matjaž Mozetič , 2016 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-11-25 03:42+0000\n" +"PO-Revision-Date: 2016-11-25 03:42+0000\n" +"Last-Translator: Matjaž Mozetič , 2016\n" +"Language-Team: Slovenian (https://www.transifex.com/oca/teams/23907/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: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partner" From f1037b12ab756db41133b93d4641ca1b46aac6f4 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Tue, 6 Dec 2016 14:42:58 +0100 Subject: [PATCH 3/6] [MIG] partner_contact_lang: Migration to 9.0 --- partner_contact_lang/README.rst | 4 ++-- partner_contact_lang/__openerp__.py | 4 ++-- partner_contact_lang/models/res_partner.py | 5 ++--- partner_contact_lang/tests/test_partner_contact_lang.py | 2 +- partner_contact_lang/views/res_partner_view.xml | 9 +++++---- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/partner_contact_lang/README.rst b/partner_contact_lang/README.rst index ecab7d3d5..0522bafff 100644 --- a/partner_contact_lang/README.rst +++ b/partner_contact_lang/README.rst @@ -25,7 +25,7 @@ and you will be able to edit the language. .. 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/134/9.0 Bug Tracker =========== @@ -52,7 +52,7 @@ Maintainer .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association - :target: http://odoo-community.org + :target: https://odoo-community.org This module is maintained by the OCA. diff --git a/partner_contact_lang/__openerp__.py b/partner_contact_lang/__openerp__.py index 6d154ab4d..6567618a4 100644 --- a/partner_contact_lang/__openerp__.py +++ b/partner_contact_lang/__openerp__.py @@ -4,7 +4,7 @@ { 'name': 'Manage language in contacts', - 'version': '8.0.1.0.0', + 'version': '9.0.1.0.0', 'category': 'Partner Management', 'license': 'AGPL-3', 'author': 'Tecnativa,' @@ -16,5 +16,5 @@ 'data': [ 'views/res_partner_view.xml', ], - 'installable': True + 'installable': True, } diff --git a/partner_contact_lang/models/res_partner.py b/partner_contact_lang/models/res_partner.py index 23d6e02f9..0b6b612c1 100644 --- a/partner_contact_lang/models/res_partner.py +++ b/partner_contact_lang/models/res_partner.py @@ -22,11 +22,10 @@ class ResPartner(models.Model): return res @api.multi - def onchange_address(self, use_parent_address, parent_id): + def onchange_parent_id(self, parent_id): """Change language if the parent company changes and there's no language defined yet""" - res = super(ResPartner, self).onchange_address( - use_parent_address, parent_id) + res = super(ResPartner, self).onchange_parent_id(parent_id) if parent_id and self.parent_id.id != parent_id and not self.lang: parent = self.browse(parent_id) val = res.setdefault('value', {}) diff --git a/partner_contact_lang/tests/test_partner_contact_lang.py b/partner_contact_lang/tests/test_partner_contact_lang.py index 273958854..945245198 100644 --- a/partner_contact_lang/tests/test_partner_contact_lang.py +++ b/partner_contact_lang/tests/test_partner_contact_lang.py @@ -21,7 +21,7 @@ class TestPartnerContactLang(common.TransactionCase): def test_onchange_parent_id(self): self.contact.parent_id = False - res = self.contact.onchange_address(False, self.partner.id) + res = self.contact.onchange_parent_id(self.partner.id) self.assertEqual(res.get('value', {}).get('lang'), 'en_US') def test_write_parent_lang(self): diff --git a/partner_contact_lang/views/res_partner_view.xml b/partner_contact_lang/views/res_partner_view.xml index 1213a38b9..4412c82af 100644 --- a/partner_contact_lang/views/res_partner_view.xml +++ b/partner_contact_lang/views/res_partner_view.xml @@ -1,16 +1,17 @@ - - + res.partner + 9999 + + - - + From 81789c67d6ce30ca63415cea7c44c67fac5a9ce8 Mon Sep 17 00:00:00 2001 From: OCA Transbot Date: Fri, 27 Jan 2017 23:26:58 -0500 Subject: [PATCH 4/6] OCA Transbot updated translations from Transifex --- partner_contact_lang/i18n/am.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/ar.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/bg.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/bs.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/ca.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/cs.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/da.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/de.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/el_GR.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/en_GB.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/es.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/es_CR.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/es_EC.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/es_MX.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/es_VE.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/et.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/eu.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/fi.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/fr.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/fr_CA.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/fr_CH.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/gl.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/hr.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/hr_HR.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/hu.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/it.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/ja.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/lt.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/lv.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/mk.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/mn.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/nb.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/nb_NO.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/nl.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/nl_BE.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/pl.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/pt.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/pt_BR.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/pt_PT.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/ro.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/ru.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/sk.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/sr@latin.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/sv.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/th.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/tr.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/tr_TR.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/vi.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/zh_CN.po | 24 ++++++++++++++++++++++++ partner_contact_lang/i18n/zh_TW.po | 24 ++++++++++++++++++++++++ 50 files changed, 1200 insertions(+) create mode 100644 partner_contact_lang/i18n/am.po create mode 100644 partner_contact_lang/i18n/ar.po create mode 100644 partner_contact_lang/i18n/bg.po create mode 100644 partner_contact_lang/i18n/bs.po create mode 100644 partner_contact_lang/i18n/ca.po create mode 100644 partner_contact_lang/i18n/cs.po create mode 100644 partner_contact_lang/i18n/da.po create mode 100644 partner_contact_lang/i18n/de.po create mode 100644 partner_contact_lang/i18n/el_GR.po create mode 100644 partner_contact_lang/i18n/en_GB.po create mode 100644 partner_contact_lang/i18n/es.po create mode 100644 partner_contact_lang/i18n/es_CR.po create mode 100644 partner_contact_lang/i18n/es_EC.po create mode 100644 partner_contact_lang/i18n/es_MX.po create mode 100644 partner_contact_lang/i18n/es_VE.po create mode 100644 partner_contact_lang/i18n/et.po create mode 100644 partner_contact_lang/i18n/eu.po create mode 100644 partner_contact_lang/i18n/fi.po create mode 100644 partner_contact_lang/i18n/fr.po create mode 100644 partner_contact_lang/i18n/fr_CA.po create mode 100644 partner_contact_lang/i18n/fr_CH.po create mode 100644 partner_contact_lang/i18n/gl.po create mode 100644 partner_contact_lang/i18n/hr.po create mode 100644 partner_contact_lang/i18n/hr_HR.po create mode 100644 partner_contact_lang/i18n/hu.po create mode 100644 partner_contact_lang/i18n/it.po create mode 100644 partner_contact_lang/i18n/ja.po create mode 100644 partner_contact_lang/i18n/lt.po create mode 100644 partner_contact_lang/i18n/lv.po create mode 100644 partner_contact_lang/i18n/mk.po create mode 100644 partner_contact_lang/i18n/mn.po create mode 100644 partner_contact_lang/i18n/nb.po create mode 100644 partner_contact_lang/i18n/nb_NO.po create mode 100644 partner_contact_lang/i18n/nl.po create mode 100644 partner_contact_lang/i18n/nl_BE.po create mode 100644 partner_contact_lang/i18n/pl.po create mode 100644 partner_contact_lang/i18n/pt.po create mode 100644 partner_contact_lang/i18n/pt_BR.po create mode 100644 partner_contact_lang/i18n/pt_PT.po create mode 100644 partner_contact_lang/i18n/ro.po create mode 100644 partner_contact_lang/i18n/ru.po create mode 100644 partner_contact_lang/i18n/sk.po create mode 100644 partner_contact_lang/i18n/sr@latin.po create mode 100644 partner_contact_lang/i18n/sv.po create mode 100644 partner_contact_lang/i18n/th.po create mode 100644 partner_contact_lang/i18n/tr.po create mode 100644 partner_contact_lang/i18n/tr_TR.po create mode 100644 partner_contact_lang/i18n/vi.po create mode 100644 partner_contact_lang/i18n/zh_CN.po create mode 100644 partner_contact_lang/i18n/zh_TW.po diff --git a/partner_contact_lang/i18n/am.po b/partner_contact_lang/i18n/am.po new file mode 100644 index 000000000..9f174f0d9 --- /dev/null +++ b/partner_contact_lang/i18n/am.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Amharic (https://www.transifex.com/oca/teams/23907/am/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: am\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "ተባባሪ" diff --git a/partner_contact_lang/i18n/ar.po b/partner_contact_lang/i18n/ar.po new file mode 100644 index 000000000..dea901602 --- /dev/null +++ b/partner_contact_lang/i18n/ar.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Arabic (https://www.transifex.com/oca/teams/23907/ar/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ar\n" +"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "الشريك" diff --git a/partner_contact_lang/i18n/bg.po b/partner_contact_lang/i18n/bg.po new file mode 100644 index 000000000..79cda071d --- /dev/null +++ b/partner_contact_lang/i18n/bg.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/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: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Партньор" diff --git a/partner_contact_lang/i18n/bs.po b/partner_contact_lang/i18n/bs.po new file mode 100644 index 000000000..c65ed33d9 --- /dev/null +++ b/partner_contact_lang/i18n/bs.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Bosnian (https://www.transifex.com/oca/teams/23907/bs/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: bs\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: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_lang/i18n/ca.po b/partner_contact_lang/i18n/ca.po new file mode 100644 index 000000000..ce6de4c8a --- /dev/null +++ b/partner_contact_lang/i18n/ca.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Catalan (https://www.transifex.com/oca/teams/23907/ca/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ca\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Empresa" diff --git a/partner_contact_lang/i18n/cs.po b/partner_contact_lang/i18n/cs.po new file mode 100644 index 000000000..15e9f7594 --- /dev/null +++ b/partner_contact_lang/i18n/cs.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Czech (https://www.transifex.com/oca/teams/23907/cs/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: cs\n" +"Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Společník" diff --git a/partner_contact_lang/i18n/da.po b/partner_contact_lang/i18n/da.po new file mode 100644 index 000000000..ebe3e30f8 --- /dev/null +++ b/partner_contact_lang/i18n/da.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Danish (https://www.transifex.com/oca/teams/23907/da/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: da\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_lang/i18n/de.po b/partner_contact_lang/i18n/de.po new file mode 100644 index 000000000..208b6f19e --- /dev/null +++ b/partner_contact_lang/i18n/de.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: German (https://www.transifex.com/oca/teams/23907/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: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_lang/i18n/el_GR.po b/partner_contact_lang/i18n/el_GR.po new file mode 100644 index 000000000..24ce5db77 --- /dev/null +++ b/partner_contact_lang/i18n/el_GR.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Greek (Greece) (https://www.transifex.com/oca/teams/23907/el_GR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: el_GR\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Συνεργάτης" diff --git a/partner_contact_lang/i18n/en_GB.po b/partner_contact_lang/i18n/en_GB.po new file mode 100644 index 000000000..24663c9aa --- /dev/null +++ b/partner_contact_lang/i18n/en_GB.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: English (United Kingdom) (https://www.transifex.com/oca/teams/23907/en_GB/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: en_GB\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_lang/i18n/es.po b/partner_contact_lang/i18n/es.po new file mode 100644 index 000000000..c938e552b --- /dev/null +++ b/partner_contact_lang/i18n/es.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Empresa" diff --git a/partner_contact_lang/i18n/es_CR.po b/partner_contact_lang/i18n/es_CR.po new file mode 100644 index 000000000..9c194bdc3 --- /dev/null +++ b/partner_contact_lang/i18n/es_CR.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (Costa Rica) (https://www.transifex.com/oca/teams/23907/es_CR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es_CR\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Empresa" diff --git a/partner_contact_lang/i18n/es_EC.po b/partner_contact_lang/i18n/es_EC.po new file mode 100644 index 000000000..d6d81eed2 --- /dev/null +++ b/partner_contact_lang/i18n/es_EC.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (Ecuador) (https://www.transifex.com/oca/teams/23907/es_EC/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es_EC\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Empresa" diff --git a/partner_contact_lang/i18n/es_MX.po b/partner_contact_lang/i18n/es_MX.po new file mode 100644 index 000000000..d262df5f8 --- /dev/null +++ b/partner_contact_lang/i18n/es_MX.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (Mexico) (https://www.transifex.com/oca/teams/23907/es_MX/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es_MX\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Empresa" diff --git a/partner_contact_lang/i18n/es_VE.po b/partner_contact_lang/i18n/es_VE.po new file mode 100644 index 000000000..015f8a0f0 --- /dev/null +++ b/partner_contact_lang/i18n/es_VE.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Spanish (Venezuela) (https://www.transifex.com/oca/teams/23907/es_VE/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es_VE\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Empresa" diff --git a/partner_contact_lang/i18n/et.po b/partner_contact_lang/i18n/et.po new file mode 100644 index 000000000..b9055dfee --- /dev/null +++ b/partner_contact_lang/i18n/et.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Estonian (https://www.transifex.com/oca/teams/23907/et/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: et\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_lang/i18n/eu.po b/partner_contact_lang/i18n/eu.po new file mode 100644 index 000000000..17bdf102a --- /dev/null +++ b/partner_contact_lang/i18n/eu.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# Esther Martín Menéndez , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-02-18 04:59+0000\n" +"PO-Revision-Date: 2017-02-18 04:59+0000\n" +"Last-Translator: Esther Martín Menéndez , 2017\n" +"Language-Team: Basque (https://www.transifex.com/oca/teams/23907/eu/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: eu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Kidea" diff --git a/partner_contact_lang/i18n/fi.po b/partner_contact_lang/i18n/fi.po new file mode 100644 index 000000000..bcd43aca7 --- /dev/null +++ b/partner_contact_lang/i18n/fi.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Finnish (https://www.transifex.com/oca/teams/23907/fi/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fi\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Kumppani" diff --git a/partner_contact_lang/i18n/fr.po b/partner_contact_lang/i18n/fr.po new file mode 100644 index 000000000..657195003 --- /dev/null +++ b/partner_contact_lang/i18n/fr.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: French (https://www.transifex.com/oca/teams/23907/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: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partenaire" diff --git a/partner_contact_lang/i18n/fr_CA.po b/partner_contact_lang/i18n/fr_CA.po new file mode 100644 index 000000000..fd67c9cc0 --- /dev/null +++ b/partner_contact_lang/i18n/fr_CA.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: French (Canada) (https://www.transifex.com/oca/teams/23907/fr_CA/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: fr_CA\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partenaire" diff --git a/partner_contact_lang/i18n/fr_CH.po b/partner_contact_lang/i18n/fr_CH.po new file mode 100644 index 000000000..7034e2d79 --- /dev/null +++ b/partner_contact_lang/i18n/fr_CH.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: French (Switzerland) (https://www.transifex.com/oca/teams/23907/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: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partenaire" diff --git a/partner_contact_lang/i18n/gl.po b/partner_contact_lang/i18n/gl.po new file mode 100644 index 000000000..f7dd008f8 --- /dev/null +++ b/partner_contact_lang/i18n/gl.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Galician (https://www.transifex.com/oca/teams/23907/gl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: gl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Empresa" diff --git a/partner_contact_lang/i18n/hr.po b/partner_contact_lang/i18n/hr.po new file mode 100644 index 000000000..4b0824540 --- /dev/null +++ b/partner_contact_lang/i18n/hr.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Croatian (https://www.transifex.com/oca/teams/23907/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: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_lang/i18n/hr_HR.po b/partner_contact_lang/i18n/hr_HR.po new file mode 100644 index 000000000..682619a7e --- /dev/null +++ b/partner_contact_lang/i18n/hr_HR.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Croatian (Croatia) (https://www.transifex.com/oca/teams/23907/hr_HR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hr_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: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_lang/i18n/hu.po b/partner_contact_lang/i18n/hu.po new file mode 100644 index 000000000..d34ad6453 --- /dev/null +++ b/partner_contact_lang/i18n/hu.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Hungarian (https://www.transifex.com/oca/teams/23907/hu/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: hu\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_lang/i18n/it.po b/partner_contact_lang/i18n/it.po new file mode 100644 index 000000000..160afb7a8 --- /dev/null +++ b/partner_contact_lang/i18n/it.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Italian (https://www.transifex.com/oca/teams/23907/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: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_lang/i18n/ja.po b/partner_contact_lang/i18n/ja.po new file mode 100644 index 000000000..5f17bbc28 --- /dev/null +++ b/partner_contact_lang/i18n/ja.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Japanese (https://www.transifex.com/oca/teams/23907/ja/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ja\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "パートナ" diff --git a/partner_contact_lang/i18n/lt.po b/partner_contact_lang/i18n/lt.po new file mode 100644 index 000000000..07f3d1555 --- /dev/null +++ b/partner_contact_lang/i18n/lt.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Lithuanian (https://www.transifex.com/oca/teams/23907/lt/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: lt\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partneris" diff --git a/partner_contact_lang/i18n/lv.po b/partner_contact_lang/i18n/lv.po new file mode 100644 index 000000000..5290c1869 --- /dev/null +++ b/partner_contact_lang/i18n/lv.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Latvian (https://www.transifex.com/oca/teams/23907/lv/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: lv\n" +"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partneris" diff --git a/partner_contact_lang/i18n/mk.po b/partner_contact_lang/i18n/mk.po new file mode 100644 index 000000000..016506f10 --- /dev/null +++ b/partner_contact_lang/i18n/mk.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Macedonian (https://www.transifex.com/oca/teams/23907/mk/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: mk\n" +"Plural-Forms: nplurals=2; plural=(n % 10 == 1 && n % 100 != 11) ? 0 : 1;\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Партнер" diff --git a/partner_contact_lang/i18n/mn.po b/partner_contact_lang/i18n/mn.po new file mode 100644 index 000000000..f9d1ac4a7 --- /dev/null +++ b/partner_contact_lang/i18n/mn.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Mongolian (https://www.transifex.com/oca/teams/23907/mn/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: mn\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Харилцагч" diff --git a/partner_contact_lang/i18n/nb.po b/partner_contact_lang/i18n/nb.po new file mode 100644 index 000000000..95167672c --- /dev/null +++ b/partner_contact_lang/i18n/nb.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Norwegian Bokmål (https://www.transifex.com/oca/teams/23907/nb/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nb\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_lang/i18n/nb_NO.po b/partner_contact_lang/i18n/nb_NO.po new file mode 100644 index 000000000..fa047742b --- /dev/null +++ b/partner_contact_lang/i18n/nb_NO.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Norwegian Bokmål (Norway) (https://www.transifex.com/oca/teams/23907/nb_NO/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nb_NO\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_lang/i18n/nl.po b/partner_contact_lang/i18n/nl.po new file mode 100644 index 000000000..81b1a933c --- /dev/null +++ b/partner_contact_lang/i18n/nl.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Dutch (https://www.transifex.com/oca/teams/23907/nl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_lang/i18n/nl_BE.po b/partner_contact_lang/i18n/nl_BE.po new file mode 100644 index 000000000..f82520d75 --- /dev/null +++ b/partner_contact_lang/i18n/nl_BE.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Dutch (Belgium) (https://www.transifex.com/oca/teams/23907/nl_BE/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: nl_BE\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Relatie" diff --git a/partner_contact_lang/i18n/pl.po b/partner_contact_lang/i18n/pl.po new file mode 100644 index 000000000..4e9a905b8 --- /dev/null +++ b/partner_contact_lang/i18n/pl.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Polish (https://www.transifex.com/oca/teams/23907/pl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pl\n" +"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_lang/i18n/pt.po b/partner_contact_lang/i18n/pt.po new file mode 100644 index 000000000..073ece80c --- /dev/null +++ b/partner_contact_lang/i18n/pt.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Portuguese (https://www.transifex.com/oca/teams/23907/pt/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Entidade" diff --git a/partner_contact_lang/i18n/pt_BR.po b/partner_contact_lang/i18n/pt_BR.po new file mode 100644 index 000000000..c9782ac19 --- /dev/null +++ b/partner_contact_lang/i18n/pt_BR.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Portuguese (Brazil) (https://www.transifex.com/oca/teams/23907/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: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Parceiro" diff --git a/partner_contact_lang/i18n/pt_PT.po b/partner_contact_lang/i18n/pt_PT.po new file mode 100644 index 000000000..cbce34549 --- /dev/null +++ b/partner_contact_lang/i18n/pt_PT.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Portuguese (Portugal) (https://www.transifex.com/oca/teams/23907/pt_PT/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_PT\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Parceiro" diff --git a/partner_contact_lang/i18n/ro.po b/partner_contact_lang/i18n/ro.po new file mode 100644 index 000000000..513317bf9 --- /dev/null +++ b/partner_contact_lang/i18n/ro.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Romanian (https://www.transifex.com/oca/teams/23907/ro/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ro\n" +"Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partener" diff --git a/partner_contact_lang/i18n/ru.po b/partner_contact_lang/i18n/ru.po new file mode 100644 index 000000000..4937c7762 --- /dev/null +++ b/partner_contact_lang/i18n/ru.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Russian (https://www.transifex.com/oca/teams/23907/ru/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: ru\n" +"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Контрагент" diff --git a/partner_contact_lang/i18n/sk.po b/partner_contact_lang/i18n/sk.po new file mode 100644 index 000000000..4146d507a --- /dev/null +++ b/partner_contact_lang/i18n/sk.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# gebri , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: gebri , 2017\n" +"Language-Team: Slovak (https://www.transifex.com/oca/teams/23907/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: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_lang/i18n/sr@latin.po b/partner_contact_lang/i18n/sr@latin.po new file mode 100644 index 000000000..aad27575a --- /dev/null +++ b/partner_contact_lang/i18n/sr@latin.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Serbian (Latin) (https://www.transifex.com/oca/teams/23907/sr@latin/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sr@latin\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: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_lang/i18n/sv.po b/partner_contact_lang/i18n/sv.po new file mode 100644 index 000000000..a84987428 --- /dev/null +++ b/partner_contact_lang/i18n/sv.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Swedish (https://www.transifex.com/oca/teams/23907/sv/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sv\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_lang/i18n/th.po b/partner_contact_lang/i18n/th.po new file mode 100644 index 000000000..e38c9266b --- /dev/null +++ b/partner_contact_lang/i18n/th.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Thai (https://www.transifex.com/oca/teams/23907/th/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: th\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "พาร์ทเนอร์" diff --git a/partner_contact_lang/i18n/tr.po b/partner_contact_lang/i18n/tr.po new file mode 100644 index 000000000..de9943441 --- /dev/null +++ b/partner_contact_lang/i18n/tr.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Turkish (https://www.transifex.com/oca/teams/23907/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: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "İş Ortağı" diff --git a/partner_contact_lang/i18n/tr_TR.po b/partner_contact_lang/i18n/tr_TR.po new file mode 100644 index 000000000..724dca1ef --- /dev/null +++ b/partner_contact_lang/i18n/tr_TR.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# Ozge Altinisik , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: Ozge Altinisik , 2017\n" +"Language-Team: Turkish (Turkey) (https://www.transifex.com/oca/teams/23907/tr_TR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: tr_TR\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Ortak" diff --git a/partner_contact_lang/i18n/vi.po b/partner_contact_lang/i18n/vi.po new file mode 100644 index 000000000..db017bcce --- /dev/null +++ b/partner_contact_lang/i18n/vi.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Vietnamese (https://www.transifex.com/oca/teams/23907/vi/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: vi\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "Đối tác" diff --git a/partner_contact_lang/i18n/zh_CN.po b/partner_contact_lang/i18n/zh_CN.po new file mode 100644 index 000000000..035690832 --- /dev/null +++ b/partner_contact_lang/i18n/zh_CN.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Chinese (China) (https://www.transifex.com/oca/teams/23907/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: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "业务伙伴" diff --git a/partner_contact_lang/i18n/zh_TW.po b/partner_contact_lang/i18n/zh_TW.po new file mode 100644 index 000000000..2db1bd740 --- /dev/null +++ b/partner_contact_lang/i18n/zh_TW.po @@ -0,0 +1,24 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_lang +# +# Translators: +# OCA Transbot , 2017 +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 9.0c\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-01-25 03:41+0000\n" +"PO-Revision-Date: 2017-01-25 03:41+0000\n" +"Last-Translator: OCA Transbot , 2017\n" +"Language-Team: Chinese (Taiwan) (https://www.transifex.com/oca/teams/23907/zh_TW/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: zh_TW\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#. module: partner_contact_lang +#: model:ir.model,name:partner_contact_lang.model_res_partner +msgid "Partner" +msgstr "夥伴" From 962b5f7b3e263008a0b1783a1a40ed998a31a0c4 Mon Sep 17 00:00:00 2001 From: cubells Date: Tue, 12 Sep 2017 20:55:36 +0200 Subject: [PATCH 5/6] [MIG] partner_contact_lang: Migration to 10.0 --- partner_contact_lang/README.rst | 5 +- .../{__openerp__.py => __manifest__.py} | 7 +- partner_contact_lang/models/res_partner.py | 22 +- .../static/description/icon.svg | 760 ------------------ .../tests/test_partner_contact_lang.py | 26 +- 5 files changed, 30 insertions(+), 790 deletions(-) rename partner_contact_lang/{__openerp__.py => __manifest__.py} (66%) delete mode 100644 partner_contact_lang/static/description/icon.svg diff --git a/partner_contact_lang/README.rst b/partner_contact_lang/README.rst index 0522bafff..93f212be2 100644 --- a/partner_contact_lang/README.rst +++ b/partner_contact_lang/README.rst @@ -1,5 +1,5 @@ .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :target: http://www.gnu.org/licenses/agpl :alt: License: AGPL-3 =========================== @@ -25,7 +25,7 @@ and you will be able to edit the language. .. 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/9.0 + :target: https://runbot.odoo-community.org/runbot/134/10.0 Bug Tracker =========== @@ -42,6 +42,7 @@ Contributors ------------ * Pedro M. Baeza +* Vicent Cubells Icon ---- diff --git a/partner_contact_lang/__openerp__.py b/partner_contact_lang/__manifest__.py similarity index 66% rename from partner_contact_lang/__openerp__.py rename to partner_contact_lang/__manifest__.py index 6567618a4..acc9b636d 100644 --- a/partner_contact_lang/__openerp__.py +++ b/partner_contact_lang/__manifest__.py @@ -1,11 +1,12 @@ # -*- coding: utf-8 -*- -# © 2016 Pedro M. Baeza +# Copyright 2016 Pedro M. Baeza +# Copyright 2017 Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'Manage language in contacts', - 'version': '9.0.1.0.0', - 'category': 'Partner Management', + 'version': '10.0.1.0.0', + 'category': 'Customer Relationship Management', 'license': 'AGPL-3', 'author': 'Tecnativa,' 'Odoo Community Association (OCA)', diff --git a/partner_contact_lang/models/res_partner.py b/partner_contact_lang/models/res_partner.py index 0b6b612c1..b74a3b394 100644 --- a/partner_contact_lang/models/res_partner.py +++ b/partner_contact_lang/models/res_partner.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- -# © 2016 Pedro M. Baeza +# Copyright 2016 Pedro M. Baeza +# Copyright 2017 Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from openerp import api, models @@ -21,21 +22,12 @@ class ResPartner(models.Model): childs.write({'lang': vals['lang']}) return res - @api.multi - def onchange_parent_id(self, parent_id): + @api.onchange('parent_id') + def onchange_parent_id(self): """Change language if the parent company changes and there's no language defined yet""" - res = super(ResPartner, self).onchange_parent_id(parent_id) - if parent_id and self.parent_id.id != parent_id and not self.lang: - parent = self.browse(parent_id) + res = super(ResPartner, self).onchange_parent_id() + if self.parent_id and self.parent_id != self and not self.lang: val = res.setdefault('value', {}) - val['lang'] = parent.lang + val['lang'] = self.parent_id.lang return res - - @api.multi - @api.onchange('lang') - def onchange_lang(self): - if self.lang: - childs = self.child_ids.filtered(lambda x: not x.lang) - for child in childs: - child.lang = self.lang diff --git a/partner_contact_lang/static/description/icon.svg b/partner_contact_lang/static/description/icon.svg deleted file mode 100644 index 95b972591..000000000 --- a/partner_contact_lang/static/description/icon.svg +++ /dev/null @@ -1,760 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - image/svg+xml - - - - - - - - - - diff --git a/partner_contact_lang/tests/test_partner_contact_lang.py b/partner_contact_lang/tests/test_partner_contact_lang.py index 945245198..c9940d1b3 100644 --- a/partner_contact_lang/tests/test_partner_contact_lang.py +++ b/partner_contact_lang/tests/test_partner_contact_lang.py @@ -1,29 +1,35 @@ # -*- coding: utf-8 -*- -# © 2016 Pedro M. Baeza +# Copyright 2016 Pedro M. Baeza +# Copyright 2017 Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp.tests import common +from odoo.tests import common -class TestPartnerContactLang(common.TransactionCase): - def setUp(self): - super(TestPartnerContactLang, self).setUp() - self.ResPartner = self.env['res.partner'] - self.partner = self.ResPartner.create({ +class TestPartnerContactLang(common.SavepointCase): + @classmethod + def setUpClass(cls): + super(TestPartnerContactLang, cls).setUpClass() + cls.ResPartner = cls.env['res.partner'] + cls.partner = cls.ResPartner.create({ 'name': 'Partner test', 'lang': 'en_US', }) - self.contact = self.ResPartner.create({ + cls.contact = cls.ResPartner.create({ 'name': 'Contact test', 'lang': False, - 'parent_id': self.partner.id, + 'parent_id': cls.partner.id, }) def test_onchange_parent_id(self): self.contact.parent_id = False - res = self.contact.onchange_parent_id(self.partner.id) + res = self.contact.onchange_parent_id() + self.assertIsNone(res) + self.contact.parent_id = self.partner + res = self.contact.onchange_parent_id() self.assertEqual(res.get('value', {}).get('lang'), 'en_US') def test_write_parent_lang(self): + self.partner.lang = False self.partner.lang = 'en_US' self.assertEqual(self.contact.lang, 'en_US') From 2881438bd03a1a9ce7d2c5777ab20288f7f28562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cris=20Mart=C3=ADn?= Date: Thu, 4 Oct 2018 09:53:31 +0200 Subject: [PATCH 6/6] [MIG] partner_contact_lang: Migration to 11.0 --- partner_contact_lang/README.rst | 87 ++-- partner_contact_lang/__init__.py | 1 - partner_contact_lang/__manifest__.py | 14 +- partner_contact_lang/models/__init__.py | 1 - partner_contact_lang/models/res_partner.py | 7 +- partner_contact_lang/readme/CONTRIBUTORS.rst | 6 + partner_contact_lang/readme/DESCRIPTION.rst | 10 + partner_contact_lang/readme/USAGE.rst | 2 + .../static/description/index.html | 440 ++++++++++++++++++ partner_contact_lang/tests/__init__.py | 1 - .../tests/test_partner_contact_lang.py | 9 +- .../views/res_partner_view.xml | 17 - 12 files changed, 530 insertions(+), 65 deletions(-) create mode 100644 partner_contact_lang/readme/CONTRIBUTORS.rst create mode 100644 partner_contact_lang/readme/DESCRIPTION.rst create mode 100644 partner_contact_lang/readme/USAGE.rst create mode 100644 partner_contact_lang/static/description/index.html delete mode 100644 partner_contact_lang/views/res_partner_view.xml diff --git a/partner_contact_lang/README.rst b/partner_contact_lang/README.rst index 93f212be2..8cb277477 100644 --- a/partner_contact_lang/README.rst +++ b/partner_contact_lang/README.rst @@ -1,64 +1,93 @@ -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl - :alt: License: AGPL-3 - =========================== Manage language in contacts =========================== +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Fpartner--contact-lightgray.png?logo=github + :target: https://github.com/OCA/partner-contact/tree/11.0/partner_contact_lang + :alt: OCA/partner-contact +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/partner-contact-11-0/partner-contact-11-0-partner_contact_lang + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/134/11.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + Odoo by default propagate language field to the created contacts from their form, but it doesn't allow to change it once created. This module fills this gap, and also provides other facilities for the contact language management: -* Put the language of the parent company when the contact doesn't have a - language and this parent company is assigned. -* When the company changes the language, it fills with the same language all - the contacts that don't have any. +#. Put the language of the parent company when the contact doesn't have a +language and this parent company is assigned. +#. When the company changes the language, it fills with the same language all +the contacts that don't have any. + +**Table of contents** + +.. contents:: + :local: Usage ===== -Go to any partner that is a company and has contacts. Click on one contact -and you will be able to edit the language. - -.. 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/10.0 +#. Go to any company partner has contacts. +#. Click on any contact and you will be able to edit the language. Bug Tracker =========== -Bugs are tracked on `GitHub Issues -`_. In case of trouble, please -check there if your issue has already been reported. If you spotted it first, -help us smashing it by providing a detailed and welcomed feedback. +Bugs are tracked on `GitHub Issues `_. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +`feedback `_. + +Do not contact contributors directly about support or help with technical issues. Credits ======= +Authors +~~~~~~~ + +* Tecnativa + Contributors ------------- +~~~~~~~~~~~~ + +* `Tecnativa `__: -* Pedro M. Baeza -* Vicent Cubells + * Javier Iniesta + * Vicent Cubells + * David Vidal + * Cristina Martín -Icon ----- -* Original Odoo icons. +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/partner-contact `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/partner_contact_lang/__init__.py b/partner_contact_lang/__init__.py index a77a6fcbc..83e553ac4 100644 --- a/partner_contact_lang/__init__.py +++ b/partner_contact_lang/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import models diff --git a/partner_contact_lang/__manifest__.py b/partner_contact_lang/__manifest__.py index acc9b636d..d3a5799c5 100644 --- a/partner_contact_lang/__manifest__.py +++ b/partner_contact_lang/__manifest__.py @@ -1,21 +1,17 @@ -# -*- coding: utf-8 -*- -# Copyright 2016 Pedro M. Baeza -# Copyright 2017 Vicent Cubells +# Copyright 2016 Tecnativa - Pedro M. Baeza +# Copyright 2017 Tecnativa - Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). { 'name': 'Manage language in contacts', - 'version': '10.0.1.0.0', - 'category': 'Customer Relationship Management', + 'version': '11.0.1.0.0', + 'category': 'Sales', 'license': 'AGPL-3', 'author': 'Tecnativa,' 'Odoo Community Association (OCA)', - 'website': 'https://www.tecnativa.com', + 'website': 'https://github.com/OCA/partner-contact/', 'depends': [ 'base', ], - 'data': [ - 'views/res_partner_view.xml', - ], 'installable': True, } diff --git a/partner_contact_lang/models/__init__.py b/partner_contact_lang/models/__init__.py index e0345afe7..ccebc7247 100644 --- a/partner_contact_lang/models/__init__.py +++ b/partner_contact_lang/models/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import res_partner diff --git a/partner_contact_lang/models/res_partner.py b/partner_contact_lang/models/res_partner.py index b74a3b394..3149baff6 100644 --- a/partner_contact_lang/models/res_partner.py +++ b/partner_contact_lang/models/res_partner.py @@ -1,9 +1,8 @@ -# -*- coding: utf-8 -*- -# Copyright 2016 Pedro M. Baeza -# Copyright 2017 Vicent Cubells +# Copyright 2016 Tecnativa - Pedro M. Baeza +# Copyright 2017 Tecnativa - Vicent Cubells # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -from openerp import api, models +from odoo import api, models class ResPartner(models.Model): diff --git a/partner_contact_lang/readme/CONTRIBUTORS.rst b/partner_contact_lang/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..0e92fb96a --- /dev/null +++ b/partner_contact_lang/readme/CONTRIBUTORS.rst @@ -0,0 +1,6 @@ +* `Tecnativa `__: + + * Javier Iniesta + * Vicent Cubells + * David Vidal + * Cristina Martín diff --git a/partner_contact_lang/readme/DESCRIPTION.rst b/partner_contact_lang/readme/DESCRIPTION.rst new file mode 100644 index 000000000..3a5199e90 --- /dev/null +++ b/partner_contact_lang/readme/DESCRIPTION.rst @@ -0,0 +1,10 @@ +Odoo by default propagate language field to the created contacts from their +form, but it doesn't allow to change it once created. + +This module fills this gap, and also provides other facilities for the +contact language management: + +#. Put the language of the parent company when the contact doesn't have a +language and this parent company is assigned. +#. When the company changes the language, it fills with the same language all +the contacts that don't have any. diff --git a/partner_contact_lang/readme/USAGE.rst b/partner_contact_lang/readme/USAGE.rst new file mode 100644 index 000000000..3bf6da3da --- /dev/null +++ b/partner_contact_lang/readme/USAGE.rst @@ -0,0 +1,2 @@ +#. Go to any company partner has contacts. +#. Click on any contact and you will be able to edit the language. diff --git a/partner_contact_lang/static/description/index.html b/partner_contact_lang/static/description/index.html new file mode 100644 index 000000000..1d489ec6a --- /dev/null +++ b/partner_contact_lang/static/description/index.html @@ -0,0 +1,440 @@ + + + + + + +Manage language in contacts + + + +
+

Manage language in contacts

+ + +

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

+

Odoo by default propagate language field to the created contacts from their +form, but it doesn’t allow to change it once created.

+

This module fills this gap, and also provides other facilities for the +contact language management:

+

#. Put the language of the parent company when the contact doesn’t have a +language and this parent company is assigned. +#. When the company changes the language, it fills with the same language all +the contacts that don’t have any.

+

Table of contents

+ +
+

Usage

+
    +
  1. Go to any company partner has contacts.
  2. +
  3. Click on any contact and you will be able to edit the language.
  4. +
+
+
+

Bug Tracker

+

Bugs are tracked on GitHub Issues. +In case of trouble, please check there if your issue has already been reported. +If you spotted it first, help us smashing it by providing a detailed and welcomed +feedback.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Tecnativa
  • +
+
+
+

Contributors

+
    +
  • Tecnativa:
      +
    • Javier Iniesta
    • +
    • Vicent Cubells
    • +
    • David Vidal
    • +
    • Cristina Martín
    • +
    +
  • +
+
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use.

+

This module is part of the OCA/partner-contact project on GitHub.

+

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

+
+
+
+ + diff --git a/partner_contact_lang/tests/__init__.py b/partner_contact_lang/tests/__init__.py index 410aa95b3..55f694a88 100644 --- a/partner_contact_lang/tests/__init__.py +++ b/partner_contact_lang/tests/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from . import test_partner_contact_lang diff --git a/partner_contact_lang/tests/test_partner_contact_lang.py b/partner_contact_lang/tests/test_partner_contact_lang.py index c9940d1b3..ff8b2df92 100644 --- a/partner_contact_lang/tests/test_partner_contact_lang.py +++ b/partner_contact_lang/tests/test_partner_contact_lang.py @@ -1,6 +1,6 @@ -# -*- coding: utf-8 -*- -# Copyright 2016 Pedro M. Baeza -# Copyright 2017 Vicent Cubells +# Copyright 2016 Tecnativa - Pedro M. Baeza +# Copyright 2017 Tecnativa - Vicent Cubells +# Copyright 2018 Tecnativa - Cristina Martín # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). from odoo.tests import common @@ -30,6 +30,9 @@ class TestPartnerContactLang(common.SavepointCase): self.assertEqual(res.get('value', {}).get('lang'), 'en_US') def test_write_parent_lang(self): + """First empty the field for filling it again afterwards to see if + the contact gets the same value. + """ self.partner.lang = False self.partner.lang = 'en_US' self.assertEqual(self.contact.lang, 'en_US') diff --git a/partner_contact_lang/views/res_partner_view.xml b/partner_contact_lang/views/res_partner_view.xml deleted file mode 100644 index 4412c82af..000000000 --- a/partner_contact_lang/views/res_partner_view.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - res.partner - - 9999 - - - - - - - - - -