Skip to content

Commit

Permalink
partner_employee_quantity: Migration to 11.0
Browse files Browse the repository at this point in the history
* Standard procedure
* Adapt dependencies
* Adapt menu
* Improve view layout
* README by fragments
* Rise to mature status with maintainer myself
  • Loading branch information
pedrobaeza authored and newtratip committed Dec 14, 2020
1 parent 9c2bb80 commit 99dab2f
Show file tree
Hide file tree
Showing 83 changed files with 1,296 additions and 819 deletions.
96 changes: 70 additions & 26 deletions partner_employee_quantity/README.rst
Original file line number Diff line number Diff line change
@@ -1,20 +1,45 @@
.. 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 file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
:target: https://odoo-community.org/page/development-status
:alt: Mature
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpartner--contact-lightgray.png?logo=github
:target: https://github.com/OCA/partner-contact/tree/11.0/partner_employee_quantity
:alt: OCA/partner-contact
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/partner-contact-11-0/partner-contact-11-0-partner_employee_quantity
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/134/11.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to set employee quantity for partners, and categorize them
by ranges.

**Table of contents**

.. contents::
:local:

Configuration
=============

To manage available ranges, you need to:

* Go to *Sales > Configuration > Contacts > Ranges by quantity of employees*.
#. Go to *Contacts > Configuration > Ranges by quantity of employees*.
#. Add or edit any range naming it.

Usage
=====
Expand All @@ -25,44 +50,63 @@ To use this module, you need to:
* 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/10.0
Known issues / Roadmap
======================

* Put in employee ranges numbers for low and upper limit for having a numerical
reference.
* Don't allow to overlap ranges.

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**>`_.
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:%20partner_employee_quantity%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Tecnativa

Contributors
------------
~~~~~~~~~~~~

* `Tecnativa <https://www.tecnativa.com>`__:

* Antonio Espinosa <[email protected]>
* Rafael Blasco <[email protected]>
* Jairo Llopis <[email protected]>
* David Vidal <[email protected]>
* Antonio Espinosa
* Rafael Blasco
* Jairo Llopis
* David Vidal
* Pedro M. Baeza

Maintainer
----------
Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. 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.
.. |maintainer-pedrobaeza| image:: https://github.com/pedrobaeza.png?size=40px
:target: https://github.com/pedrobaeza
:alt: pedrobaeza

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-pedrobaeza|

