diff --git a/base_continent/README.rst b/base_continent/README.rst new file mode 100644 index 000000000..eec969816 --- /dev/null +++ b/base_continent/README.rst @@ -0,0 +1,81 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl + :alt: License: AGPL-3 + +============== +base_continent +============== + +This module extends the functionality of 'base' module to support continents +and to allow you to link each country with a continent + +Installation +============ + +To install this module, you need to: + +#. Install 'base_continent' module + +Configuration +============= + +No specific configuration required + +Usage +===== + +To use this module, you need to: + +#. Go to Sales / Configuration / Contacts / Localization / Continents to show the list of continents + +Known issues / Roadmap +====================== + +No issue + +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 smash it by providing detailed and welcomed feedback. + +Credits +======= + +Images +------ + +* Odoo Community Association: `Icon `_. + +Contributors +------------ + +* Romain Deheele +* Quentin Theuret + +Do not contact contributors directly about support or help with technical issues. + +Funders +------- + +The development of this module has been financially supported by: + +* Camptocamp +* senseFly (http://sensefly.com) + +Maintainer +---------- + +.. image:: https://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: https://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose +mission is to support the collaborative development of Odoo features and +promote its widespread use. + +To contribute to this module, please visit https://odoo-community.org. \ No newline at end of file diff --git a/base_continent/__init__.py b/base_continent/__init__.py new file mode 100644 index 000000000..1ebef05cd --- /dev/null +++ b/base_continent/__init__.py @@ -0,0 +1,25 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Author: Romain Deheele +# Copyright 2014 Camptocamp SA +# +# Author: Quentin Theuret +# Copyright 2017 SenseFly, Amaris +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + +from . import models diff --git a/base_continent/__manifest__.py b/base_continent/__manifest__.py new file mode 100644 index 000000000..2be65ad51 --- /dev/null +++ b/base_continent/__manifest__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Author: Romain Deheele +# Copyright 2014 Camptocamp SA +# +# 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': 'Continent management', + 'version': '1.0.1', + 'depends': [ + 'base', + 'sales_team', + ], + 'author': "Camptocamp, senseFly, Amaris, Odoo Community Association (OCA)", + 'license': 'AGPL-3', + 'description': """ + +This module introduces continent management. +============================================ +Links continents to countries, +adds continent field on partner & company form + """, + 'category': 'Generic Modules/Base', + 'data': [ + 'views/base_continent_view.xml', + 'data/base_continent_data.xml', + 'security/ir.model.access.csv', + ], + 'installable': True, +} \ No newline at end of file diff --git a/base_continent/data/base_continent_data.xml b/base_continent/data/base_continent_data.xml new file mode 100644 index 000000000..afea97cb6 --- /dev/null +++ b/base_continent/data/base_continent_data.xml @@ -0,0 +1,770 @@ + + + + Africa + AF + + + Antarctica + AN + + + Asia + AS + + + Europe + EU + + + North America + NA + + + Oceania + OC + + + South America + SA + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base_continent/i18n/base_continent.pot b/base_continent/i18n/base_continent.pot new file mode 100644 index 000000000..8f54fa44a --- /dev/null +++ b/base_continent/i18n/base_continent.pot @@ -0,0 +1,139 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_continent +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-11 09:57+0000\n" +"PO-Revision-Date: 2017-08-11 09:57+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: base_continent +#: model:res.continent,name:base_continent.af +msgid "Africa" +msgstr "" + +#. module: base_continent +#: model:res.continent,name:base_continent.an +msgid "Antarctica" +msgstr "" + +#. module: base_continent +#: model:res.continent,name:base_continent.as +msgid "Asia" +msgstr "" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_continent +#: model:ir.model.fields,field_description:base_continent.field_res_country_continent_id +#: model:ir.model.fields,field_description:base_continent.field_res_partner_continent_id +#: model:ir.model.fields,field_description:base_continent.field_res_users_continent_id +#: model:ir.ui.view,arch_db:base_continent.view_continent_form +#: model:ir.ui.view,arch_db:base_continent.view_continent_tree +msgid "Continent" +msgstr "" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_code +msgid "Continent Code" +msgstr "" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_name +msgid "Continent Name" +msgstr "" + +#. module: base_continent +#: model:ir.actions.act_window,name:base_continent.action_continent +#: model:ir.ui.menu,name:base_continent.menu_continent_partner +msgid "Continents" +msgstr "" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_countries +#: model:ir.ui.view,arch_db:base_continent.view_continent_form +msgid "Countries" +msgstr "" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_country +msgid "Country" +msgstr "" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_create_uid +msgid "Created by" +msgstr "" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_create_date +msgid "Created on" +msgstr "" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_display_name +msgid "Display Name" +msgstr "" + +#. module: base_continent +#: model:ir.actions.act_window,help:base_continent.action_continent +msgid "Display and manage the list of all continents that can be assigned to your partner records." +msgstr "" + +#. module: base_continent +#: model:res.continent,name:base_continent.eu +msgid "Europe" +msgstr "" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_id +msgid "ID" +msgstr "" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent___last_update +msgid "Last Modified on" +msgstr "" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_write_uid +msgid "Last Updated by" +msgstr "" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_write_date +msgid "Last Updated on" +msgstr "" + +#. module: base_continent +#: model:res.continent,name:base_continent.na +msgid "North America" +msgstr "" + +#. module: base_continent +#: model:res.continent,name:base_continent.oc +msgid "Oceania" +msgstr "" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_partner +msgid "Partner" +msgstr "" + +#. module: base_continent +#: model:res.continent,name:base_continent.sa +msgid "South America" +msgstr "" + +#. module: base_continent +#: model:ir.model.fields,help:base_continent.field_res_continent_name +msgid "The full name of the continent." +msgstr "" + diff --git a/base_continent/i18n/es.po b/base_continent/i18n/es.po new file mode 100644 index 000000000..762af6bcc --- /dev/null +++ b/base_continent/i18n/es.po @@ -0,0 +1,120 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_continent +# +# Translators: +# Francisco Palm , 2015 +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-09-23 21:40+0000\n" +"PO-Revision-Date: 2015-09-13 13:38+0000\n" +"Last-Translator: Francisco Palm \n" +"Language-Team: Spanish (http://www.transifex.com/oca/OCA-partner-contact-8-0/language/es/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: es\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: base_continent +#: model:res.continent,name:base_continent.af +msgid "Africa" +msgstr "África" + +#. module: base_continent +#: model:res.continent,name:base_continent.an +msgid "Antarctica" +msgstr "Antártida" + +#. module: base_continent +#: model:res.continent,name:base_continent.as +msgid "Asia" +msgstr "Asia" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_continent +#: view:res.continent:base_continent.view_continent_form +#: view:res.continent:base_continent.view_continent_tree +#: field:res.country,continent_id:0 field:res.partner,continent_id:0 +msgid "Continent" +msgstr "Continente" + +#. module: base_continent +#: field:res.continent,name:0 +msgid "Continent Name" +msgstr "Nombre del Continente" + +#. module: base_continent +#: model:ir.actions.act_window,name:base_continent.action_continent +#: model:ir.ui.menu,name:base_continent.menu_continent_partner +msgid "Continents" +msgstr "Continentes" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_country +msgid "Country" +msgstr "País" + +#. module: base_continent +#: field:res.continent,create_uid:0 +msgid "Created by" +msgstr "Creado por" + +#. module: base_continent +#: field:res.continent,create_date:0 +msgid "Created on" +msgstr "Creado en" + +#. module: base_continent +#: model:ir.actions.act_window,help:base_continent.action_continent +msgid "" +"Display and manage the list of all continents that can be assigned to your " +"partner records." +msgstr "Muestra y gestiona la lista de todos los continentes que pueden asignarse a sus registros de socio." + +#. module: base_continent +#: model:res.continent,name:base_continent.eu +msgid "Europe" +msgstr "Europa" + +#. module: base_continent +#: field:res.continent,id:0 +msgid "ID" +msgstr "ID" + +#. module: base_continent +#: field:res.continent,write_uid:0 +msgid "Last Updated by" +msgstr "Última actualización por" + +#. module: base_continent +#: field:res.continent,write_date:0 +msgid "Last Updated on" +msgstr "Última actualización en" + +#. module: base_continent +#: model:res.continent,name:base_continent.na +msgid "North America" +msgstr "América del Norte" + +#. module: base_continent +#: model:res.continent,name:base_continent.oc +msgid "Oceania" +msgstr "Oceanía" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_partner +msgid "Partner" +msgstr "Socio" + +#. module: base_continent +#: model:res.continent,name:base_continent.sa +msgid "South America" +msgstr "América del Sur" + +#. module: base_continent +#: help:res.continent,name:0 +msgid "The full name of the continent." +msgstr "El nombre completo del continente." diff --git a/base_continent/i18n/fr.po b/base_continent/i18n/fr.po new file mode 100644 index 000000000..c0247b526 --- /dev/null +++ b/base_continent/i18n/fr.po @@ -0,0 +1,139 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_continent +# +msgid "" +msgstr "" +"Project-Id-Version: Odoo Server 10.0\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2017-08-11 09:58+0000\n" +"PO-Revision-Date: 2017-08-11 09:58+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: base_continent +#: model:res.continent,name:base_continent.af +msgid "Africa" +msgstr "Afrique" + +#. module: base_continent +#: model:res.continent,name:base_continent.an +msgid "Antarctica" +msgstr "Antarctique" + +#. module: base_continent +#: model:res.continent,name:base_continent.as +msgid "Asia" +msgstr "Asie" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_continent +#: model:ir.model.fields,field_description:base_continent.field_res_country_continent_id +#: model:ir.model.fields,field_description:base_continent.field_res_partner_continent_id +#: model:ir.model.fields,field_description:base_continent.field_res_users_continent_id +#: model:ir.ui.view,arch_db:base_continent.view_continent_form +#: model:ir.ui.view,arch_db:base_continent.view_continent_tree +msgid "Continent" +msgstr "Continent" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_code +msgid "Continent Code" +msgstr "Code du continent" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_name +msgid "Continent Name" +msgstr "Nom du continent" + +#. module: base_continent +#: model:ir.actions.act_window,name:base_continent.action_continent +#: model:ir.ui.menu,name:base_continent.menu_continent_partner +msgid "Continents" +msgstr "Continents" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_countries +#: model:ir.ui.view,arch_db:base_continent.view_continent_form +msgid "Countries" +msgstr "Pays" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_country +msgid "Country" +msgstr "Pays" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_create_uid +msgid "Created by" +msgstr "Créé par" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_create_date +msgid "Created on" +msgstr "Créé le" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_display_name +msgid "Display Name" +msgstr "Nom affiché" + +#. module: base_continent +#: model:ir.actions.act_window,help:base_continent.action_continent +msgid "Display and manage the list of all continents that can be assigned to your partner records." +msgstr "Affiche et gère la liste de tous les continents qui peuvent être associés à vos partenaires." + +#. module: base_continent +#: model:res.continent,name:base_continent.eu +msgid "Europe" +msgstr "Europe" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_id +msgid "ID" +msgstr "ID" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent___last_update +msgid "Last Modified on" +msgstr "Dernière Modification le" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_write_uid +msgid "Last Updated by" +msgstr "Dernière mise à jour par" + +#. module: base_continent +#: model:ir.model.fields,field_description:base_continent.field_res_continent_write_date +msgid "Last Updated on" +msgstr "Dernière mise à jour le" + +#. module: base_continent +#: model:res.continent,name:base_continent.na +msgid "North America" +msgstr "Amérique du Nord" + +#. module: base_continent +#: model:res.continent,name:base_continent.oc +msgid "Oceania" +msgstr "Océanie" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_partner +msgid "Partner" +msgstr "Partenaire" + +#. module: base_continent +#: model:res.continent,name:base_continent.sa +msgid "South America" +msgstr "Amérique du Sud" + +#. module: base_continent +#: model:ir.model.fields,help:base_continent.field_res_continent_name +msgid "The full name of the continent." +msgstr "Le nom complet du continent." + diff --git a/base_continent/i18n/nl.po b/base_continent/i18n/nl.po new file mode 100644 index 000000000..b28c2e99b --- /dev/null +++ b/base_continent/i18n/nl.po @@ -0,0 +1,120 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_continent +# +# Translators: +# lfreeke , 2015 +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-09-23 21:40+0000\n" +"PO-Revision-Date: 2015-10-01 12:32+0000\n" +"Last-Translator: lfreeke \n" +"Language-Team: Dutch (http://www.transifex.com/oca/OCA-partner-contact-8-0/language/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: base_continent +#: model:res.continent,name:base_continent.af +msgid "Africa" +msgstr "Afrika" + +#. module: base_continent +#: model:res.continent,name:base_continent.an +msgid "Antarctica" +msgstr "Antarctica" + +#. module: base_continent +#: model:res.continent,name:base_continent.as +msgid "Asia" +msgstr "Azië" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_continent +#: view:res.continent:base_continent.view_continent_form +#: view:res.continent:base_continent.view_continent_tree +#: field:res.country,continent_id:0 field:res.partner,continent_id:0 +msgid "Continent" +msgstr "Continent" + +#. module: base_continent +#: field:res.continent,name:0 +msgid "Continent Name" +msgstr "Continent naam" + +#. module: base_continent +#: model:ir.actions.act_window,name:base_continent.action_continent +#: model:ir.ui.menu,name:base_continent.menu_continent_partner +msgid "Continents" +msgstr "Continenten" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_country +msgid "Country" +msgstr "Land" + +#. module: base_continent +#: field:res.continent,create_uid:0 +msgid "Created by" +msgstr "Aangemaakt door" + +#. module: base_continent +#: field:res.continent,create_date:0 +msgid "Created on" +msgstr "Aangemaakt op" + +#. module: base_continent +#: model:ir.actions.act_window,help:base_continent.action_continent +msgid "" +"Display and manage the list of all continents that can be assigned to your " +"partner records." +msgstr "" + +#. module: base_continent +#: model:res.continent,name:base_continent.eu +msgid "Europe" +msgstr "Europa" + +#. module: base_continent +#: field:res.continent,id:0 +msgid "ID" +msgstr "ID" + +#. module: base_continent +#: field:res.continent,write_uid:0 +msgid "Last Updated by" +msgstr "Laatst bijgewerkt door" + +#. module: base_continent +#: field:res.continent,write_date:0 +msgid "Last Updated on" +msgstr "Laatst bijgewerkt op" + +#. module: base_continent +#: model:res.continent,name:base_continent.na +msgid "North America" +msgstr "Noord-Amerika" + +#. module: base_continent +#: model:res.continent,name:base_continent.oc +msgid "Oceania" +msgstr "Oceanië" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_partner +msgid "Partner" +msgstr "Partner" + +#. module: base_continent +#: model:res.continent,name:base_continent.sa +msgid "South America" +msgstr "Zuid-Amerika" + +#. module: base_continent +#: help:res.continent,name:0 +msgid "The full name of the continent." +msgstr "De volledige naam van het continent" diff --git a/base_continent/i18n/pt_BR.po b/base_continent/i18n/pt_BR.po new file mode 100644 index 000000000..62a6c11cc --- /dev/null +++ b/base_continent/i18n/pt_BR.po @@ -0,0 +1,120 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_continent +# +# Translators: +# danimaribeiro , 2015 +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-28 15:54+0000\n" +"PO-Revision-Date: 2015-07-20 19:18+0000\n" +"Last-Translator: danimaribeiro \n" +"Language-Team: Portuguese (Brazil) (http://www.transifex.com/oca/OCA-partner-contact-8-0/language/pt_BR/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: pt_BR\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#. module: base_continent +#: model:res.continent,name:base_continent.af +msgid "Africa" +msgstr "África" + +#. module: base_continent +#: model:res.continent,name:base_continent.an +msgid "Antarctica" +msgstr "Antartida" + +#. module: base_continent +#: model:res.continent,name:base_continent.as +msgid "Asia" +msgstr "Ásia" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_continent +#: view:res.continent:base_continent.view_continent_form +#: view:res.continent:base_continent.view_continent_tree +#: field:res.country,continent_id:0 field:res.partner,continent_id:0 +msgid "Continent" +msgstr "Continente" + +#. module: base_continent +#: field:res.continent,name:0 +msgid "Continent Name" +msgstr "Nome continente" + +#. module: base_continent +#: model:ir.actions.act_window,name:base_continent.action_continent +#: model:ir.ui.menu,name:base_continent.menu_continent_partner +msgid "Continents" +msgstr "Continentes" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_country +msgid "Country" +msgstr "País" + +#. module: base_continent +#: field:res.continent,create_uid:0 +msgid "Created by" +msgstr "Criado por" + +#. module: base_continent +#: field:res.continent,create_date:0 +msgid "Created on" +msgstr "Criado em" + +#. module: base_continent +#: model:ir.actions.act_window,help:base_continent.action_continent +msgid "" +"Display and manage the list of all continents that can be assigned to your " +"partner records." +msgstr "Mostra e gerencia a lista de todos os continentes que podem ser setados nos registros de parceiros." + +#. module: base_continent +#: model:res.continent,name:base_continent.eu +msgid "Europe" +msgstr "Europa" + +#. module: base_continent +#: field:res.continent,id:0 +msgid "ID" +msgstr "ID" + +#. module: base_continent +#: field:res.continent,write_uid:0 +msgid "Last Updated by" +msgstr "Útima atualização por" + +#. module: base_continent +#: field:res.continent,write_date:0 +msgid "Last Updated on" +msgstr "Útima atualização em" + +#. module: base_continent +#: model:res.continent,name:base_continent.na +msgid "North America" +msgstr "América do Norte" + +#. module: base_continent +#: model:res.continent,name:base_continent.oc +msgid "Oceania" +msgstr "Oceania" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_partner +msgid "Partner" +msgstr "Parceiro" + +#. module: base_continent +#: model:res.continent,name:base_continent.sa +msgid "South America" +msgstr "América do Sul" + +#. module: base_continent +#: help:res.continent,name:0 +msgid "The full name of the continent." +msgstr "O nome completo do continente" diff --git a/base_continent/i18n/sl.po b/base_continent/i18n/sl.po new file mode 100644 index 000000000..e37f29853 --- /dev/null +++ b/base_continent/i18n/sl.po @@ -0,0 +1,120 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * base_continent +# +# Translators: +# Matjaž Mozetič , 2015 +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-08-28 15:54+0000\n" +"PO-Revision-Date: 2015-05-24 04:54+0000\n" +"Last-Translator: Matjaž Mozetič \n" +"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-partner-contact-8-0/language/sl/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: sl\n" +"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" + +#. module: base_continent +#: model:res.continent,name:base_continent.af +msgid "Africa" +msgstr "Afrika" + +#. module: base_continent +#: model:res.continent,name:base_continent.an +msgid "Antarctica" +msgstr "Antartika" + +#. module: base_continent +#: model:res.continent,name:base_continent.as +msgid "Asia" +msgstr "Azija" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_continent +#: view:res.continent:base_continent.view_continent_form +#: view:res.continent:base_continent.view_continent_tree +#: field:res.country,continent_id:0 field:res.partner,continent_id:0 +msgid "Continent" +msgstr "Celina" + +#. module: base_continent +#: field:res.continent,name:0 +msgid "Continent Name" +msgstr "Naziv celine" + +#. module: base_continent +#: model:ir.actions.act_window,name:base_continent.action_continent +#: model:ir.ui.menu,name:base_continent.menu_continent_partner +msgid "Continents" +msgstr "Celine" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_country +msgid "Country" +msgstr "Država" + +#. module: base_continent +#: field:res.continent,create_uid:0 +msgid "Created by" +msgstr "Ustvaril" + +#. module: base_continent +#: field:res.continent,create_date:0 +msgid "Created on" +msgstr "Ustvarjeno" + +#. module: base_continent +#: model:ir.actions.act_window,help:base_continent.action_continent +msgid "" +"Display and manage the list of all continents that can be assigned to your " +"partner records." +msgstr "Prikaz in upravljanje seznama vseh celin, ki so lahko dodeljene zapisom partnerjev." + +#. module: base_continent +#: model:res.continent,name:base_continent.eu +msgid "Europe" +msgstr "Evropa" + +#. module: base_continent +#: field:res.continent,id:0 +msgid "ID" +msgstr "ID" + +#. module: base_continent +#: field:res.continent,write_uid:0 +msgid "Last Updated by" +msgstr "Zadnji posodobil" + +#. module: base_continent +#: field:res.continent,write_date:0 +msgid "Last Updated on" +msgstr "Zadnjič posodobljeno" + +#. module: base_continent +#: model:res.continent,name:base_continent.na +msgid "North America" +msgstr "Severna Amerika" + +#. module: base_continent +#: model:res.continent,name:base_continent.oc +msgid "Oceania" +msgstr "Oceanija" + +#. module: base_continent +#: model:ir.model,name:base_continent.model_res_partner +msgid "Partner" +msgstr "Partner" + +#. module: base_continent +#: model:res.continent,name:base_continent.sa +msgid "South America" +msgstr "Južna Amerika" + +#. module: base_continent +#: help:res.continent,name:0 +msgid "The full name of the continent." +msgstr "Celotni naziv celine" diff --git a/base_continent/models/__init__.py b/base_continent/models/__init__.py new file mode 100644 index 000000000..4e5b30102 --- /dev/null +++ b/base_continent/models/__init__.py @@ -0,0 +1,22 @@ +# -*- encoding: utf-8 -*- +############################################################################## +# +# Author: Quentin Theuret +# Copyright 2017 SenseFly, Amaris +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +############################################################################## + +from . import models diff --git a/base_continent/models/models.py b/base_continent/models/models.py new file mode 100644 index 000000000..1c44df381 --- /dev/null +++ b/base_continent/models/models.py @@ -0,0 +1,57 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# Author: Romain Deheele +# Copyright 2014 Camptocamp SA +# +# Author: Quentin Theuret +# Copyright 2017 SenseFly, Amaris +# +# 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 odoo import models, fields + + +class Continent(models.Model): + _name = 'res.continent' + _description = 'Continent' + _order = 'name' + + name = fields.Char(string='Continent Name', translate=True, + help='The full name of the continent', required=True) + code = fields.Char(string='Continent Code', size=2, required=True) + countries = fields.One2many(comodel_name='res.country', + inverse_name='continent_id', string='Countries', readonly=True) + + +class Country(models.Model): + _inherit = 'res.country' + + continent_id = fields.Many2one(comodel_name='res.continent', string='Continent') + + +class Partner(models.Model): + _inherit = 'res.partner' + + continent_id = fields.Many2one(comodel_name='res.continent', string='Continent', + readonly=True, store=True, related='country_id.continent_id') + + +class Company(models.Model): + _inherit = 'res.company' + + continent_id = fields.Many2one(comodel_name='res.continent', string='Continent', + readonly=True, store=True, related='country_id.continent_id') diff --git a/base_continent/security/ir.model.access.csv b/base_continent/security/ir.model.access.csv new file mode 100644 index 000000000..69ee73366 --- /dev/null +++ b/base_continent/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_res_continent_group_all,res_continent group_user_all,model_res_continent,,1,0,0,0 +access_res_continent_group_user,res_continent group_user,model_res_continent,base.group_partner_manager,1,1,1,1 diff --git a/base_continent/static/description/icon.png b/base_continent/static/description/icon.png new file mode 100644 index 000000000..3a0328b51 Binary files /dev/null and b/base_continent/static/description/icon.png differ diff --git a/base_continent/views/base_continent_view.xml b/base_continent/views/base_continent_view.xml new file mode 100644 index 000000000..3f674c5d8 --- /dev/null +++ b/base_continent/views/base_continent_view.xml @@ -0,0 +1,101 @@ + + + + + res.country.tree.add_continent + res.country + + + + + + + + + + + res.country.form.add_continent + res.country + + + + + + + + + + res.continent.tree + res.continent + + + + + + + + + + res.continent.form + res.continent + +
+ + + + + + + + + + + + + +
+
+
+ + + Continents + ir.actions.act_window + res.continent + form + Display and manage the list of all continents that can be assigned to your partner records. + + + + + + + res.company.form.continent + res.company + + + +
+
+ + +
+
+
+
+ + + + res.partner.form.add_continent + res.partner + + + +
+
+ + +
+
+
+
+