-
-
Notifications
You must be signed in to change notification settings - Fork 395
[19.0][MIG] hr_commission_oca #665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
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>.
224e9a4
[IMP] *_commission: Total refactorization of the modules
pedrobaeza 894262b
[MIG] hr_commission: Migration to 11.0
pedrobaeza 271ddb3
[12.0][MIG] hr_commission
kongrattapong dce1fe6
[IMP] hr_commission: Allow to mark settlements as invoiced
pedrobaeza 8607860
[IMP] hr_commission: black, isort, prettier
joao-p-marques b59dec0
[MIG] hr_commission: Migration to 14.0
joao-p-marques 7c0ae6f
[IMP] hr_commission: update employee field on res.partner
joao-p-marques b15057a
[IMP] hr_commission: black, isort, prettier
ernesto-garcia-tecnativa a02edbb
[MIG] hr_commission: Migration to 15.0
ernesto-garcia-tecnativa 18efce5
[MIG] hr_commission: Migration to 16.0
omar7r 1c7f48d
[FIX] hr_commission: Possibility to have several records in constraint
omar7r 64cb885
Translated using Weblate (Spanish)
Ivorra78 92a696a
Translated using Weblate (Portuguese (Brazil))
adrianojprado 4113b09
Added translation using Weblate (Italian)
mymage a4abdcf
[IMP] hr_commission: pre-commit auto fixes
ambientWave 3efcf8f
[MIG] hr_commission: Migration to 17.0
ambientWave 127f96f
Added translation using Weblate (Portuguese (Portugal))
pedrocs-exo 77dc7ce
Added translation using Weblate (Turkish)
metingulsoy 6385208
Translated using Weblate (Italian)
mymage d5861b2
[IMP] hr_commission: pre-commit stuff
f3fb67e
[MIG]hr_commission: migration to v18
9dcf6cf
[MIG] hr_commission: Continue migration to v18
david-banon-tecnativa e5b612d
Translated using Weblate (Turkish)
tsezgin d8e71de
[MIG] hr_commission_oca: Migration to 19.0
omar7r File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,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. |
This file contains hidden or 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 hidden or 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 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, | ||
| } |
This file contains hidden or 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 <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." |
This file contains hidden or 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_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 "" |
This file contains hidden or 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,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'" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should be integrated into
ca.po(if any missing term) and removed.