This module is part of the `OCA/partner-contact <https://github.com/OCA/partner-contact/tree/11.0/partner_employee_quantity>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 1 addition & 1 deletion partner_employee_quantity/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).

from . import models
15 changes: 9 additions & 6 deletions partner_employee_quantity/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
# -*- coding: utf-8 -*-
# Copyright 2015 Antonio Espinosa <[email protected]>
# Copyright 2015 Jairo Llopis <[email protected]>
# Copyright 2017 David Vidal <[email protected]>
# Copyright 2018 Tecnativa - Pedro M. Baeza
# 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': '10.0.1.0.0',
'version': '11.0.1.0.0',
'category': 'Customer Relationship Management',
"author": 'Antiun Ingeniería S.L., '
'Tecnativa, '
"author": 'Tecnativa, '
'Odoo Community Association (OCA)',
"license": "AGPL-3",
"application": False,
'website': 'http://www.tecnativa.com',
'website': 'https://github.com/OCA/partner-contact',
'depends': [
'sale',
'contacts',
],
'data': [
'security/ir.model.access.csv',
'views/res_partner_employee_quantity_range_view.xml',
'views/res_partner_view.xml',
],
'development_status': 'Mature',
'maintainers': [
'pedrobaeza',
],
"installable": True,
}
22 changes: 11 additions & 11 deletions partner_employee_quantity/i18n/am.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

#. module: partner_employee_quantity
#: model:ir.model,name:partner_employee_quantity.model_res_partner
msgid "Contact"
msgstr ""

#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity_range_create_uid
msgid "Created by"
Expand All @@ -34,27 +39,25 @@ msgid "Display Name"
msgstr ""

#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_users_employee_quantity
#: model:ir.ui.view,arch_db:partner_employee_quantity.view_res_partner_filter_employees
msgid "Employee Quantity"
msgstr ""

#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_alias_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_users_employee_quantity
#: model:ir.ui.view,arch_db:partner_employee_quantity.view_partner_form_employees
msgid "Employee quantity"
msgstr ""

#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_alias_employee_quantity_range_id
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity_range_id
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_users_employee_quantity_range_id
msgid "Employee quantity range"
msgstr ""

#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity_range_id_5578
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity_range_id_1599
msgid "ID"
msgstr "ID"

Expand All @@ -78,18 +81,12 @@ msgstr "Última actualización en"
msgid "Name"
msgstr ""

#. module: partner_employee_quantity
#: model:ir.model,name:partner_employee_quantity.model_res_partner
msgid "Partner"
msgstr "ተባባሪ"

#. 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
#: model:ir.model.fields,help:partner_employee_quantity.field_res_partner_alias_employee_quantity_range_id
#: model:ir.model.fields,help:partner_employee_quantity.field_res_partner_employee_quantity_range_id
#: model:ir.model.fields,help:partner_employee_quantity.field_res_users_employee_quantity_range_id
msgid "Range of this partner depending on the employee quantity."
Expand All @@ -101,3 +98,6 @@ msgstr ""
#: model:ir.ui.view,arch_db:partner_employee_quantity.employees_range_tree_view
msgid "Ranges by quantity of employees"
msgstr ""

#~ msgid "Partner"
#~ msgstr "ተባባሪ"
22 changes: 11 additions & 11 deletions partner_employee_quantity/i18n/ar.po
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ msgstr ""
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#. module: partner_employee_quantity
#: model:ir.model,name:partner_employee_quantity.model_res_partner
msgid "Contact"
msgstr ""

#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity_range_create_uid
msgid "Created by"
Expand All @@ -35,27 +40,25 @@ msgid "Display Name"
msgstr "اسم العرض"

#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_users_employee_quantity
#: model:ir.ui.view,arch_db:partner_employee_quantity.view_res_partner_filter_employees
msgid "Employee Quantity"
msgstr ""

#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_alias_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_users_employee_quantity
#: model:ir.ui.view,arch_db:partner_employee_quantity.view_partner_form_employees
msgid "Employee quantity"
msgstr ""

#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_alias_employee_quantity_range_id
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity_range_id
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_users_employee_quantity_range_id
msgid "Employee quantity range"
msgstr ""

#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity_range_id_5578
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity_range_id_1599
msgid "ID"
msgstr "المعرف"

Expand All @@ -79,18 +82,12 @@ msgstr "آخر تحديث في"
msgid "Name"
msgstr "الاسم"

#. module: partner_employee_quantity
#: model:ir.model,name:partner_employee_quantity.model_res_partner
msgid "Partner"
msgstr "الشريك"

#. 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
#: model:ir.model.fields,help:partner_employee_quantity.field_res_partner_alias_employee_quantity_range_id
#: model:ir.model.fields,help:partner_employee_quantity.field_res_partner_employee_quantity_range_id
#: model:ir.model.fields,help:partner_employee_quantity.field_res_users_employee_quantity_range_id
msgid "Range of this partner depending on the employee quantity."
Expand All @@ -102,3 +99,6 @@ msgstr ""
#: model:ir.ui.view,arch_db:partner_employee_quantity.employees_range_tree_view
msgid "Ranges by quantity of employees"
msgstr ""

#~ msgid "Partner"
#~ msgstr "الشريك"
22 changes: 11 additions & 11 deletions partner_employee_quantity/i18n/bg.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ msgstr ""
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: partner_employee_quantity
#: model:ir.model,name:partner_employee_quantity.model_res_partner
msgid "Contact"
msgstr ""

#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity_range_create_uid
msgid "Created by"
Expand All @@ -34,27 +39,25 @@ msgid "Display Name"
msgstr "Име за показване"

#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_users_employee_quantity
#: model:ir.ui.view,arch_db:partner_employee_quantity.view_res_partner_filter_employees
msgid "Employee Quantity"
msgstr ""

#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_alias_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_users_employee_quantity
#: model:ir.ui.view,arch_db:partner_employee_quantity.view_partner_form_employees
msgid "Employee quantity"
msgstr ""

#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_alias_employee_quantity_range_id
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity_range_id
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_users_employee_quantity_range_id
msgid "Employee quantity range"
msgstr ""

#. module: partner_employee_quantity
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity_range_id_5578
#: model:ir.model.fields,field_description:partner_employee_quantity.field_res_partner_employee_quantity_range_id_1599
msgid "ID"
msgstr "ID"

Expand All @@ -78,18 +81,12 @@ msgstr "Последно обновено на"
msgid "Name"
msgstr "Име"

#. module: partner_employee_quantity
#: model:ir.model,name:partner_employee_quantity.model_res_partner
msgid "Partner"
msgstr "Партньор"

#. 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
#: model:ir.model.fields,help:partner_employee_quantity.field_res_partner_alias_employee_quantity_range_id
#: model:ir.model.fields,help:partner_employee_quantity.field_res_partner_employee_quantity_range_id
#: model:ir.model.fields,help:partner_employee_quantity.field_res_users_employee_quantity_range_id
msgid "Range of this partner depending on the employee quantity."
Expand All @@ -101,3 +98,6 @@ msgstr ""
#: model:ir.ui.view,arch_db:partner_employee_quantity.employees_range_tree_view
msgid "Ranges by quantity of employees"
msgstr ""

#~ msgid "Partner"
#~ msgstr "Партньор"
Loading

0 comments on commit 99dab2f

Please sign in to comment.