Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
b4c6609
[ADD] <hr_commission><sale_commission><stock_commission>.
Feb 17, 2015
224e9a4
[IMP] *_commission: Total refactorization of the modules
pedrobaeza Feb 19, 2015
894262b
[MIG] hr_commission: Migration to 11.0
pedrobaeza Aug 6, 2018
271ddb3
[12.0][MIG] hr_commission
kongrattapong Jul 1, 2019
dce1fe6
[IMP] hr_commission: Allow to mark settlements as invoiced
pedrobaeza Jun 19, 2020
8607860
[IMP] hr_commission: black, isort, prettier
joao-p-marques Feb 12, 2021
b59dec0
[MIG] hr_commission: Migration to 14.0
joao-p-marques Feb 12, 2021
7c0ae6f
[IMP] hr_commission: update employee field on res.partner
joao-p-marques Feb 23, 2021
b15057a
[IMP] hr_commission: black, isort, prettier
ernesto-garcia-tecnativa Feb 17, 2023
a02edbb
[MIG] hr_commission: Migration to 15.0
ernesto-garcia-tecnativa Feb 17, 2023
18efce5
[MIG] hr_commission: Migration to 16.0
omar7r May 24, 2023
1c7f48d
[FIX] hr_commission: Possibility to have several records in constraint
omar7r Jul 12, 2023
64cb885
Translated using Weblate (Spanish)
Ivorra78 Oct 10, 2023
92a696a
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 30, 2023
4113b09
Added translation using Weblate (Italian)
mymage Apr 22, 2024
a4abdcf
[IMP] hr_commission: pre-commit auto fixes
ambientWave May 11, 2024
3efcf8f
[MIG] hr_commission: Migration to 17.0
ambientWave May 11, 2024
127f96f
Added translation using Weblate (Portuguese (Portugal))
pedrocs-exo Jun 4, 2024
77dc7ce
Added translation using Weblate (Turkish)
metingulsoy Aug 26, 2024
6385208
Translated using Weblate (Italian)
mymage Oct 24, 2024
d5861b2
[IMP] hr_commission: pre-commit stuff
Apr 11, 2025
f3fb67e
[MIG]hr_commission: migration to v18
Apr 11, 2025
9dcf6cf
[MIG] hr_commission: Continue migration to v18
david-banon-tecnativa Sep 3, 2025
e5b612d
Translated using Weblate (Turkish)
tsezgin Sep 22, 2025
d8e71de
[MIG] hr_commission_oca: Migration to 19.0
omar7r Mar 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 100 additions & 0 deletions hr_commission_oca/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

==================
HR commissions OCA
==================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:b36e2256947013011931cc80fc440a6e2db7010c4aa5abaeafd242af366fa22d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/license-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/19.0/hr_commission_oca
:alt: OCA/commission
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/commission-19-0/commission-19-0-hr_commission_oca
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/commission&target_branch=19.0
:alt: Try me on Runboat

|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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/commission/issues/new?body=module:%20hr_commission_oca%0Aversion:%2019.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
- David Bañón Gil

- Rattapong C. <rattapongc@ecosoft.co.th>
- Mina S. Wahib minaw368@gmail.com

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/19.0/hr_commission_oca>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions hr_commission_oca/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
18 changes: 18 additions & 0 deletions hr_commission_oca/__manifest__.py
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 OCA",
"version": "19.0.1.0.0",
"author": "Tecnativa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/commission",
"category": "Commissions",
"depends": ["account_commission_oca", "hr"],
"license": "AGPL-3",
"data": [
"views/res_partner_view.xml",
"views/sale_commission_settlement_views.xml",
],
"installable": True,
}
80 changes: 80 additions & 0 deletions hr_commission_oca/i18n/ca.po
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 <jabelchi@gmail.com>\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_oca
#: model:ir.model.fields,help:hr_commission_oca.field_res_partner__employee
#: model:ir.model.fields,help:hr_commission_oca.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_oca
#: model:ir.model,name:hr_commission_oca.model_res_partner
msgid "Contact"
msgstr "Contacte"

#. module: hr_commission_oca
#: model:ir.model,name:hr_commission_oca.model_hr_employee
#: model:ir.model.fields,field_description:hr_commission_oca.field_res_partner__employee
#: model:ir.model.fields,field_description:hr_commission_oca.field_res_users__employee
msgid "Employee"
msgstr "Empleat"

#. module: hr_commission_oca
#: model_terms:ir.ui.view,arch_db:hr_commission_oca.view_settlement_form
msgid "Mark as invoiced"
msgstr "Marcar com a facturat"

#. module: hr_commission_oca
#: model:ir.model.fields,field_description:hr_commission_oca.field_res_partner__employee_id
msgid "Related Employee"
msgstr "Empleat relacionat"

#. module: hr_commission_oca
#: model:ir.model.fields.selection,name:hr_commission_oca.selection__res_partner__agent_type__salesman
msgid "Salesman (employee)"
msgstr "Venedor (empleat)"

#. module: hr_commission_oca
#: model:ir.model,name:hr_commission_oca.model_commission_settlement
msgid "Settlement"
msgstr "Liquidaci??"

#. module: hr_commission_oca
#. odoo-python
#: code:addons/hr_commission_oca/models/res_partner.py:0
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_oca
#: model:ir.model.fields,field_description:hr_commission_oca.field_res_partner__agent_type
#: model:ir.model.fields,field_description:hr_commission_oca.field_res_users__agent_type
msgid "Type"
msgstr "Tipus"

#. module: hr_commission_oca
#. odoo-python
#: code:addons/hr_commission_oca/models/hr_employee.py:0
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."
74 changes: 74 additions & 0 deletions hr_commission_oca/i18n/ca_ES.po
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_oca
#: model:ir.model.fields,help:hr_commission_oca.field_res_partner__employee
#: model:ir.model.fields,help:hr_commission_oca.field_res_users__employee
msgid "Check this box if this contact is an Employee."
msgstr ""

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

#. module: hr_commission_oca
#: model:ir.model,name:hr_commission_oca.model_hr_employee
#: model:ir.model.fields,field_description:hr_commission_oca.field_res_partner__employee
#: model:ir.model.fields,field_description:hr_commission_oca.field_res_users__employee
msgid "Employee"
msgstr ""

#. module: hr_commission_oca
#: model_terms:ir.ui.view,arch_db:hr_commission_oca.view_settlement_form
msgid "Mark as invoiced"
msgstr ""

#. module: hr_commission_oca
#: model:ir.model.fields,field_description:hr_commission_oca.field_res_partner__employee_id
msgid "Related Employee"
msgstr ""

#. module: hr_commission_oca
#: model:ir.model.fields.selection,name:hr_commission_oca.selection__res_partner__agent_type__salesman
msgid "Salesman (employee)"
msgstr ""

#. module: hr_commission_oca
#: model:ir.model,name:hr_commission_oca.model_commission_settlement
msgid "Settlement"
msgstr ""

#. module: hr_commission_oca
#. odoo-python
#: code:addons/hr_commission_oca/models/res_partner.py:0
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_oca
#: model:ir.model.fields,field_description:hr_commission_oca.field_res_partner__agent_type
#: model:ir.model.fields,field_description:hr_commission_oca.field_res_users__agent_type
msgid "Type"
msgstr ""

#. module: hr_commission_oca
#. odoo-python
#: code:addons/hr_commission_oca/models/hr_employee.py:0
msgid "You can't remove the user, as it's linked to a commission agent."
msgstr ""
94 changes: 94 additions & 0 deletions hr_commission_oca/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# 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: 2023-10-10 22:39+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\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.17\n"

#. module: hr_commission_oca
#: model:ir.model.fields,help:hr_commission_oca.field_res_partner__employee
#: model:ir.model.fields,help:hr_commission_oca.field_res_users__employee
msgid "Check this box if this contact is an Employee."
msgstr "Seleccione esta casilla si el contacto es un Empleado."

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

#. module: hr_commission_oca
#: model:ir.model,name:hr_commission_oca.model_hr_employee
#: model:ir.model.fields,field_description:hr_commission_oca.field_res_partner__employee
#: model:ir.model.fields,field_description:hr_commission_oca.field_res_users__employee
msgid "Employee"
msgstr "Empleado"

#. module: hr_commission_oca
#: model_terms:ir.ui.view,arch_db:hr_commission_oca.view_settlement_form
msgid "Mark as invoiced"
msgstr "Marcar como facturado"

#. module: hr_commission_oca
#: model:ir.model.fields,field_description:hr_commission_oca.field_res_partner__employee_id
msgid "Related Employee"
msgstr "Empleado relacionado"

#. module: hr_commission_oca
#: model:ir.model.fields.selection,name:hr_commission_oca.selection__res_partner__agent_type__salesman
msgid "Salesman (employee)"
msgstr "Comercial (empleado)"

#. module: hr_commission_oca
#: model:ir.model,name:hr_commission_oca.model_commission_settlement
msgid "Settlement"
msgstr "Liquidaci??n"

#. module: hr_commission_oca
#. odoo-python
#: code:addons/hr_commission_oca/models/res_partner.py:0
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 ""
"Debe haber un (y s??lo un) empleado vinculado a este socio. Para ello, vaya "
"a 'Empleados' y cree un Empleado con un 'Usuario vinculado' en 'Configuraci??"
"n de RRHH'."

#. module: hr_commission_oca
#: model:ir.model.fields,field_description:hr_commission_oca.field_res_partner__agent_type
#: model:ir.model.fields,field_description:hr_commission_oca.field_res_users__agent_type
msgid "Type"
msgstr "Tipo"

#. module: hr_commission_oca
#. odoo-python
#: code:addons/hr_commission_oca/models/hr_employee.py:0
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."

#~ msgid "Employee."
#~ msgstr "Empleado."

#~ msgid "External agent"
#~ msgstr "Agente externo"

#, 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'"
Loading