Browse Source
Merge pull request #328 from Tecnativa/9.0-mig-partner_contact_job_position
Merge pull request #328 from Tecnativa/9.0-mig-partner_contact_job_position
9.0 [MIG] partner_contact_job_position migrationpull/329/head
Pedro M. Baeza
8 years ago
committed by
GitHub
16 changed files with 799 additions and 0 deletions
-
71partner_contact_job_position/README.rst
-
6partner_contact_job_position/__init__.py
-
25partner_contact_job_position/__openerp__.py
-
102partner_contact_job_position/i18n/de.po
-
112partner_contact_job_position/i18n/es.po
-
101partner_contact_job_position/i18n/fi.po
-
102partner_contact_job_position/i18n/it.po
-
112partner_contact_job_position/i18n/sl.po
-
6partner_contact_job_position/models/__init__.py
-
42partner_contact_job_position/models/res_partner.py
-
5partner_contact_job_position/security/ir.model.access.csv
-
BINpartner_contact_job_position/static/description/icon.png
-
5partner_contact_job_position/tests/__init__.py
-
30partner_contact_job_position/tests/test_recursion.py
-
40partner_contact_job_position/views/res_partner_job_position_view.xml
-
40partner_contact_job_position/views/res_partner_view.xml
@ -0,0 +1,71 @@ |
|||||
|
.. 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 job position |
||||
|
==================== |
||||
|
|
||||
|
This module extends the functionality of partners job position to support |
||||
|
having them categorized in tree form and allow you to choose a categorized job |
||||
|
position for your contacts in addition to the current custom string for job |
||||
|
position. |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
|
||||
|
To configure job positions, you need to: |
||||
|
|
||||
|
* Go to *Sales > Configuration > Address Book > Job Positions*. |
||||
|
|
||||
|
Usage |
||||
|
===== |
||||
|
|
||||
|
To use this module, you need to: |
||||
|
|
||||
|
* Go to any partner's form. |
||||
|
* Use the new *Categorized job position* field. |
||||
|
|
||||
|
.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas |
||||
|
:alt: Try me on Runbot |
||||
|
:target: https://runbot.odoo-community.org/runbot/134/9.0 |
||||
|
|
||||
|
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. |
||||
|
|
||||
|
Credits |
||||
|
======= |
||||
|
|
||||
|
Images |
||||
|
------ |
||||
|
|
||||
|
* Odoo Community Association: `Icon <https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg>`_. |
||||
|
|
||||
|
Contributors |
||||
|
------------ |
||||
|
|
||||
|
* Pedro M. Baeza <pedro.baeza@serviciosbaeza.com> |
||||
|
* Antonio Espinosa <antonioea@antiun.com> |
||||
|
* Rafael Blasco <rafabn@antiun.com> |
||||
|
* Jairo Llopis <yajo.sk8@gmail.com> |
||||
|
* Vicent Cubells <vicent.cubells@tecnativa.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. |
@ -0,0 +1,6 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# © 2014-2016 Tecnativa S.L. - Jairo Llopis |
||||
|
# © 2016 Tecnativa S.L. - Vicent Cubells |
||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
|
|
||||
|
from . import models |
@ -0,0 +1,25 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# © 2014-2016 Tecnativa S.L. - Jairo Llopis |
||||
|
# © 2016 Tecnativa S.L. - Vicent Cubells |
||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
|
|
||||
|
{ |
||||
|
"name": "Partner job position", |
||||
|
"summary": "Categorize job positions for contacts", |
||||
|
"version": "9.0.1.0.0", |
||||
|
'category': 'Customer Relationship Management', |
||||
|
"website": "http://www.tecnativa.com", |
||||
|
'author': 'Tecnativa, ' |
||||
|
"Odoo Community Association (OCA)", |
||||
|
"license": "AGPL-3", |
||||
|
"application": False, |
||||
|
"installable": True, |
||||
|
"depends": [ |
||||
|
"base", |
||||
|
], |
||||
|
"data": [ |
||||
|
'security/ir.model.access.csv', |
||||
|
'views/res_partner_job_position_view.xml', |
||||
|
'views/res_partner_view.xml', |
||||
|
], |
||||
|
} |
@ -0,0 +1,102 @@ |
|||||
|
# Translation of Odoo Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * partner_contact_job_position |
||||
|
# |
||||
|
# Translators: |
||||
|
# Rudolf Schnapka <rs@techno-flex.de>, 2016 |
||||
|
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: 2016-01-18 16:40+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" |
||||
|
"MIME-Version: 1.0\n" |
||||
|
"Content-Type: text/plain; charset=UTF-8\n" |
||||
|
"Content-Transfer-Encoding: \n" |
||||
|
"Language: de\n" |
||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner,job_position_id:0 |
||||
|
msgid "Categorized job position" |
||||
|
msgstr "Kategorisierte Stelle" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,child_ids:0 |
||||
|
msgid "Children" |
||||
|
msgstr "Untergeordnete" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,create_uid:0 |
||||
|
msgid "Created by" |
||||
|
msgstr "Angelegt durch" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,create_date:0 |
||||
|
msgid "Created on" |
||||
|
msgstr "Angelegt am" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,id:0 |
||||
|
msgid "ID" |
||||
|
msgstr "ID" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: model:ir.actions.act_window,name:partner_contact_job_position.res_partner_job_position_action |
||||
|
#: model:ir.ui.menu,name:partner_contact_job_position.menu_res_partner_job_position |
||||
|
msgid "Job Positions" |
||||
|
msgstr "Job-Positionen" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: model:ir.model,name:partner_contact_job_position.model_res_partner_job_position |
||||
|
#: view:res.partner:partner_contact_job_position.view_res_partner_filter_job_position |
||||
|
msgid "Job position" |
||||
|
msgstr "Position" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: view:res.partner.job_position:partner_contact_job_position.res_partner_job_position_form_view |
||||
|
#: view:res.partner.job_position:partner_contact_job_position.res_partner_job_position_tree_view |
||||
|
msgid "Job positions" |
||||
|
msgstr "Positionen" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,write_uid:0 |
||||
|
msgid "Last Updated by" |
||||
|
msgstr "Zuletzt aktualisiert durch" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,write_date:0 |
||||
|
msgid "Last Updated on" |
||||
|
msgstr "Zuletzt aktualisiert am" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,name:0 |
||||
|
msgid "Name" |
||||
|
msgstr "Bezeichnung" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,parent_id:0 |
||||
|
msgid "Parent" |
||||
|
msgstr "Übergeordnete" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,parent_left:0 |
||||
|
msgid "Parent left" |
||||
|
msgstr "Links übergeordnet" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,parent_right:0 |
||||
|
msgid "Parent right" |
||||
|
msgstr "Rechts übergeordnet" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: model:ir.model,name:partner_contact_job_position.model_res_partner |
||||
|
msgid "Partner" |
||||
|
msgstr "Partner" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: view:res.partner:partner_contact_job_position.view_res_partner_filter_job_position |
||||
|
msgid "Salesperson" |
||||
|
msgstr "Verkäufer" |
@ -0,0 +1,112 @@ |
|||||
|
# Translation of Odoo Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * partner_contact_job_position |
||||
|
# |
||||
|
# Translators: |
||||
|
# 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" |
||||
|
"MIME-Version: 1.0\n" |
||||
|
"Content-Type: text/plain; charset=UTF-8\n" |
||||
|
"Content-Transfer-Encoding: \n" |
||||
|
"Language: es\n" |
||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner,job_position_id:0 |
||||
|
msgid "Categorized job position" |
||||
|
msgstr "Puesto de trabajo categorizado" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,child_ids:0 |
||||
|
msgid "Children" |
||||
|
msgstr "Hijos" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,create_uid:0 |
||||
|
msgid "Created by" |
||||
|
msgstr "Creado por" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,create_date:0 |
||||
|
msgid "Created on" |
||||
|
msgstr "Creado en" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,display_name:0 |
||||
|
msgid "Display Name" |
||||
|
msgstr "Nombre mostrado" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,id:0 |
||||
|
msgid "ID" |
||||
|
msgstr "ID" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: model:ir.actions.act_window,name:partner_contact_job_position.res_partner_job_position_action |
||||
|
#: model:ir.ui.menu,name:partner_contact_job_position.menu_res_partner_job_position |
||||
|
msgid "Job Positions" |
||||
|
msgstr "Puestos de trabajo" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: model:ir.model,name:partner_contact_job_position.model_res_partner_job_position |
||||
|
#: view:res.partner:partner_contact_job_position.view_res_partner_filter_job_position |
||||
|
msgid "Job position" |
||||
|
msgstr "Puesto de trabajo" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: view:res.partner.job_position:partner_contact_job_position.res_partner_job_position_form_view |
||||
|
#: view:res.partner.job_position:partner_contact_job_position.res_partner_job_position_tree_view |
||||
|
msgid "Job positions" |
||||
|
msgstr "Puestos de trabajo" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,__last_update:0 |
||||
|
msgid "Last Modified on" |
||||
|
msgstr "Última modificación el" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,write_uid:0 |
||||
|
msgid "Last Updated by" |
||||
|
msgstr "Última actualización por" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,write_date:0 |
||||
|
msgid "Last Updated on" |
||||
|
msgstr "Última actualización en" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,name:0 |
||||
|
msgid "Name" |
||||
|
msgstr "Nombre" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,parent_id:0 |
||||
|
msgid "Parent" |
||||
|
msgstr "Padre" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,parent_left:0 |
||||
|
msgid "Parent left" |
||||
|
msgstr "Padre izquierdo" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,parent_right:0 |
||||
|
msgid "Parent right" |
||||
|
msgstr "Padre derecho" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: model:ir.model,name:partner_contact_job_position.model_res_partner |
||||
|
msgid "Partner" |
||||
|
msgstr "Empresa" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: view:res.partner:partner_contact_job_position.view_res_partner_filter_job_position |
||||
|
msgid "Salesperson" |
||||
|
msgstr "Comercial" |
@ -0,0 +1,101 @@ |
|||||
|
# Translation of Odoo Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * partner_contact_job_position |
||||
|
# |
||||
|
# 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-12-22 15:01+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_contact_job_position |
||||
|
#: field:res.partner,job_position_id:0 |
||||
|
msgid "Categorized job position" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,child_ids:0 |
||||
|
msgid "Children" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,create_uid:0 |
||||
|
msgid "Created by" |
||||
|
msgstr "Luonut" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,create_date:0 |
||||
|
msgid "Created on" |
||||
|
msgstr "Luotu" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,id:0 |
||||
|
msgid "ID" |
||||
|
msgstr "ID" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: model:ir.actions.act_window,name:partner_contact_job_position.res_partner_job_position_action |
||||
|
#: model:ir.ui.menu,name:partner_contact_job_position.menu_res_partner_job_position |
||||
|
msgid "Job Positions" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: model:ir.model,name:partner_contact_job_position.model_res_partner_job_position |
||||
|
#: view:res.partner:partner_contact_job_position.view_res_partner_filter_job_position |
||||
|
msgid "Job position" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: view:res.partner.job_position:partner_contact_job_position.res_partner_job_position_form_view |
||||
|
#: view:res.partner.job_position:partner_contact_job_position.res_partner_job_position_tree_view |
||||
|
msgid "Job positions" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,write_uid:0 |
||||
|
msgid "Last Updated by" |
||||
|
msgstr "Viimeksi päivitetty" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,write_date:0 |
||||
|
msgid "Last Updated on" |
||||
|
msgstr "Viimeksi päivittänyt" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,name:0 |
||||
|
msgid "Name" |
||||
|
msgstr "Nimi" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,parent_id:0 |
||||
|
msgid "Parent" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,parent_left:0 |
||||
|
msgid "Parent left" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,parent_right:0 |
||||
|
msgid "Parent right" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: model:ir.model,name:partner_contact_job_position.model_res_partner |
||||
|
msgid "Partner" |
||||
|
msgstr "Kumppani" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: view:res.partner:partner_contact_job_position.view_res_partner_filter_job_position |
||||
|
msgid "Salesperson" |
||||
|
msgstr "Myyjä" |
@ -0,0 +1,102 @@ |
|||||
|
# Translation of Odoo Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * partner_contact_job_position |
||||
|
# |
||||
|
# 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_contact_job_position |
||||
|
#: field:res.partner,job_position_id:0 |
||||
|
msgid "Categorized job position" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,child_ids:0 |
||||
|
msgid "Children" |
||||
|
msgstr "Figlio" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,create_uid:0 |
||||
|
msgid "Created by" |
||||
|
msgstr "Creato da" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,create_date:0 |
||||
|
msgid "Created on" |
||||
|
msgstr "reato il" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,id:0 |
||||
|
msgid "ID" |
||||
|
msgstr "ID" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: model:ir.actions.act_window,name:partner_contact_job_position.res_partner_job_position_action |
||||
|
#: model:ir.ui.menu,name:partner_contact_job_position.menu_res_partner_job_position |
||||
|
msgid "Job Positions" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: model:ir.model,name:partner_contact_job_position.model_res_partner_job_position |
||||
|
#: view:res.partner:partner_contact_job_position.view_res_partner_filter_job_position |
||||
|
msgid "Job position" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: view:res.partner.job_position:partner_contact_job_position.res_partner_job_position_form_view |
||||
|
#: view:res.partner.job_position:partner_contact_job_position.res_partner_job_position_tree_view |
||||
|
msgid "Job positions" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,write_uid:0 |
||||
|
msgid "Last Updated by" |
||||
|
msgstr "Ultimo aggiornamento di" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,write_date:0 |
||||
|
msgid "Last Updated on" |
||||
|
msgstr "Ultimo aggiornamento il" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,name:0 |
||||
|
msgid "Name" |
||||
|
msgstr "Nome" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,parent_id:0 |
||||
|
msgid "Parent" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,parent_left:0 |
||||
|
msgid "Parent left" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,parent_right:0 |
||||
|
msgid "Parent right" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: model:ir.model,name:partner_contact_job_position.model_res_partner |
||||
|
msgid "Partner" |
||||
|
msgstr "Partner" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: view:res.partner:partner_contact_job_position.view_res_partner_filter_job_position |
||||
|
msgid "Salesperson" |
||||
|
msgstr "" |
@ -0,0 +1,112 @@ |
|||||
|
# Translation of Odoo Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * partner_contact_job_position |
||||
|
# |
||||
|
# 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:15+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" |
||||
|
"MIME-Version: 1.0\n" |
||||
|
"Content-Type: text/plain; charset=UTF-8\n" |
||||
|
"Content-Transfer-Encoding: \n" |
||||
|
"Language: sl\n" |
||||
|
"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner,job_position_id:0 |
||||
|
msgid "Categorized job position" |
||||
|
msgstr "Kategorizirani delovni položaj" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,child_ids:0 |
||||
|
msgid "Children" |
||||
|
msgstr "Podrejeni" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,create_uid:0 |
||||
|
msgid "Created by" |
||||
|
msgstr "Ustvaril" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,create_date:0 |
||||
|
msgid "Created on" |
||||
|
msgstr "Ustvarjeno" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,display_name:0 |
||||
|
msgid "Display Name" |
||||
|
msgstr "Prikazni naziv" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,id:0 |
||||
|
msgid "ID" |
||||
|
msgstr "ID" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: model:ir.actions.act_window,name:partner_contact_job_position.res_partner_job_position_action |
||||
|
#: model:ir.ui.menu,name:partner_contact_job_position.menu_res_partner_job_position |
||||
|
msgid "Job Positions" |
||||
|
msgstr "Delovni položaji" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: model:ir.model,name:partner_contact_job_position.model_res_partner_job_position |
||||
|
#: view:res.partner:partner_contact_job_position.view_res_partner_filter_job_position |
||||
|
msgid "Job position" |
||||
|
msgstr "Delovni položaj" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: view:res.partner.job_position:partner_contact_job_position.res_partner_job_position_form_view |
||||
|
#: view:res.partner.job_position:partner_contact_job_position.res_partner_job_position_tree_view |
||||
|
msgid "Job positions" |
||||
|
msgstr "Delovni položaji" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,__last_update:0 |
||||
|
msgid "Last Modified on" |
||||
|
msgstr "Zadnjič spremenjeno" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,write_uid:0 |
||||
|
msgid "Last Updated by" |
||||
|
msgstr "Zadnji posodobil" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,write_date:0 |
||||
|
msgid "Last Updated on" |
||||
|
msgstr "Zadnjič posodobljeno" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,name:0 |
||||
|
msgid "Name" |
||||
|
msgstr "Naziv" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,parent_id:0 |
||||
|
msgid "Parent" |
||||
|
msgstr "Nadrejeni" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,parent_left:0 |
||||
|
msgid "Parent left" |
||||
|
msgstr "Levo nadrejeni" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: field:res.partner.job_position,parent_right:0 |
||||
|
msgid "Parent right" |
||||
|
msgstr "Desno nadrejeni" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: model:ir.model,name:partner_contact_job_position.model_res_partner |
||||
|
msgid "Partner" |
||||
|
msgstr "Partner" |
||||
|
|
||||
|
#. module: partner_contact_job_position |
||||
|
#: view:res.partner:partner_contact_job_position.view_res_partner_filter_job_position |
||||
|
msgid "Salesperson" |
||||
|
msgstr "Prodajalec" |
@ -0,0 +1,6 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# © 2014-2016 Tecnativa S.L. - Jairo Llopis |
||||
|
# © 2016 Tecnativa S.L. - Vicent Cubells |
||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
|
|
||||
|
from . import res_partner |
@ -0,0 +1,42 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# © 2014-2016 Tecnativa S.L. - Jairo Llopis |
||||
|
# © 2016 Tecnativa S.L. - Vicent Cubells |
||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
|
|
||||
|
from openerp import models, fields, api, _ |
||||
|
from openerp.exceptions import ValidationError |
||||
|
|
||||
|
|
||||
|
class ResPartner(models.Model): |
||||
|
_inherit = 'res.partner' |
||||
|
|
||||
|
job_position_id = fields.Many2one( |
||||
|
"res.partner.job_position", |
||||
|
"Categorized job position", |
||||
|
oldname="job_position") |
||||
|
|
||||
|
|
||||
|
class ResPartnerJobPosition(models.Model): |
||||
|
_name = "res.partner.job_position" |
||||
|
_order = "parent_left" |
||||
|
_parent_order = "name" |
||||
|
_parent_store = True |
||||
|
_description = "Job position" |
||||
|
|
||||
|
name = fields.Char(required=True, translate=True) |
||||
|
parent_id = fields.Many2one( |
||||
|
"res.partner.job_position", |
||||
|
"Parent", ondelete='restrict') |
||||
|
child_ids = fields.One2many( |
||||
|
"res.partner.job_position", |
||||
|
"parent_id", |
||||
|
"Children", |
||||
|
oldname="children") |
||||
|
parent_left = fields.Integer(index=True) |
||||
|
parent_right = fields.Integer(index=True) |
||||
|
|
||||
|
@api.constrains('parent_id') |
||||
|
def _check_parent_id(self): |
||||
|
if not self._check_recursion(): |
||||
|
raise ValidationError( |
||||
|
_('Error! You cannot create recursive job positions.')) |
@ -0,0 +1,5 @@ |
|||||
|
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" |
||||
|
"access_res_partner_job_position_public","res_partner_job_position group_public","model_res_partner_job_position","base.group_public",1,0,0,0 |
||||
|
"access_res_partner_job_position_portal","res_partner_job_position group_portal","model_res_partner_job_position","base.group_portal",1,0,0,0 |
||||
|
"access_res_partner_job_position_group_partner_manager","res_partner_job_position group_partner_manager","model_res_partner_job_position","base.group_partner_manager",1,1,1,1 |
||||
|
"access_res_partner_job_position_group_user","res_partner_job_position group_user","model_res_partner_job_position","base.group_user",1,0,0,0 |
After Width: 128 | Height: 128 | Size: 11 KiB |
@ -0,0 +1,5 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# © 2016 Vicent Cubells |
||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl-3.0). |
||||
|
|
||||
|
from . import test_recursion |
@ -0,0 +1,30 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# © 2016 Tecnativa - Vicent Cubells |
||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl-3.0). |
||||
|
from openerp.tests import common |
||||
|
from openerp.exceptions import ValidationError |
||||
|
|
||||
|
|
||||
|
class TestRecursion(common.SavepointCase): |
||||
|
|
||||
|
@classmethod |
||||
|
def setUpClass(cls): |
||||
|
super(TestRecursion, cls).setUpClass() |
||||
|
cls.job_obj = cls.env['res.partner.job_position'] |
||||
|
|
||||
|
# Instances |
||||
|
cls.grand_parent = cls.job_obj.create(vals=dict(name='Grand parent')) |
||||
|
cls.parent = cls.job_obj.create(vals=dict( |
||||
|
name='Parent', |
||||
|
parent_id=cls.grand_parent.id |
||||
|
)) |
||||
|
|
||||
|
def test_recursion(self): |
||||
|
""" Testing recursion """ |
||||
|
self.child = self.job_obj.create(vals=dict( |
||||
|
name='Grand parent', |
||||
|
parent_id=self.parent.id |
||||
|
)) |
||||
|
# Creating a parent's child using grand-parent |
||||
|
with self.assertRaises(ValidationError): |
||||
|
self.grand_parent.write(vals={'parent_id': self.child.id}) |
@ -0,0 +1,40 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
|
||||
|
<record id="res_partner_job_position_action" model="ir.actions.act_window"> |
||||
|
<field name="name">Job Positions</field> |
||||
|
<field name="res_model">res.partner.job_position</field> |
||||
|
<field name="view_type">form</field> |
||||
|
<field name="view_mode">tree</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="res_partner_job_position_tree_view" model="ir.ui.view"> |
||||
|
<field name="name">Job position tree</field> |
||||
|
<field name="model">res.partner.job_position</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<tree string="Job positions" editable="top"> |
||||
|
<field name="name"/> |
||||
|
<field name="parent_id"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="res_partner_job_position_form_view" model="ir.ui.view"> |
||||
|
<field name="name">Job position form</field> |
||||
|
<field name="model">res.partner.job_position</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<form string="Job positions"> |
||||
|
<group> |
||||
|
<field name="name"/> |
||||
|
<field name="parent_id"/> |
||||
|
<field name="child_ids"/> |
||||
|
</group> |
||||
|
</form> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<menuitem action="res_partner_job_position_action" |
||||
|
id="menu_res_partner_job_position" |
||||
|
parent="base.menu_config_address_book"/> |
||||
|
|
||||
|
</odoo> |
@ -0,0 +1,40 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<odoo> |
||||
|
|
||||
|
<record model="ir.ui.view" id="view_partner_form_job_position"> |
||||
|
<field name="name">Partner form with job position</field> |
||||
|
<field name="model">res.partner</field> |
||||
|
<field name="inherit_id" ref="base.view_partner_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<field name="function" position="before"> |
||||
|
<field name="job_position_id" |
||||
|
attrs="{'invisible': [('is_company','=', True)]}" |
||||
|
options='{"no_open": True}'/> |
||||
|
</field> |
||||
|
<xpath expr="//field[@name='child_ids']/form//field[@name='function']" |
||||
|
position="before"> |
||||
|
<field name="job_position_id" |
||||
|
attrs="{'invisible': [('is_company','=', True)]}" |
||||
|
options='{"no_open": True}'/> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record model="ir.ui.view" id="view_res_partner_filter_job_position"> |
||||
|
<field name="name">Partner search with job position</field> |
||||
|
<field name="model">res.partner</field> |
||||
|
<field name="inherit_id" ref="base.view_res_partner_filter"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<field name="category_id" position="after"> |
||||
|
<field name="job_position_id"/> |
||||
|
</field> |
||||
|
<filter name="salesperson" position="after"> |
||||
|
<filter name="job_position" |
||||
|
string="Job position" |
||||
|
domain="[('is_company','=', True)]" |
||||
|
context="{'group_by': 'job_position_id'}"/> |
||||
|
</filter> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue