diff --git a/partner_academic_title/README.rst b/partner_academic_title/README.rst new file mode 100644 index 000000000..5cdf52680 --- /dev/null +++ b/partner_academic_title/README.rst @@ -0,0 +1,34 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +====================== +Partner Academic Title +====================== + +This module was written to adds possibility to define some academic titles and +to add multiple titles on partners. there is a sequence on titles to display +them in an order on the partner. + +Credits +======= + +Contributors +------------ + +* Stéphane Bidoul +* Adrien Peiffer +* Meyomesse Gilles + +Maintainer +---------- + +.. image:: http://odoo-community.org/logo.png + :alt: Odoo Community Association + :target: http://odoo-community.org + +This module is maintained by the OCA. + +OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. + +To contribute to this module, please visit http://odoo-community.org. \ No newline at end of file diff --git a/partner_academic_title/__init__.py b/partner_academic_title/__init__.py new file mode 100644 index 000000000..0650744f6 --- /dev/null +++ b/partner_academic_title/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/partner_academic_title/__manifest__.py b/partner_academic_title/__manifest__.py new file mode 100644 index 000000000..fc742a08f --- /dev/null +++ b/partner_academic_title/__manifest__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +# Copyright 2015-2017 ACSONE SA/NV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). +{ + 'name': "Partner Academic Title", + 'summary': """ + Add possibility to define some academic title""", + 'author': 'ACSONE SA/NV,Odoo Community Association (OCA)', + 'website': "http://acsone.eu", + 'category': 'Other', + 'version': '10.0.1.0.0', + 'license': 'AGPL-3', + 'depends': [ + 'hr', + 'partner_contact_configuration', + ], + 'data': [ + 'security/ir.model.access.csv', + 'data/partner_academic_title_data.xml', + 'views/partner_academic_title_view.xml', + 'views/res_partner_view.xml', + ], +} diff --git a/partner_academic_title/data/partner_academic_title_data.xml b/partner_academic_title/data/partner_academic_title_data.xml new file mode 100644 index 000000000..c84583192 --- /dev/null +++ b/partner_academic_title/data/partner_academic_title_data.xml @@ -0,0 +1,51 @@ + + + + + + B.S. + 1 + + + M.S. + 2 + + + M.P.H. + 3 + + + M.B.A. + 4 + + + M.D. + 5 + + + Ph.D. + 6 + + + Ed.D + 7 + + + Psy.D. + 8 + + + Th.D. + 9 + + + Pharm.D. + 10 + + + J.D. + 11 + + + diff --git a/partner_academic_title/i18n/de.po b/partner_academic_title/i18n/de.po new file mode 100644 index 000000000..f0d5a2167 --- /dev/null +++ b/partner_academic_title/i18n/de.po @@ -0,0 +1,133 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_academic_title +# +# Translators: +# Rudolf Schnapka , 2015 +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2015-11-25 01:50+0000\n" +"PO-Revision-Date: 2015-11-25 11:07+0000\n" +"Last-Translator: Rudolf Schnapka \n" +"Language-Team: German (http://www.transifex.com/oca/OCA-partner-contact-8-0/language/de/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: de\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_academic_title +#: model:ir.actions.act_window,name:partner_academic_title.open_academic_title +#: model:ir.ui.menu,name:partner_academic_title.menu_academic_title +#: view:res.partner:partner_academic_title.view_partner_form +#: field:res.partner,academic_title_display:0 +#: field:res.partner,academic_title_ids:0 +msgid "Academic Titles" +msgstr "Akademische Titel" + +#. module: partner_academic_title +#: field:partner.academic.title,active:0 +msgid "Active" +msgstr "Aktiv" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_bs +msgid "B.S." +msgstr "B.Sc." + +#. module: partner_academic_title +#: field:partner.academic.title,create_uid:0 +msgid "Created by" +msgstr "Angelegt durch" + +#. module: partner_academic_title +#: field:partner.academic.title,create_date:0 +msgid "Created on" +msgstr "Angelegt am" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_edd +msgid "Ed.D" +msgstr "Ed.D." + +#. module: partner_academic_title +#: field:partner.academic.title,id:0 +msgid "ID" +msgstr "ID" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_jd +msgid "J.D." +msgstr "J.D." + +#. module: partner_academic_title +#: field:partner.academic.title,write_uid:0 +msgid "Last Updated by" +msgstr "Zuletzt aktualisiert durch" + +#. module: partner_academic_title +#: field:partner.academic.title,write_date:0 +msgid "Last Updated on" +msgstr "Zuletzt aktualisiert am" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_mba +msgid "M.B.A." +msgstr "M.B.A." + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_md +msgid "M.D." +msgstr "M.D." + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_mph +msgid "M.P.H." +msgstr "M.P.H." + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_ms +msgid "M.S." +msgstr "M.S." + +#. module: partner_academic_title +#: field:partner.academic.title,name:0 +msgid "Name" +msgstr "Bezeichnung" + +#. module: partner_academic_title +#: model:ir.model,name:partner_academic_title.model_res_partner +msgid "Partner" +msgstr "Partner" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_phd +msgid "Ph.D." +msgstr "Ph.D." + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_pharmd +msgid "Pharm.D." +msgstr "Pharm.D." + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_psyd +msgid "Psy.D." +msgstr "Psy.D." + +#. module: partner_academic_title +#: field:partner.academic.title,sequence:0 +msgid "Sequence" +msgstr "Reihenfolge" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_thd +msgid "Th.D." +msgstr "Th.D." + +#. module: partner_academic_title +#: help:partner.academic.title,sequence:0 +msgid "defines the order to display titles" +msgstr "legt die Reihenfolge der Anzeige der Titel fest" diff --git a/partner_academic_title/i18n/es.po b/partner_academic_title/i18n/es.po new file mode 100644 index 000000000..f3c29ff56 --- /dev/null +++ b/partner_academic_title/i18n/es.po @@ -0,0 +1,145 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_academic_title +# +# Translators: +# Antonio Trueba, 2016 +# Antonio Trueba, 2016 +# Oihane Crucelaegui , 2016 +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-07-25 11:58+0000\n" +"PO-Revision-Date: 2016-07-14 09:05+0000\n" +"Last-Translator: Oihane Crucelaegui \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: partner_academic_title +#: model:ir.actions.act_window,name:partner_academic_title.open_academic_title +#: model:ir.ui.menu,name:partner_academic_title.menu_academic_title +#: view:res.partner:partner_academic_title.view_partner_form +#: field:res.partner,academic_title_display:0 +#: field:res.partner,academic_title_ids:0 +msgid "Academic Titles" +msgstr "Títulos académicos" + +#. module: partner_academic_title +#: field:partner.academic.title,active:0 +msgid "Active" +msgstr "Activo" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_bs +msgid "B.S." +msgstr "" + +#. module: partner_academic_title +#: field:partner.academic.title,create_uid:0 +msgid "Created by" +msgstr "Creado por" + +#. module: partner_academic_title +#: field:partner.academic.title,create_date:0 +msgid "Created on" +msgstr "Creado en" + +#. module: partner_academic_title +#: field:partner.academic.title,display_name:0 +msgid "Display Name" +msgstr "Nombre mostrado" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_edd +msgid "Ed.D" +msgstr "" + +#. module: partner_academic_title +#: field:partner.academic.title,id:0 +msgid "ID" +msgstr "ID" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_jd +msgid "J.D." +msgstr "" + +#. module: partner_academic_title +#: field:partner.academic.title,__last_update:0 +msgid "Last Modified on" +msgstr "Última modificación el" + +#. module: partner_academic_title +#: field:partner.academic.title,write_uid:0 +msgid "Last Updated by" +msgstr "Última actualización por" + +#. module: partner_academic_title +#: field:partner.academic.title,write_date:0 +msgid "Last Updated on" +msgstr "Última actualización en" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_mba +msgid "M.B.A." +msgstr "" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_md +msgid "M.D." +msgstr "" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_mph +msgid "M.P.H." +msgstr "" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_ms +msgid "M.S." +msgstr "" + +#. module: partner_academic_title +#: field:partner.academic.title,name:0 +msgid "Name" +msgstr "Nombre" + +#. module: partner_academic_title +#: model:ir.model,name:partner_academic_title.model_res_partner +msgid "Partner" +msgstr "Empresa" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_phd +msgid "Ph.D." +msgstr "" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_pharmd +msgid "Pharm.D." +msgstr "" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_psyd +msgid "Psy.D." +msgstr "" + +#. module: partner_academic_title +#: field:partner.academic.title,sequence:0 +msgid "Sequence" +msgstr "Secuencia" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_thd +msgid "Th.D." +msgstr "" + +#. module: partner_academic_title +#: help:partner.academic.title,sequence:0 +msgid "defines the order to display titles" +msgstr "" diff --git a/partner_academic_title/i18n/fi.po b/partner_academic_title/i18n/fi.po new file mode 100644 index 000000000..8226e748e --- /dev/null +++ b/partner_academic_title/i18n/fi.po @@ -0,0 +1,132 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_academic_title +# +# Translators: +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-01-19 01:46+0000\n" +"PO-Revision-Date: 2015-11-24 19:52+0000\n" +"Last-Translator: <>\n" +"Language-Team: Finnish (http://www.transifex.com/oca/OCA-partner-contact-8-0/language/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_academic_title +#: model:ir.actions.act_window,name:partner_academic_title.open_academic_title +#: model:ir.ui.menu,name:partner_academic_title.menu_academic_title +#: view:res.partner:partner_academic_title.view_partner_form +#: field:res.partner,academic_title_display:0 +#: field:res.partner,academic_title_ids:0 +msgid "Academic Titles" +msgstr "" + +#. module: partner_academic_title +#: field:partner.academic.title,active:0 +msgid "Active" +msgstr "" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_bs +msgid "B.S." +msgstr "" + +#. module: partner_academic_title +#: field:partner.academic.title,create_uid:0 +msgid "Created by" +msgstr "Luonut" + +#. module: partner_academic_title +#: field:partner.academic.title,create_date:0 +msgid "Created on" +msgstr "Luotu" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_edd +msgid "Ed.D" +msgstr "" + +#. module: partner_academic_title +#: field:partner.academic.title,id:0 +msgid "ID" +msgstr "ID" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_jd +msgid "J.D." +msgstr "" + +#. module: partner_academic_title +#: field:partner.academic.title,write_uid:0 +msgid "Last Updated by" +msgstr "Viimeksi päivitetty" + +#. module: partner_academic_title +#: field:partner.academic.title,write_date:0 +msgid "Last Updated on" +msgstr "Viimeksi päivittänyt" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_mba +msgid "M.B.A." +msgstr "" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_md +msgid "M.D." +msgstr "" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_mph +msgid "M.P.H." +msgstr "" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_ms +msgid "M.S." +msgstr "" + +#. module: partner_academic_title +#: field:partner.academic.title,name:0 +msgid "Name" +msgstr "Nimi" + +#. module: partner_academic_title +#: model:ir.model,name:partner_academic_title.model_res_partner +msgid "Partner" +msgstr "Kumppani" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_phd +msgid "Ph.D." +msgstr "" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_pharmd +msgid "Pharm.D." +msgstr "" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_psyd +msgid "Psy.D." +msgstr "" + +#. module: partner_academic_title +#: field:partner.academic.title,sequence:0 +msgid "Sequence" +msgstr "" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_thd +msgid "Th.D." +msgstr "" + +#. module: partner_academic_title +#: help:partner.academic.title,sequence:0 +msgid "defines the order to display titles" +msgstr "" diff --git a/partner_academic_title/i18n/it.po b/partner_academic_title/i18n/it.po new file mode 100644 index 000000000..0ea49df8b --- /dev/null +++ b/partner_academic_title/i18n/it.po @@ -0,0 +1,133 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_academic_title +# +# Translators: +# Paolo Valier, 2016 +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-03-13 00:57+0000\n" +"PO-Revision-Date: 2016-03-13 17:22+0000\n" +"Last-Translator: Paolo Valier\n" +"Language-Team: Italian (http://www.transifex.com/oca/OCA-partner-contact-8-0/language/it/)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: \n" +"Language: it\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. module: partner_academic_title +#: model:ir.actions.act_window,name:partner_academic_title.open_academic_title +#: model:ir.ui.menu,name:partner_academic_title.menu_academic_title +#: view:res.partner:partner_academic_title.view_partner_form +#: field:res.partner,academic_title_display:0 +#: field:res.partner,academic_title_ids:0 +msgid "Academic Titles" +msgstr "Titoli Accademici" + +#. module: partner_academic_title +#: field:partner.academic.title,active:0 +msgid "Active" +msgstr "Attivo" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_bs +msgid "B.S." +msgstr "" + +#. module: partner_academic_title +#: field:partner.academic.title,create_uid:0 +msgid "Created by" +msgstr "Creato da" + +#. module: partner_academic_title +#: field:partner.academic.title,create_date:0 +msgid "Created on" +msgstr "Creato il" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_edd +msgid "Ed.D" +msgstr "" + +#. module: partner_academic_title +#: field:partner.academic.title,id:0 +msgid "ID" +msgstr "ID" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_jd +msgid "J.D." +msgstr "" + +#. module: partner_academic_title +#: field:partner.academic.title,write_uid:0 +msgid "Last Updated by" +msgstr "Ultimo aggiornamento di" + +#. module: partner_academic_title +#: field:partner.academic.title,write_date:0 +msgid "Last Updated on" +msgstr "Ultimo aggiornamento il" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_mba +msgid "M.B.A." +msgstr "" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_md +msgid "M.D." +msgstr "" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_mph +msgid "M.P.H." +msgstr "" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_ms +msgid "M.S." +msgstr "" + +#. module: partner_academic_title +#: field:partner.academic.title,name:0 +msgid "Name" +msgstr "Nome" + +#. module: partner_academic_title +#: model:ir.model,name:partner_academic_title.model_res_partner +msgid "Partner" +msgstr "Partner" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_phd +msgid "Ph.D." +msgstr "" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_pharmd +msgid "Pharm.D." +msgstr "" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_psyd +msgid "Psy.D." +msgstr "" + +#. module: partner_academic_title +#: field:partner.academic.title,sequence:0 +msgid "Sequence" +msgstr "Sequenza" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_thd +msgid "Th.D." +msgstr "" + +#. module: partner_academic_title +#: help:partner.academic.title,sequence:0 +msgid "defines the order to display titles" +msgstr "definisce l'ordine dei titoli." diff --git a/partner_academic_title/i18n/sl.po b/partner_academic_title/i18n/sl.po new file mode 100644 index 000000000..75e45069d --- /dev/null +++ b/partner_academic_title/i18n/sl.po @@ -0,0 +1,143 @@ +# Translation of Odoo Server. +# This file contains the translation of the following modules: +# * partner_academic_title +# +# Translators: +# Matjaž Mozetič , 2015-2016 +msgid "" +msgstr "" +"Project-Id-Version: partner-contact (8.0)\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2016-05-07 07:18+0000\n" +"PO-Revision-Date: 2016-05-07 07:14+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: partner_academic_title +#: model:ir.actions.act_window,name:partner_academic_title.open_academic_title +#: model:ir.ui.menu,name:partner_academic_title.menu_academic_title +#: view:res.partner:partner_academic_title.view_partner_form +#: field:res.partner,academic_title_display:0 +#: field:res.partner,academic_title_ids:0 +msgid "Academic Titles" +msgstr "Akademski nazivi" + +#. module: partner_academic_title +#: field:partner.academic.title,active:0 +msgid "Active" +msgstr "Aktivno" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_bs +msgid "B.S." +msgstr "Dipl.ing." + +#. module: partner_academic_title +#: field:partner.academic.title,create_uid:0 +msgid "Created by" +msgstr "Ustvaril" + +#. module: partner_academic_title +#: field:partner.academic.title,create_date:0 +msgid "Created on" +msgstr "Ustvarjeno" + +#. module: partner_academic_title +#: field:partner.academic.title,display_name:0 +msgid "Display Name" +msgstr "Prikazni naziv" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_edd +msgid "Ed.D" +msgstr "dr. docent" + +#. module: partner_academic_title +#: field:partner.academic.title,id:0 +msgid "ID" +msgstr "ID" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_jd +msgid "J.D." +msgstr "dr. prava" + +#. module: partner_academic_title +#: field:partner.academic.title,__last_update:0 +msgid "Last Modified on" +msgstr "Zadnjič spremenjeno" + +#. module: partner_academic_title +#: field:partner.academic.title,write_uid:0 +msgid "Last Updated by" +msgstr "Zadnji posodobil" + +#. module: partner_academic_title +#: field:partner.academic.title,write_date:0 +msgid "Last Updated on" +msgstr "Zadnjič posodobljeno" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_mba +msgid "M.B.A." +msgstr "M.B.A." + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_md +msgid "M.D." +msgstr "dr.med." + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_mph +msgid "M.P.H." +msgstr "mag.jav.zdr." + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_ms +msgid "M.S." +msgstr "mag.znan." + +#. module: partner_academic_title +#: field:partner.academic.title,name:0 +msgid "Name" +msgstr "Naziv" + +#. module: partner_academic_title +#: model:ir.model,name:partner_academic_title.model_res_partner +msgid "Partner" +msgstr "Partner" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_phd +msgid "Ph.D." +msgstr "dr. filoz." + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_pharmd +msgid "Pharm.D." +msgstr "dr. farm." + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_psyd +msgid "Psy.D." +msgstr "dr. psih." + +#. module: partner_academic_title +#: field:partner.academic.title,sequence:0 +msgid "Sequence" +msgstr "Zaporedje" + +#. module: partner_academic_title +#: model:partner.academic.title,name:partner_academic_title.academic_title_thd +msgid "Th.D." +msgstr "dr. teolog." + +#. module: partner_academic_title +#: help:partner.academic.title,sequence:0 +msgid "defines the order to display titles" +msgstr "določi zaporedje prikaza nazivov" diff --git a/partner_academic_title/models/__init__.py b/partner_academic_title/models/__init__.py new file mode 100644 index 000000000..7e0af305c --- /dev/null +++ b/partner_academic_title/models/__init__.py @@ -0,0 +1,2 @@ +from . import partner_academic_title +from . import res_partner diff --git a/partner_academic_title/models/partner_academic_title.py b/partner_academic_title/models/partner_academic_title.py new file mode 100644 index 000000000..3e4ba6a2a --- /dev/null +++ b/partner_academic_title/models/partner_academic_title.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- +# Copyright 2015-2017 ACSONE SA/NV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import models, fields + + +class PartnerAcademicTitle(models.Model): + _name = 'partner.academic.title' + + name = fields.Char(required=True, + translate=True + ) + sequence = fields.Integer(required=True, + help="""defines the order to display titles""" + ) + active = fields.Boolean(default=True) diff --git a/partner_academic_title/models/res_partner.py b/partner_academic_title/models/res_partner.py new file mode 100644 index 000000000..4e5646dc5 --- /dev/null +++ b/partner_academic_title/models/res_partner.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- +# Copyright 2015-2017 ACSONE SA/NV () +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). + +from odoo import models, fields, api + + +class ResPartner(models.Model): + _inherit = 'res.partner' + + def _get_separator(self): + return ', ' + + @api.depends('academic_title_ids', 'academic_title_ids.sequence') + @api.one + def _get_academic_title_display(self): + display_title = "" + separator = self._get_separator() + title_ids = self.academic_title_ids.sorted(lambda r: r.sequence) + for title in title_ids: + if display_title: + display_title = "%s%s%s" % (display_title, separator, + title.name) + else: + display_title = "%s" % (title.name) + self.academic_title_display = display_title + + academic_title_ids = fields.Many2many( + string='Academic Titles', + comodel_name='partner.academic.title', + relation='partner_academic_title_ref', + column1='partner_id', + column2='academic_title_id' + ) + academic_title_display = fields.Char( + string='Academic Titles', + compute='_get_academic_title_display', + store=True + ) diff --git a/partner_academic_title/security/ir.model.access.csv b/partner_academic_title/security/ir.model.access.csv new file mode 100644 index 000000000..0bb784a10 --- /dev/null +++ b/partner_academic_title/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_partner_academic_title_system,access_academic_title_system,model_partner_academic_title,base.group_system,1,1,1,1 +access_partner_academic_title_user,access_academic_title_user,model_partner_academic_title,base.group_user,1,0,0,0 diff --git a/partner_academic_title/views/partner_academic_title_view.xml b/partner_academic_title/views/partner_academic_title_view.xml new file mode 100644 index 000000000..355f5350e --- /dev/null +++ b/partner_academic_title/views/partner_academic_title_view.xml @@ -0,0 +1,43 @@ + + + + + + partner.academic.title.form + partner.academic.title + +
+ + + + + + + +
+
+
+ + + partner.academic.title.tree + partner.academic.title + + + + + + + + + Academic Titles + partner.academic.title + form + tree,form + + + +
+
diff --git a/partner_academic_title/views/res_partner_view.xml b/partner_academic_title/views/res_partner_view.xml new file mode 100644 index 000000000..b90c42fd0 --- /dev/null +++ b/partner_academic_title/views/res_partner_view.xml @@ -0,0 +1,18 @@ + + + + + + res.partner.form (partner_academic_title) + res.partner + + + + + + + + + + diff --git a/setup/partner_academic_title/odoo/__init__.py b/setup/partner_academic_title/odoo/__init__.py new file mode 100644 index 000000000..de40ea7ca --- /dev/null +++ b/setup/partner_academic_title/odoo/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/setup/partner_academic_title/odoo/addons/__init__.py b/setup/partner_academic_title/odoo/addons/__init__.py new file mode 100644 index 000000000..de40ea7ca --- /dev/null +++ b/setup/partner_academic_title/odoo/addons/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/setup/partner_academic_title/odoo/addons/partner_academic_title b/setup/partner_academic_title/odoo/addons/partner_academic_title new file mode 120000 index 000000000..23a318adc --- /dev/null +++ b/setup/partner_academic_title/odoo/addons/partner_academic_title @@ -0,0 +1 @@ +../../../../partner_academic_title \ No newline at end of file diff --git a/setup/partner_academic_title/setup.py b/setup/partner_academic_title/setup.py new file mode 100644 index 000000000..28c57bb64 --- /dev/null +++ b/setup/partner_academic_title/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)