-
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by pedrobaeza
- Loading branch information
Showing
24 changed files
with
1,256 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
============== | ||
HR commissions | ||
============== | ||
|
||
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
:target: https://odoo-community.org/page/development-status | ||
:alt: Beta | ||
.. |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%2Fcommission-lightgray.png?logo=github | ||
:target: https://github.com/OCA/commission/tree/15.0/hr_commission | ||
:alt: OCA/commission | ||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
:target: https://translation.odoo-community.org/projects/commission-15-0/commission-15-0-hr_commission | ||
:alt: Translate me on Weblate | ||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png | ||
:target: https://runbot.odoo-community.org/runbot/165/15.0 | ||
:alt: Try me on Runbot | ||
|
||
|badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
||
This module links sale_commission with hr module. For now, it only adds another | ||
type of agent whose commissions are not invoiced in the corresponding wizard. | ||
|
||
It also computes the Boolean field "employee" in ResPartner to be updated | ||
according to the ResPartner-HrEmployee relation that was created. | ||
|
||
**Table of contents** | ||
|
||
.. contents:: | ||
:local: | ||
|
||
Known issues / Roadmap | ||
====================== | ||
|
||
* Add demo data. | ||
* Link settlements with wages. | ||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/commission/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/commission/issues/new?body=module:%20hr_commission%0Aversion:%2015.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>`_ | ||
|
||
* Pedro M. Baeza | ||
* João Marques | ||
* Ernesto García | ||
* Rattapong C. <[email protected]> | ||
|
||
Maintainers | ||
~~~~~~~~~~~ | ||
|
||
This module is maintained by the OCA. | ||
|
||
.. image:: https://odoo-community.org/logo.png | ||
:alt: Odoo Community Association | ||
:target: https://odoo-community.org | ||
|
||
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. | ||
|
||
This module is part of the `OCA/commission <https://github.com/OCA/commission/tree/15.0/hr_commission>`_ project on GitHub. | ||
|
||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from . import models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Copyright 2015-2020 Tecnativa - Pedro M. Baeza | ||
# Copyright 2021 Tecnativa - João Marques | ||
# License AGPL-3 - See https://www.gnu.org/licenses/agpl-3.0.html | ||
|
||
{ | ||
"name": "HR commissions", | ||
"version": "16.0.1.0.0", | ||
"author": "Tecnativa, Odoo Community Association (OCA)", | ||
"website": "https://github.com/OCA/commission", | ||
"category": "Commissions", | ||
"depends": ["account_commission", "hr"], | ||
"license": "AGPL-3", | ||
"data": [ | ||
"views/res_partner_view.xml", | ||
"views/sale_commission_settlement_views.xml", | ||
], | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * hr_commission | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 13.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"PO-Revision-Date: 2021-05-31 18:48+0000\n" | ||
"Last-Translator: jabelchi <[email protected]>\n" | ||
"Language-Team: none\n" | ||
"Language: ca\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" | ||
"X-Generator: Weblate 4.3.2\n" | ||
|
||
#. module: hr_commission | ||
#: model:ir.model.fields,help:hr_commission.field_res_partner__employee | ||
#: model:ir.model.fields,help:hr_commission.field_res_users__employee | ||
msgid "Check this box if this contact is an Employee." | ||
msgstr "Marqueu aquesta casella si aquest contacte és un empleat." | ||
|
||
#. module: hr_commission | ||
#: model:ir.model,name:hr_commission.model_res_partner | ||
msgid "Contact" | ||
msgstr "Contacte" | ||
|
||
#. module: hr_commission | ||
#: model:ir.model,name:hr_commission.model_hr_employee | ||
#: model:ir.model.fields,field_description:hr_commission.field_res_partner__employee | ||
#: model:ir.model.fields,field_description:hr_commission.field_res_users__employee | ||
msgid "Employee" | ||
msgstr "Empleat" | ||
|
||
#. module: hr_commission | ||
#: model_terms:ir.ui.view,arch_db:hr_commission.view_settlement_form | ||
msgid "Mark as invoiced" | ||
msgstr "Marcar com a facturat" | ||
|
||
#. module: hr_commission | ||
#: model:ir.model.fields,field_description:hr_commission.field_res_partner__employee_id | ||
msgid "Related Employee" | ||
msgstr "Empleat relacionat" | ||
|
||
#. module: hr_commission | ||
#: model:ir.model.fields.selection,name:hr_commission.selection__res_partner__agent_type__salesman | ||
msgid "Salesman (employee)" | ||
msgstr "Venedor (empleat)" | ||
|
||
#. module: hr_commission | ||
#: model:ir.model,name:hr_commission.model_sale_commission_settlement | ||
msgid "Settlement" | ||
msgstr "Liquidació" | ||
|
||
#. module: hr_commission | ||
#: code:addons/hr_commission/models/res_partner.py:0 | ||
#, python-format | ||
msgid "" | ||
"There must one (and only one) employee linked to this partner. To do this, " | ||
"go to 'Employees' and create an Employee with a 'Related User' under 'HR " | ||
"Settings'." | ||
msgstr "" | ||
"Cal que hi hagi un (i sólament un) empleat enllaçat a aquest partner. Per a " | ||
"fer-ho, anar a 'Empleats' i crear un empleat amb un 'usuari relacionat' a la " | ||
"pestanya 'configuració RH'." | ||
|
||
#. module: hr_commission | ||
#: model:ir.model.fields,field_description:hr_commission.field_res_partner__agent_type | ||
#: model:ir.model.fields,field_description:hr_commission.field_res_users__agent_type | ||
msgid "Type" | ||
msgstr "Tipus" | ||
|
||
#. module: hr_commission | ||
#: code:addons/hr_commission/models/hr_employee.py:0 | ||
#, python-format | ||
msgid "You can't remove the user, as it's linked to a commission agent." | ||
msgstr "" | ||
"No podeu eliminar l'usuari, ja que està vinculat a un agent de comissions." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * hr_commission | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 13.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"Last-Translator: Automatically generated\n" | ||
"Language-Team: none\n" | ||
"Language: ca_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: hr_commission | ||
#: model:ir.model.fields,help:hr_commission.field_res_partner__employee | ||
#: model:ir.model.fields,help:hr_commission.field_res_users__employee | ||
msgid "Check this box if this contact is an Employee." | ||
msgstr "" | ||
|
||
#. module: hr_commission | ||
#: model:ir.model,name:hr_commission.model_res_partner | ||
msgid "Contact" | ||
msgstr "" | ||
|
||
#. module: hr_commission | ||
#: model:ir.model,name:hr_commission.model_hr_employee | ||
#: model:ir.model.fields,field_description:hr_commission.field_res_partner__employee | ||
#: model:ir.model.fields,field_description:hr_commission.field_res_users__employee | ||
msgid "Employee" | ||
msgstr "" | ||
|
||
#. module: hr_commission | ||
#: model_terms:ir.ui.view,arch_db:hr_commission.view_settlement_form | ||
msgid "Mark as invoiced" | ||
msgstr "" | ||
|
||
#. module: hr_commission | ||
#: model:ir.model.fields,field_description:hr_commission.field_res_partner__employee_id | ||
msgid "Related Employee" | ||
msgstr "" | ||
|
||
#. module: hr_commission | ||
#: model:ir.model.fields.selection,name:hr_commission.selection__res_partner__agent_type__salesman | ||
msgid "Salesman (employee)" | ||
msgstr "" | ||
|
||
#. module: hr_commission | ||
#: model:ir.model,name:hr_commission.model_sale_commission_settlement | ||
msgid "Settlement" | ||
msgstr "" | ||
|
||
#. module: hr_commission | ||
#: code:addons/hr_commission/models/res_partner.py:0 | ||
#, python-format | ||
msgid "" | ||
"There must one (and only one) employee linked to this partner. To do this, " | ||
"go to 'Employees' and create an Employee with a 'Related User' under 'HR " | ||
"Settings'." | ||
msgstr "" | ||
|
||
#. module: hr_commission | ||
#: model:ir.model.fields,field_description:hr_commission.field_res_partner__agent_type | ||
#: model:ir.model.fields,field_description:hr_commission.field_res_users__agent_type | ||
msgid "Type" | ||
msgstr "" | ||
|
||
#. module: hr_commission | ||
#: code:addons/hr_commission/models/hr_employee.py:0 | ||
#, python-format | ||
msgid "You can't remove the user, as it's linked to a commission agent." | ||
msgstr "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# Translation of Odoo Server. | ||
# This file contains the translation of the following modules: | ||
# * hr_commission | ||
# | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: Odoo Server 11.0\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2018-08-07 11:26+0000\n" | ||
"PO-Revision-Date: 2021-03-17 15:45+0000\n" | ||
"Last-Translator: Ana Suárez <[email protected]>\n" | ||
"Language-Team: \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" | ||
"X-Generator: Weblate 4.3.2\n" | ||
|
||
#. module: hr_commission | ||
#: model:ir.model,name:hr_commission.model_res_partner | ||
msgid "Contact" | ||
msgstr "Contacto" | ||
|
||
#. module: hr_commission | ||
#: model:ir.model,name:hr_commission.model_hr_employee | ||
msgid "Employee" | ||
msgstr "Empleado" | ||
|
||
#. module: hr_commission | ||
#: model:ir.model.fields,field_description:hr_commission.field_res_partner__employee_id | ||
#: model:ir.model.fields,field_description:hr_commission.field_res_users__employee_id | ||
msgid "Employee." | ||
msgstr "Empleado." | ||
|
||
#. module: hr_commission | ||
#: selection:res.partner,agent_type:0 | ||
msgid "External agent" | ||
msgstr "Agente externo" | ||
|
||
#. module: hr_commission | ||
#: model_terms:ir.ui.view,arch_db:hr_commission.view_settlement_form | ||
msgid "Mark as invoiced" | ||
msgstr "Marcar como facturado" | ||
|
||
#. module: hr_commission | ||
#: selection:res.partner,agent_type:0 | ||
msgid "Salesman (employee)" | ||
msgstr "Comercial (empleado)" | ||
|
||
#. module: hr_commission | ||
#: model:ir.model,name:hr_commission.model_sale_commission_settlement | ||
msgid "Settlement" | ||
msgstr "Liquidación" | ||
|
||
#. module: hr_commission | ||
#: code:addons/hr_commission/models/res_partner.py:31 | ||
#, python-format | ||
msgid "" | ||
"There must one (and only one) employee linked to this partner. To do this, " | ||
"go to 'Human Resources' and check 'Employees'" | ||
msgstr "" | ||
"Debe haber un (y sólo un) empleado enlazado a esta empresa. Para hacer esto, " | ||
"vaya a 'Recursos humanos' y compruebe la sección 'Empleados'" | ||
|
||
#. module: hr_commission | ||
#: model:ir.model.fields,field_description:hr_commission.field_res_partner__agent_type | ||
#: model:ir.model.fields,field_description:hr_commission.field_res_users__agent_type | ||
msgid "Type" | ||
msgstr "Tipo" | ||
|
||
#. module: hr_commission | ||
#: code:addons/hr_commission/models/hr_employee.py:16 | ||
#, python-format | ||
msgid "You can't remove the user, as it's linked to a commission agent." | ||
msgstr "No puede eliminar el usuario, ya que está enlazado a un comisionista." |
Oops, something went wrong.