diff --git a/partner_contact_lang/README.rst b/partner_contact_lang/README.rst new file mode 100644 index 000000000..8cb277477 --- /dev/null +++ b/partner_contact_lang/README.rst @@ -0,0 +1,93 @@ +=========================== +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. + +**Table of contents** + +.. contents:: + :local: + +Usage +===== + +#. 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 `_. + +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. + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +This module is part of the `OCA/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 new file mode 100644 index 000000000..83e553ac4 --- /dev/null +++ b/partner_contact_lang/__init__.py @@ -0,0 +1,3 @@ +# 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 new file mode 100644 index 000000000..d3a5799c5 --- /dev/null +++ b/partner_contact_lang/__manifest__.py @@ -0,0 +1,17 @@ +# 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': '11.0.1.0.0', + 'category': 'Sales', + 'license': 'AGPL-3', + 'author': 'Tecnativa,' + 'Odoo Community Association (OCA)', + 'website': 'https://github.com/OCA/partner-contact/', + 'depends': [ + 'base', + ], + 'installable': True, +} 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/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" 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 "夥伴" diff --git a/partner_contact_lang/models/__init__.py b/partner_contact_lang/models/__init__.py new file mode 100644 index 000000000..ccebc7247 --- /dev/null +++ b/partner_contact_lang/models/__init__.py @@ -0,0 +1,3 @@ +# 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..3149baff6 --- /dev/null +++ b/partner_contact_lang/models/res_partner.py @@ -0,0 +1,32 @@ +# 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 odoo 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.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() + if self.parent_id and self.parent_id != self and not self.lang: + val = res.setdefault('value', {}) + val['lang'] = self.parent_id.lang + return res 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/icon.png b/partner_contact_lang/static/description/icon.png new file mode 100644 index 000000000..90980f184 Binary files /dev/null and b/partner_contact_lang/static/description/icon.png differ 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 new file mode 100644 index 000000000..55f694a88 --- /dev/null +++ b/partner_contact_lang/tests/__init__.py @@ -0,0 +1,3 @@ +# 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..ff8b2df92 --- /dev/null +++ b/partner_contact_lang/tests/test_partner_contact_lang.py @@ -0,0 +1,38 @@ +# 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 + + +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', + }) + cls.contact = cls.ResPartner.create({ + 'name': 'Contact test', + 'lang': False, + 'parent_id': cls.partner.id, + }) + + def test_onchange_parent_id(self): + self.contact.parent_id = False + 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): + """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')