Browse Source

Merge pull request #635 from Callino/9.0

[ADD] Ported/Added partner_academic_title for Odoo 9 - did work out of the box
pull/720/head
Pedro M. Baeza 6 years ago
committed by GitHub
parent
commit
0871cde03a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 46
      partner_academic_title/README.rst
  2. 2
      partner_academic_title/__init__.py
  3. 22
      partner_academic_title/__openerp__.py
  4. 50
      partner_academic_title/data/partner_academic_title_data.xml
  5. 144
      partner_academic_title/i18n/de.po
  6. 146
      partner_academic_title/i18n/es.po
  7. 144
      partner_academic_title/i18n/eu.po
  8. 144
      partner_academic_title/i18n/fi.po
  9. 145
      partner_academic_title/i18n/it.po
  10. 139
      partner_academic_title/i18n/partner_academic_title.pot
  11. 145
      partner_academic_title/i18n/sl.po
  12. 3
      partner_academic_title/models/__init__.py
  13. 35
      partner_academic_title/models/partner_academic_title.py
  14. 54
      partner_academic_title/models/res_partner.py
  15. 3
      partner_academic_title/security/ir.model.access.csv
  16. 39
      partner_academic_title/views/partner_academic_title_view.xml
  17. 17
      partner_academic_title/views/res_partner_view.xml

46
partner_academic_title/README.rst

