Jairo Llopis
9 years ago
committed by
Nikul-Chaudhary
15 changed files with 791 additions and 0 deletions
-
72partner_employee_quantity/README.rst
-
6partner_employee_quantity/__init__.py
-
24partner_employee_quantity/__openerp__.py
-
102partner_employee_quantity/i18n/de.po
-
102partner_employee_quantity/i18n/es.po
-
102partner_employee_quantity/i18n/eu.po
-
92partner_employee_quantity/i18n/fi.po
-
91partner_employee_quantity/i18n/it.po
-
102partner_employee_quantity/i18n/sl.po
-
6partner_employee_quantity/models/__init__.py
-
25partner_employee_quantity/models/res_partner.py
-
5partner_employee_quantity/security/ir.model.access.csv
-
BINpartner_employee_quantity/static/description/icon.png
-
27partner_employee_quantity/views/res_partner_employee_quantity_range_view.xml
-
35partner_employee_quantity/views/res_partner_view.xml
@ -0,0 +1,72 @@ |
|||||
|
.. 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 |
||||
|
|
||||
|
============================= |
||||
|
Employee quantity in partners |
||||
|
============================= |
||||
|
|
||||
|
This module allows to set employee quantity for partners, and categorize them |
||||
|
by ranges. |
||||
|
|
||||
|
Configuration |
||||
|
============= |
||||
|
|
||||
|
To manage available ranges, you need to: |
||||
|
|
||||
|
* Go to *Sales > Configuration > Address Book > Ranges by quantity of employees*. |
||||
|
|
||||
|
Usage |
||||
|
===== |
||||
|
|
||||
|
To use this module, you need to: |
||||
|
|
||||
|
* Go to any partner's form. |
||||
|
* Enable *Is company?*. |
||||
|
* You will see a new group of fields called *Employee quantity*. |
||||
|
|
||||
|
.. 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/8.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 |
||||
|
<https://github.com/OCA/ |
||||
|
partner-contact/issues/new?body=module:%20 |
||||
|
partner_employee_quantity%0Aversion:%20 |
||||
|
8.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. |
||||
|
|
||||
|
Credits |
||||
|
======= |
||||
|
|
||||
|
Images |
||||
|
------ |
||||
|
|
||||
|
* `Antiun Ingeniería S.L. <http://www.antiun.com>`_: Icon. |
||||
|
|
||||
|
Contributors |
||||
|
------------ |
||||
|
|
||||
|
* Antonio Espinosa <antonioea@antiun.com> |
||||
|
* Rafael Blasco <rafabn@antiun.com> |
||||
|
* Jairo Llopis <yajo.sk8@gmail.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 -*- |
||||
|
# © 2015 Antiun Ingeniería S.L. - Antonio Espinosa |
||||
|
# © 2015 Antiun Ingeniería S.L. - Jairo Llopis |
||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
|
|
||||
|
from . import models |
@ -0,0 +1,24 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# © 2015 Antiun Ingeniería S.L. - Antonio Espinosa |
||||
|
# © 2015 Antiun Ingeniería S.L. - Jairo Llopis |
||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
|
|
||||
|
{ |
||||
|
'name': 'Employee quantity in partners', |
||||
|
'summary': 'Know how many employees a partner has', |
||||
|
'version': '8.0.1.0.0', |
||||
|
'category': 'Customer Relationship Management', |
||||
|
"author": "Antiun Ingeniería S.L., Odoo Community Association (OCA)", |
||||
|
"license": "AGPL-3", |
||||
|
"application": False, |
||||
|
'website': 'http://www.antiun.com', |
||||
|
'depends': [ |
||||
|
'base', |
||||
|
], |
||||
|
'data': [ |
||||
|
'security/ir.model.access.csv', |
||||
|
'views/res_partner_employee_quantity_range_view.xml', |
||||
|
'views/res_partner_view.xml', |
||||
|
], |
||||
|
"installable": True, |
||||
|
} |
@ -0,0 +1,102 @@ |
|||||
|
# Translation of Odoo Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * partner_employee_quantity |
||||
|
# |
||||
|
# Translators: |
||||
|
# Rudolf Schnapka <rs@techno-flex.de>, 2016-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:17+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_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,create_uid:0 |
||||
|
msgid "Created by" |
||||
|
msgstr "Angelegt durch" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,create_date:0 |
||||
|
msgid "Created on" |
||||
|
msgstr "Angelegt am" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,display_name:0 |
||||
|
msgid "Display Name" |
||||
|
msgstr "Anzeigename" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_res_partner_filter_employees |
||||
|
msgid "Employee Quantity" |
||||
|
msgstr "Mitarbeiterzahl" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_partner_form_employees |
||||
|
#: field:res.partner,employee_quantity:0 |
||||
|
msgid "Employee quantity" |
||||
|
msgstr "Mitarbeiterzahl" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner,employee_quantity_range_id:0 |
||||
|
msgid "Employee quantity range" |
||||
|
msgstr "Spanne der Mitarbeiterzahl" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,id:0 |
||||
|
msgid "ID" |
||||
|
msgstr "ID" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,__last_update:0 |
||||
|
msgid "Last Modified on" |
||||
|
msgstr "Zuletzt verändert am" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,write_uid:0 |
||||
|
msgid "Last Updated by" |
||||
|
msgstr "Zuletzt aktualisiert durch" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,write_date:0 |
||||
|
msgid "Last Updated on" |
||||
|
msgstr "Zuletzt aktualisiert am" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,name:0 |
||||
|
msgid "Name" |
||||
|
msgstr "Bezeichnung" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.model,name:partner_employee_quantity.model_res_partner |
||||
|
msgid "Partner" |
||||
|
msgstr "Partner" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.model,name:partner_employee_quantity.model_res_partner_employee_quantity_range |
||||
|
msgid "Partner employee quantity range" |
||||
|
msgstr "Partner Mitarbeiterzahlspanne" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: help:res.partner,employee_quantity_range_id:0 |
||||
|
msgid "Range of this partner depending on the employee quantity." |
||||
|
msgstr "Spanne dieses Partners, abhängig von Mitarbeiterzahl." |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.actions.act_window,name:partner_employee_quantity.employees_range_action |
||||
|
#: model:ir.ui.menu,name:partner_employee_quantity.menu_employees_range |
||||
|
#: view:res.partner.employee_quantity_range:partner_employee_quantity.employees_range_tree_view |
||||
|
msgid "Ranges by quantity of employees" |
||||
|
msgstr "Spannen nach Mitarbeiterzahlen" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_res_partner_filter_employees |
||||
|
msgid "Salesperson" |
||||
|
msgstr "Verkäufer" |
@ -0,0 +1,102 @@ |
|||||
|
# Translation of Odoo Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * partner_employee_quantity |
||||
|
# |
||||
|
# 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_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,create_uid:0 |
||||
|
msgid "Created by" |
||||
|
msgstr "Creado por" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,create_date:0 |
||||
|
msgid "Created on" |
||||
|
msgstr "Creado en" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,display_name:0 |
||||
|
msgid "Display Name" |
||||
|
msgstr "Nombre mostrado" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_res_partner_filter_employees |
||||
|
msgid "Employee Quantity" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_partner_form_employees |
||||
|
#: field:res.partner,employee_quantity:0 |
||||
|
msgid "Employee quantity" |
||||
|
msgstr "Cantidad de empleados" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner,employee_quantity_range_id:0 |
||||
|
msgid "Employee quantity range" |
||||
|
msgstr "Rango de la cantidad de empleados" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,id:0 |
||||
|
msgid "ID" |
||||
|
msgstr "ID" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,__last_update:0 |
||||
|
msgid "Last Modified on" |
||||
|
msgstr "Última modificación el" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,write_uid:0 |
||||
|
msgid "Last Updated by" |
||||
|
msgstr "Última actualización por" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,write_date:0 |
||||
|
msgid "Last Updated on" |
||||
|
msgstr "Última actualización en" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,name:0 |
||||
|
msgid "Name" |
||||
|
msgstr "Nombre" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.model,name:partner_employee_quantity.model_res_partner |
||||
|
msgid "Partner" |
||||
|
msgstr "Empresa" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.model,name:partner_employee_quantity.model_res_partner_employee_quantity_range |
||||
|
msgid "Partner employee quantity range" |
||||
|
msgstr "Rango de la cantidad de empleados de la empresa" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: help:res.partner,employee_quantity_range_id:0 |
||||
|
msgid "Range of this partner depending on the employee quantity." |
||||
|
msgstr "Rango de esta empresa dependiendo de su cantidad de empleados." |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.actions.act_window,name:partner_employee_quantity.employees_range_action |
||||
|
#: model:ir.ui.menu,name:partner_employee_quantity.menu_employees_range |
||||
|
#: view:res.partner.employee_quantity_range:partner_employee_quantity.employees_range_tree_view |
||||
|
msgid "Ranges by quantity of employees" |
||||
|
msgstr "Rangos por cantidad de empleados" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_res_partner_filter_employees |
||||
|
msgid "Salesperson" |
||||
|
msgstr "Comercial" |
@ -0,0 +1,102 @@ |
|||||
|
# Translation of Odoo Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * partner_employee_quantity |
||||
|
# |
||||
|
# 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" |
||||
|
"MIME-Version: 1.0\n" |
||||
|
"Content-Type: text/plain; charset=UTF-8\n" |
||||
|
"Content-Transfer-Encoding: \n" |
||||
|
"Language: eu\n" |
||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,create_uid:0 |
||||
|
msgid "Created by" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,create_date:0 |
||||
|
msgid "Created on" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,display_name:0 |
||||
|
msgid "Display Name" |
||||
|
msgstr "Izena erakutsi" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_res_partner_filter_employees |
||||
|
msgid "Employee Quantity" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_partner_form_employees |
||||
|
#: field:res.partner,employee_quantity:0 |
||||
|
msgid "Employee quantity" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner,employee_quantity_range_id:0 |
||||
|
msgid "Employee quantity range" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,id:0 |
||||
|
msgid "ID" |
||||
|
msgstr "ID" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,__last_update:0 |
||||
|
msgid "Last Modified on" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,write_uid:0 |
||||
|
msgid "Last Updated by" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,write_date:0 |
||||
|
msgid "Last Updated on" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,name:0 |
||||
|
msgid "Name" |
||||
|
msgstr "Izena" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.model,name:partner_employee_quantity.model_res_partner |
||||
|
msgid "Partner" |
||||
|
msgstr "Kidea" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.model,name:partner_employee_quantity.model_res_partner_employee_quantity_range |
||||
|
msgid "Partner employee quantity range" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: help:res.partner,employee_quantity_range_id:0 |
||||
|
msgid "Range of this partner depending on the employee quantity." |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.actions.act_window,name:partner_employee_quantity.employees_range_action |
||||
|
#: model:ir.ui.menu,name:partner_employee_quantity.menu_employees_range |
||||
|
#: view:res.partner.employee_quantity_range:partner_employee_quantity.employees_range_tree_view |
||||
|
msgid "Ranges by quantity of employees" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_res_partner_filter_employees |
||||
|
msgid "Salesperson" |
||||
|
msgstr "" |
@ -0,0 +1,92 @@ |
|||||
|
# Translation of Odoo Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * partner_employee_quantity |
||||
|
# |
||||
|
# Translators: |
||||
|
# Jarmo Kortetjärvi <jarmo.kortetjarvi@gmail.com>, 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-27 20:35+0000\n" |
||||
|
"Last-Translator: Jarmo Kortetjärvi <jarmo.kortetjarvi@gmail.com>\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_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,create_uid:0 |
||||
|
msgid "Created by" |
||||
|
msgstr "Luonut" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,create_date:0 |
||||
|
msgid "Created on" |
||||
|
msgstr "Luotu" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_res_partner_filter_employees |
||||
|
msgid "Employee Quantity" |
||||
|
msgstr "Työntekijöiden määrä" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_partner_form_employees |
||||
|
#: field:res.partner,employee_quantity:0 |
||||
|
msgid "Employee quantity" |
||||
|
msgstr "Työntekijöiden määrä" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner,employee_quantity_range_id:0 |
||||
|
msgid "Employee quantity range" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,id:0 |
||||
|
msgid "ID" |
||||
|
msgstr "ID" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,write_uid:0 |
||||
|
msgid "Last Updated by" |
||||
|
msgstr "Viimeksi päivitetty" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,write_date:0 |
||||
|
msgid "Last Updated on" |
||||
|
msgstr "Viimeksi päivittänyt" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,name:0 |
||||
|
msgid "Name" |
||||
|
msgstr "Nimi" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.model,name:partner_employee_quantity.model_res_partner |
||||
|
msgid "Partner" |
||||
|
msgstr "Kumppani" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.model,name:partner_employee_quantity.model_res_partner_employee_quantity_range |
||||
|
msgid "Partner employee quantity range" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: help:res.partner,employee_quantity_range_id:0 |
||||
|
msgid "Range of this partner depending on the employee quantity." |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.actions.act_window,name:partner_employee_quantity.employees_range_action |
||||
|
#: model:ir.ui.menu,name:partner_employee_quantity.menu_employees_range |
||||
|
#: view:res.partner.employee_quantity_range:partner_employee_quantity.employees_range_tree_view |
||||
|
msgid "Ranges by quantity of employees" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_res_partner_filter_employees |
||||
|
msgid "Salesperson" |
||||
|
msgstr "Myyjä" |
@ -0,0 +1,91 @@ |
|||||
|
# Translation of Odoo Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * partner_employee_quantity |
||||
|
# |
||||
|
# Translators: |
||||
|
msgid "" |
||||
|
msgstr "" |
||||
|
"Project-Id-Version: partner-contact (8.0)\n" |
||||
|
"Report-Msgid-Bugs-To: \n" |
||||
|
"POT-Creation-Date: 2016-02-27 23:26+0000\n" |
||||
|
"PO-Revision-Date: 2015-12-22 17:25+0000\n" |
||||
|
"Last-Translator: <>\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_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,create_uid:0 |
||||
|
msgid "Created by" |
||||
|
msgstr "Creato da" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,create_date:0 |
||||
|
msgid "Created on" |
||||
|
msgstr "reato il" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_res_partner_filter_employees |
||||
|
msgid "Employee Quantity" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_partner_form_employees |
||||
|
#: field:res.partner,employee_quantity:0 |
||||
|
msgid "Employee quantity" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner,employee_quantity_range_id:0 |
||||
|
msgid "Employee quantity range" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,id:0 |
||||
|
msgid "ID" |
||||
|
msgstr "ID" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,write_uid:0 |
||||
|
msgid "Last Updated by" |
||||
|
msgstr "Ultimo aggiornamento di" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,write_date:0 |
||||
|
msgid "Last Updated on" |
||||
|
msgstr "Ultimo aggiornamento il" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,name:0 |
||||
|
msgid "Name" |
||||
|
msgstr "Nome" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.model,name:partner_employee_quantity.model_res_partner |
||||
|
msgid "Partner" |
||||
|
msgstr "Partner" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.model,name:partner_employee_quantity.model_res_partner_employee_quantity_range |
||||
|
msgid "Partner employee quantity range" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: help:res.partner,employee_quantity_range_id:0 |
||||
|
msgid "Range of this partner depending on the employee quantity." |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.actions.act_window,name:partner_employee_quantity.employees_range_action |
||||
|
#: model:ir.ui.menu,name:partner_employee_quantity.menu_employees_range |
||||
|
#: view:res.partner.employee_quantity_range:partner_employee_quantity.employees_range_tree_view |
||||
|
msgid "Ranges by quantity of employees" |
||||
|
msgstr "" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_res_partner_filter_employees |
||||
|
msgid "Salesperson" |
||||
|
msgstr "" |
@ -0,0 +1,102 @@ |
|||||
|
# Translation of Odoo Server. |
||||
|
# This file contains the translation of the following modules: |
||||
|
# * partner_employee_quantity |
||||
|
# |
||||
|
# 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:16+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_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,create_uid:0 |
||||
|
msgid "Created by" |
||||
|
msgstr "Ustvaril" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,create_date:0 |
||||
|
msgid "Created on" |
||||
|
msgstr "Ustvarjeno" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,display_name:0 |
||||
|
msgid "Display Name" |
||||
|
msgstr "Prikazni naziv" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_res_partner_filter_employees |
||||
|
msgid "Employee Quantity" |
||||
|
msgstr "Količina kadrov" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_partner_form_employees |
||||
|
#: field:res.partner,employee_quantity:0 |
||||
|
msgid "Employee quantity" |
||||
|
msgstr "Količina kadrov" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner,employee_quantity_range_id:0 |
||||
|
msgid "Employee quantity range" |
||||
|
msgstr "Razpon količine kadrov" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,id:0 |
||||
|
msgid "ID" |
||||
|
msgstr "ID" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,__last_update:0 |
||||
|
msgid "Last Modified on" |
||||
|
msgstr "Zadnjič spremenjeno" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,write_uid:0 |
||||
|
msgid "Last Updated by" |
||||
|
msgstr "Zadnji posodobil" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,write_date:0 |
||||
|
msgid "Last Updated on" |
||||
|
msgstr "Zadnjič posodobljeno" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: field:res.partner.employee_quantity_range,name:0 |
||||
|
msgid "Name" |
||||
|
msgstr "Naziv" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.model,name:partner_employee_quantity.model_res_partner |
||||
|
msgid "Partner" |
||||
|
msgstr "Partner" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.model,name:partner_employee_quantity.model_res_partner_employee_quantity_range |
||||
|
msgid "Partner employee quantity range" |
||||
|
msgstr "Razpon količine kadrov partnerja" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: help:res.partner,employee_quantity_range_id:0 |
||||
|
msgid "Range of this partner depending on the employee quantity." |
||||
|
msgstr "Partnerjev razpon glede količine kadrov." |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: model:ir.actions.act_window,name:partner_employee_quantity.employees_range_action |
||||
|
#: model:ir.ui.menu,name:partner_employee_quantity.menu_employees_range |
||||
|
#: view:res.partner.employee_quantity_range:partner_employee_quantity.employees_range_tree_view |
||||
|
msgid "Ranges by quantity of employees" |
||||
|
msgstr "Razponi po količini kadrov" |
||||
|
|
||||
|
#. module: partner_employee_quantity |
||||
|
#: view:res.partner:partner_employee_quantity.view_res_partner_filter_employees |
||||
|
msgid "Salesperson" |
||||
|
msgstr "Prodajalec" |
@ -0,0 +1,6 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# © 2015 Antiun Ingeniería S.L. - Antonio Espinosa |
||||
|
# © 2015 Antiun Ingeniería S.L. - Jairo Llopis |
||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
|
|
||||
|
from . import res_partner |
@ -0,0 +1,25 @@ |
|||||
|
# -*- coding: utf-8 -*- |
||||
|
# © 2015 Antiun Ingeniería S.L. - Antonio Espinosa |
||||
|
# © 2015 Antiun Ingeniería S.L. - Jairo Llopis |
||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). |
||||
|
|
||||
|
from openerp import models, fields |
||||
|
|
||||
|
|
||||
|
class ResPartner(models.Model): |
||||
|
_inherit = 'res.partner' |
||||
|
|
||||
|
employee_quantity = fields.Integer( |
||||
|
oldname="employees_number") |
||||
|
employee_quantity_range_id = fields.Many2one( |
||||
|
"res.partner.employee_quantity_range", |
||||
|
"Employee quantity range", |
||||
|
help="Range of this partner depending on the employee quantity.", |
||||
|
oldname="employees_range") |
||||
|
|
||||
|
|
||||
|
class ResPartnerEmployeeQuantityRange(models.Model): |
||||
|
_name = "res.partner.employee_quantity_range" |
||||
|
_description = "Partner employee quantity range" |
||||
|
|
||||
|
name = fields.Char(required=True, translate=True) |
@ -0,0 +1,5 @@ |
|||||
|
"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" |
||||
|
"access_res_partner_employee_quantity_range_public","res_partner_employee_quantity_range group_public","model_res_partner_employee_quantity_range","base.group_public",1,0,0,0 |
||||
|
"access_res_partner_employee_quantity_range_portal","res_partner_employee_quantity_range group_portal","model_res_partner_employee_quantity_range","base.group_portal",1,0,0,0 |
||||
|
"access_res_partner_employee_quantity_range_group_partner_manager","res_partner_employee_quantity_range group_partner_manager","model_res_partner_employee_quantity_range","base.group_partner_manager",1,1,1,1 |
||||
|
"access_res_partner_employee_quantity_range_group_user","res_partner_employee_quantity_range group_user","model_res_partner_employee_quantity_range","base.group_user",1,0,0,0 |
After Width: 128 | Height: 128 | Size: 18 KiB |
@ -0,0 +1,27 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<openerp> |
||||
|
<data> |
||||
|
|
||||
|
<record id="employees_range_action" model="ir.actions.act_window"> |
||||
|
<field name="name">Ranges by quantity of employees</field> |
||||
|
<field name="res_model">res.partner.employee_quantity_range</field> |
||||
|
<field name="view_type">form</field> |
||||
|
<field name="view_mode">tree</field> |
||||
|
</record> |
||||
|
|
||||
|
<record id="employees_range_tree_view" model="ir.ui.view"> |
||||
|
<field name="name">Quantity of employees ranges tree</field> |
||||
|
<field name="model">res.partner.employee_quantity_range</field> |
||||
|
<field name="arch" type="xml"> |
||||
|
<tree string="Ranges by quantity of employees" editable="top"> |
||||
|
<field name="name"/> |
||||
|
</tree> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<menuitem action="employees_range_action" |
||||
|
id="menu_employees_range" |
||||
|
parent="base.menu_config_address_book"/> |
||||
|
|
||||
|
</data> |
||||
|
</openerp> |
@ -0,0 +1,35 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
<openerp> |
||||
|
<data> |
||||
|
|
||||
|
<record model="ir.ui.view" id="view_partner_form_employees"> |
||||
|
<field name="name">Partner form with employees</field> |
||||
|
<field name="model">res.partner</field> |
||||
|
<field name="inherit_id" ref="base.view_partner_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="/form/sheet/group"> |
||||
|
<group name="employee_quantity" |
||||
|
string="Employee quantity" |
||||
|
attrs="{'invisible': [('is_company', '=', False)]}"> |
||||
|
<field name="employee_quantity"/> |
||||
|
<field name="employee_quantity_range_id"/> |
||||
|
</group> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
<record model="ir.ui.view" id="view_res_partner_filter_employees"> |
||||
|
<field name="name">Partner search with employees</field> |
||||
|
<field name="model">res.partner</field> |
||||
|
<field name="inherit_id" ref="base.view_res_partner_filter"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<filter string="Salesperson" position="after"> |
||||
|
<filter string="Employee Quantity" |
||||
|
domain="[('is_company','=', True)]" |
||||
|
context="{'group_by': 'employee_quantity_range_id'}"/> |
||||
|
</filter> |
||||
|
</field> |
||||
|
</record> |
||||
|
|
||||
|
</data> |
||||
|
</openerp> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue