diff --git a/partner_contact_nationality/README.rst b/partner_contact_nationality/README.rst new file mode 100644 index 000000000..41bee0784 --- /dev/null +++ b/partner_contact_nationality/README.rst @@ -0,0 +1,69 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :alt: License: AGPL-3 + +Module name +=========== + +This module was written to extend the functionality of Odoo to support setting +a nationality for your contacts. + +Installation +============ + +To install this module, you need to: + +* Install the OCA repository `partner-contact`_. + +Configuration +============= + +No configuration is needed. + +Usage +===== + +To use this module, you need to: + +* Edit or create a partner. +* Ensure it is **not** a company. +* Go to the *Personal Information* sheet. +* Set the nationality there. + +For further information, please visit: + +* https://www.odoo.com/forum/help-1 +* https://github.com/OCA/partner-contact/ + +Known issues / Roadmap +====================== + +* None. + +Credits +======= + +Contributors +------------ + +* EL Hadji DEM +* Jairo Llopis +* Matjaž Mozetič +* Rudolf Schnapka + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit http://odoo-community.org. + + +.. _partner-contact: https://github.com/OCA/partner-contact/ diff --git a/partner_contact_nationality/__init__.py b/partner_contact_nationality/__init__.py new file mode 100644 index 000000000..685080d25 --- /dev/null +++ b/partner_contact_nationality/__init__.py @@ -0,0 +1,19 @@ +# -*- encoding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +from . import models diff --git a/partner_contact_nationality/__openerp__.py b/partner_contact_nationality/__openerp__.py new file mode 100644 index 000000000..57d5e59d5 --- /dev/null +++ b/partner_contact_nationality/__openerp__.py @@ -0,0 +1,31 @@ +# -*- encoding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +{ + "name": "Contact's nationality", + "version": "1.0.0", + "author": "Odoo Community Association (OCA)", + "category": "Customer Relationship Management", + "website": "https://odoo-community.org/", + "depends": [ + "base" + ], + "data": [ + "views/res_partner.xml", + ], +} diff --git a/partner_contact_nationality/i18n/de.po b/partner_contact_nationality/i18n/de.po new file mode 100644 index 000000000..1d0c6c31f --- /dev/null +++ b/partner_contact_nationality/i18n/de.po @@ -0,0 +1,29 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * base_contact +# +# Rudolf Schnapka , 2014. +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-20 07:38+0000\n" +"PO-Revision-Date: 2015-05-20 09:39+0100\n" +"Last-Translator: Rudolf Schnapka \n" +"Language-Team: German \n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 1.7.6\n" + +#. module: partner_contact_nationality +#: field:res.partner,nationality_id:0 +msgid "Nationality" +msgstr "Nationalität" + +#. module: partner_contact_nationality +#: model:ir.model,name:partner_contact_nationality.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_nationality/i18n/es.po b/partner_contact_nationality/i18n/es.po new file mode 100644 index 000000000..02fe1c9b1 --- /dev/null +++ b/partner_contact_nationality/i18n/es.po @@ -0,0 +1,28 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_nationality +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0-20150514\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-20 07:38+0000\n" +"PO-Revision-Date: 2015-05-20 09:39+0100\n" +"Last-Translator: Jairo Llopis \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Generator: Poedit 1.7.6\n" +"Language: es_ES\n" + +#. module: partner_contact_nationality +#: field:res.partner,nationality_id:0 +msgid "Nationality" +msgstr "Nacionalidad" + +#. module: partner_contact_nationality +#: model:ir.model,name:partner_contact_nationality.model_res_partner +msgid "Partner" +msgstr "Empresa" diff --git a/partner_contact_nationality/i18n/fr.po b/partner_contact_nationality/i18n/fr.po new file mode 100644 index 000000000..7f0f41bbf --- /dev/null +++ b/partner_contact_nationality/i18n/fr.po @@ -0,0 +1,28 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * base_contact +# +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-20 07:38+0000\n" +"PO-Revision-Date: 2015-05-20 09:40+0100\n" +"Last-Translator: EL Hadji DEM \n" +"Language-Team: \n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 1.7.6\n" + +#. module: partner_contact_nationality +#: field:res.partner,nationality_id:0 +msgid "Nationality" +msgstr "Nationalité" + +#. module: partner_contact_nationality +#: model:ir.model,name:partner_contact_nationality.model_res_partner +msgid "Partner" +msgstr "Partenaire" diff --git a/partner_contact_nationality/i18n/partner_contact_nationality.pot b/partner_contact_nationality/i18n/partner_contact_nationality.pot new file mode 100644 index 000000000..8294f4c16 --- /dev/null +++ b/partner_contact_nationality/i18n/partner_contact_nationality.pot @@ -0,0 +1,27 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_contact_nationality +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 8.0-20150514\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-20 07:38+0000\n" +"PO-Revision-Date: 2015-05-20 07:38+0000\n" +"Last-Translator: <>\n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Plural-Forms: \n" + +#. module: partner_contact_nationality +#: field:res.partner,nationality_id:0 +msgid "Nationality" +msgstr "" + +#. module: partner_contact_nationality +#: model:ir.model,name:partner_contact_nationality.model_res_partner +msgid "Partner" +msgstr "" + diff --git a/partner_contact_nationality/i18n/sl.po b/partner_contact_nationality/i18n/sl.po new file mode 100644 index 000000000..d7553a3f9 --- /dev/null +++ b/partner_contact_nationality/i18n/sl.po @@ -0,0 +1,29 @@ +# Translation of OpenERP Server. +# This file contains the translation of the following modules: +# * base_contact +# +# Matjaž Mozetič , 2015. +msgid "" +msgstr "" +"Project-Id-Version: OpenERP Server 7.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-05-20 07:38+0000\n" +"PO-Revision-Date: 2015-05-20 09:40+0100\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian \n" +"Language: sl\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: \n" +"X-Generator: Poedit 1.7.6\n" + +#. module: partner_contact_nationality +#: field:res.partner,nationality_id:0 +msgid "Nationality" +msgstr "Nacionalnost" + +#. module: partner_contact_nationality +#: model:ir.model,name:partner_contact_nationality.model_res_partner +msgid "Partner" +msgstr "Partner" diff --git a/partner_contact_nationality/models.py b/partner_contact_nationality/models.py new file mode 100644 index 000000000..a98a30be9 --- /dev/null +++ b/partner_contact_nationality/models.py @@ -0,0 +1,26 @@ +# -*- encoding: utf-8 -*- + +# Odoo, Open Source Management Solution +# Copyright (C) 2014-2015 Grupo ESOC +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . + +from openerp import fields, models + + +class Partner(models.Model): + """Partner with nationality.""" + _inherit = "res.partner" + + nationality_id = fields.Many2one("res.country", "Nationality") diff --git a/partner_contact_nationality/views/res_partner.xml b/partner_contact_nationality/views/res_partner.xml new file mode 100644 index 000000000..37615eef8 --- /dev/null +++ b/partner_contact_nationality/views/res_partner.xml @@ -0,0 +1,19 @@ + + + + + + Nationality field + res.partner + + + + + + + + + + + +