@ -0,0 +1,46 @@
.. 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.
Usage
=====
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/partner-contact/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
`here <https://github.com/OCA/partner-contact/issues/new?body=module:%20partner_academic_title%0Aversion:%208.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
Credits
=======
Contributors
------------
* Stéphane Bidoul <stephane.bidoul@acsone.eu>
* Adrien Peiffer <adrien.peiffer@acsone.eu>
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.

2
partner_academic_title/__init__.py

@ -0,0 +1,2 @@
# -*- coding: utf-8 -*-
from . import models

22
partner_academic_title/__openerp__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2015 ACSONE SA/NV (<http://acsone.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
'name': "Partner Academic Title",
'summary': """
Add possibility to define some academic title""",
'author': 'ACSONE SA/NV,Odoo Community Association (OCA)',
'website': "https://github.com/OCA/partner-contact",
'category': 'Other',
'version': '9.0.1.0.0',
'license': 'AGPL-3',
'depends': [
'hr',
],
'data': [
'security/ir.model.access.csv',
'data/partner_academic_title_data.xml',
'views/partner_academic_title_view.xml',
'views/res_partner_view.xml',
],
}

50
partner_academic_title/data/partner_academic_title_data.xml

@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data noupdate="1">
<record id="academic_title_bs" model="partner.academic.title">
<field name="name">B.S.</field>
<field name="sequence">1</field>
</record>
<record id="academic_title_ms" model="partner.academic.title">
<field name="name">M.S.</field>
<field name="sequence">2</field>
</record>
<record id="academic_title_mph" model="partner.academic.title">
<field name="name">M.P.H.</field>
<field name="sequence">3</field>
</record>
<record id="academic_title_mba" model="partner.academic.title">
<field name="name">M.B.A.</field>
<field name="sequence">4</field>
</record>
<record id="academic_title_md" model="partner.academic.title">
<field name="name">M.D.</field>
<field name="sequence">5</field>
</record>
<record id="academic_title_phd" model="partner.academic.title">
<field name="name">Ph.D.</field>
<field name="sequence">6</field>
</record>
<record id="academic_title_edd" model="partner.academic.title">
<field name="name">Ed.D</field>
<field name="sequence">7</field>
</record>
<record id="academic_title_psyd" model="partner.academic.title">
<field name="name">Psy.D.</field>
<field name="sequence">8</field>
</record>
<record id="academic_title_thd" model="partner.academic.title">
<field name="name">Th.D.</field>
<field name="sequence">9</field>
</record>
<record id="academic_title_pharmd" model="partner.academic.title">
<field name="name">Pharm.D.</field>
<field name="sequence">10</field>
</record>
<record id="academic_title_jd" model="partner.academic.title">
<field name="name">J.D.</field>
<field name="sequence">11</field>
</record>
</data>
</openerp>

144
partner_academic_title/i18n/de.po

@ -0,0 +1,144 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_academic_title
#
# Translators:
# Rudolf Schnapka <rs@techno-flex.de>, 2015,2017
msgid ""
msgstr ""
"Project-Id-Version: partner-contact (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-21 16:57+0000\n"
"PO-Revision-Date: 2017-02-24 22:29+0000\n"
"Last-Translator: Rudolf Schnapka <rs@techno-flex.de>\n"
"Language-Team: German (http://www.transifex.com/oca/OCA-partner-contact-8-0/"
"language/de/)\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \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
#: field:partner.academic.title,display_name:0
msgid "Display Name"
msgstr "Anzeigename"
#. 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,__last_update:0
msgid "Last Modified on"
msgstr "Zuletzt verändert am"
#. 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"

146
partner_academic_title/i18n/es.po

@ -0,0 +1,146 @@
# 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 <oihanecruce@gmail.com>, 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 <oihanecruce@gmail.com>\n"
"Language-Team: Spanish (http://www.transifex.com/oca/OCA-partner-contact-8-0/"
"language/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \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 ""

144
partner_academic_title/i18n/eu.po

@ -0,0 +1,144 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_academic_title
#
# Translators:
# Esther Martín Menéndez <esthermartin001@gmail.com>, 2017
msgid ""
msgstr ""
"Project-Id-Version: partner-contact (8.0)\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-02-21 16:57+0000\n"
"PO-Revision-Date: 2017-02-23 15:56+0000\n"
"Last-Translator: Esther Martín Menéndez <esthermartin001@gmail.com>\n"
"Language-Team: Basque (http://www.transifex.com/oca/OCA-partner-contact-8-0/"
"language/eu/)\n"
"Language: eu\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \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 ""
#. module: partner_academic_title
#: field:partner.academic.title,create_date:0
msgid "Created on"
msgstr ""
#. module: partner_academic_title
#: field:partner.academic.title,display_name:0
msgid "Display Name"
msgstr "Izena erakutsi"
#. 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 ""
#. 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 ""
#. module: partner_academic_title
#: field:partner.academic.title,write_uid:0
msgid "Last Updated by"
msgstr ""
#. module: partner_academic_title
#: field:partner.academic.title,write_date:0
msgid "Last Updated on"
msgstr ""
#. 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 "Izena"
#. module: partner_academic_title
#: model:ir.model,name:partner_academic_title.model_res_partner
msgid "Partner"
msgstr "Kidea"
#. 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 ""

144
partner_academic_title/i18n/fi.po

@ -0,0 +1,144 @@
# 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"
"Language: fi\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \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
#: field:partner.academic.title,display_name:0
msgid "Display Name"
msgstr ""
#. 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
#, fuzzy
msgid "Last Modified on"
msgstr "Viimeksi päivittänyt"
#. 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 ""

145
partner_academic_title/i18n/it.po

@ -0,0 +1,145 @@
# 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"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \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
#: field:partner.academic.title,display_name:0
msgid "Display Name"
msgstr ""
#. 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
#, fuzzy
msgid "Last Modified on"
msgstr "Ultimo aggiornamento il"
#. 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."

139
partner_academic_title/i18n/partner_academic_title.pot

@ -0,0 +1,139 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_academic_title
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \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_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 ""
#. module: partner_academic_title
#: field:partner.academic.title,create_date:0
msgid "Created on"
msgstr ""
#. module: partner_academic_title
#: field:partner.academic.title,display_name:0
msgid "Display Name"
msgstr ""
#. 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 ""
#. 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 ""
#. module: partner_academic_title
#: field:partner.academic.title,write_uid:0
msgid "Last Updated by"
msgstr ""
#. module: partner_academic_title
#: field:partner.academic.title,write_date:0
msgid "Last Updated on"
msgstr ""
#. 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 ""
#. module: partner_academic_title
#: model:ir.model,name:partner_academic_title.model_res_partner
msgid "Partner"
msgstr ""
#. 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 ""

145
partner_academic_title/i18n/sl.po

@ -0,0 +1,145 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * partner_academic_title
#
# Translators:
# Matjaž Mozetič <m.mozetic@matmoz.si>, 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č <m.mozetic@matmoz.si>\n"
"Language-Team: Slovenian (http://www.transifex.com/oca/OCA-partner-"
"contact-8-0/language/sl/)\n"
"Language: sl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \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"

3
partner_academic_title/models/__init__.py

@ -0,0 +1,3 @@
# -*- coding: utf-8 -*-
from . import partner_academic_title
from . import res_partner

35
partner_academic_title/models/partner_academic_title.py

@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# This file is part of partner_academic_title,
# an Odoo module.
#
# Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>)
#
# partner_academic_title 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.
#
# partner_academic_title 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 partner_academic_title.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from openerp 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)

54
partner_academic_title/models/res_partner.py

@ -0,0 +1,54 @@
# -*- coding: utf-8 -*-
##############################################################################
#
# This file is part of partner_academic_title,
# an Odoo module.
#
# Copyright (c) 2015 ACSONE SA/NV (<http://acsone.eu>)
#
# partner_academic_title 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.
#
# partner_academic_title 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 partner_academic_title.
# If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
from openerp 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(
comodel_name='partner.academic.title',
relation='partner_academic_title_ref', column1='partner_id',
column2='academic_title_id', string='Academic Titles')
academic_title_display = fields.Char(compute='_get_academic_title_display',
string='Academic Titles', store=True)

3
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

39
partner_academic_title/views/partner_academic_title_view.xml

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_academic_title_form" model="ir.ui.view">
<field name="name">partner.academic.title.form</field>
<field name="model">partner.academic.title</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<field name="name" />
<field name="sequence" />
<field name="active" />
</group>
</sheet>
</form>
</field>
</record>
<record id="view_academic_title_tree" model="ir.ui.view">
<field name="name">partner.academic.title.tree</field>
<field name="model">partner.academic.title</field>
<field name="arch" type="xml">
<tree editable="bottom">
<field name="sequence"/>
<field name="name" />
</tree>
</field>
</record>
<record id="open_academic_title" model="ir.actions.act_window">
<field name="name">Academic Titles</field>
<field name="res_model">partner.academic.title</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem id="menu_academic_title" name="Academic Titles" parent="base.menu_config_address_book" groups="base.group_system" action="open_academic_title" sequence="4"/>
</data>
</openerp>

17
partner_academic_title/views/res_partner_view.xml

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<record id="view_partner_form" model="ir.ui.view">
<field name="name">res.partner.form (partner_academic_title)</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='title']" position="after">
<field name="academic_title_ids" class="oe_edit_only" widget="many2many_tags" placeholder="Academic Titles" attrs="{'invisible': [('is_company', '=', True)]}"/>
<field name="academic_title_display" class="oe_read_only" attrs="{'invisible': [('is_company', '=', True)]}" />
</xpath>
</field>
</record>
</data>
</openerp>
Loading…
Cancel
Save