Skip to content
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

[18.0] [MIG] sale_commission: Migration to 18.0 #583

Open
wants to merge 119 commits into
base: 18.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
eadf816
sale_commissions: added module migrated to 6.1. (../../7.0-pexego_sal…
martiita Jul 13, 2012
e258cc5
sale_commission. Ported to version 7.0 (../../7.0-pexego_sale_commiss…
Feb 19, 2013
abea2f0
[FIX+IMP] sale_commission: 4 things
Dec 16, 2013
f3a3ffb
onchange_partner_id() got an unexpected keyword argument 'context'
Dec 23, 2013
765857c
#1180743 + missing context
Jan 23, 2014
5bdad6e
Removed wrong bracket from L197 of the settled.py
tafaRU Feb 6, 2014
b12cb75
Launchpad automatic translations update.
Apr 21, 2013
f9acbaf
Improve partnert view
mileo Aug 28, 2014
7670f22
adapt QA files to 8.0
gurneyalex Sep 2, 2014
2ff8131
[MIG] sale_commission: Migration to 8.0
gborelli Nov 6, 2014
bd72803
<hr_commission><sale_commission><stock_commission>.
Feb 17, 2015
e9431da
[RFR] sale_commission: Total refactorization of the modules
pedrobaeza Feb 19, 2015
732ebb4
sale.commission.settlement access error opening res.partner form for …
pablocm-aserti Oct 26, 2015
93749d5
"sale" journal type on making agent invoice
Oct 27, 2015
e4fa560
Created new field to specify the commission creation according to the…
mbcosta Nov 13, 2015
2729a8b
sale_commission: base amount for computation selectable You can now s…
oihane Nov 30, 2015
e737fa6
Fix singleton error
Dec 22, 2015
f30c211
sale_commission: Fix tests
pedrobaeza Jan 26, 2016
3506434
sale_commission: Refunds from invoices. Fixes #51
pedrobaeza Jan 20, 2016
c86728c
Change visibility of agents field to only show when partner is a cust…
ivantodorovich Jan 25, 2016
7dd505a
sale_commission: Don't put supplier flag if not agent
pedrobaeza Jan 28, 2016
449775a
[IMP+FIX] sale_commission: 4 things:
ivantodorovich Jan 29, 2016
034ecb4
add method to prepare agents
rgarnau Jul 13, 2017
1def8b0
sale_commission: : Migrated to 10.0
Mar 27, 2017
85b50c2
FIX sale_commission quaterly settlement
eLBati Jul 27, 2017
b8cdd54
Tradução pt_BR
hendrixcosta Aug 29, 2017
ae61c13
[MIG] sale_commission: Migrationt to 11.0
etobella Oct 17, 2017
b35c4cc
[FIX] sale_commission: installation fails if en_US language is not in…
oihane Dec 13, 2017
be4df38
small fix
rgarnau Jan 23, 2018
5594c4b
[IMP] Add hook on make invoice settlement
etobella May 16, 2018
befc4a5
sale_commision: temporary fix until https://github.com/odoo/odoo/issu…
JordiBForgeFlow May 14, 2018
5851535
Make Section Model Accessible By Everyone
lk-eska May 31, 2018
5acde1b
FIX sale_commission the following use case (#170)
eLBati Jul 13, 2018
35b3948
Translated using Weblate (Spanish)
etobella Jul 13, 2018
38452c8
Translated using Weblate (Portuguese (Brazil))
Aug 3, 2018
24a9f0b
[IMP] sale_commission: Work on integration tests + improve invoice ge…
pedrobaeza Aug 15, 2018
0a65e1a
[IMP] commission: Add two hooks on make settlements (#176)
etobella Sep 4, 2018
b792445
Translated using Weblate (German)
rschnapka Sep 21, 2018
fcf1808
FIX taxes in settlement invoice creation
ljimenezsidoo Nov 5, 2018
3512401
Translated using Weblate (Italian)
dcorio Nov 4, 2018
a11124d
[FIX]sale_commission: When creating agent from agents fields, on part…
javierjcf Nov 13, 2018
046bbe9
[IMP] sale_commission: Add hook on the create settlements (#189)
etobella Nov 21, 2018
f0ea4f4
[FIX+IMP] sale_commission: Reworked module
pedrobaeza Nov 26, 2018
cdd63bb
[IMP] sale_commission: Adding graph view and settlement report
aitorbouzas Aug 7, 2018
372ee74
Translated using Weblate (Spanish)
pedrobaeza Dec 11, 2018
4b7d447
[MIG] sale_commission: Migration to 12.0
pedrobaeza Dec 14, 2018
0f6c78b
[FIX] avoid KeyError
dcorio Feb 4, 2019
7aaf4bc
[FIX] sale_commission: Strictly check commission type
SimoRubi Mar 11, 2019
a4c053a
[REF] sale_commission: Use SavepointCase
pedrobaeza Feb 4, 2019
5e94781
[IMP] sale_commission: Agent propagation + tests
ernestotejeda Jan 19, 2019
7e7bc6f
Added translation using Weblate (Portuguese (Portugal))
rdc02271 May 5, 2019
8c21caa
[12.0][FIX] sale_commission: show agents field on partner form
rubencr7 Jun 17, 2019
978f66a
Translated using Weblate (Italian)
eLBati Jul 19, 2019
f507073
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Aug 2, 2019
eae1d05
Added translation using Weblate (Portuguese)
pedrocs-exo Aug 14, 2019
fd0f694
[FIX] sale_commission: Add view context by code
pedrobaeza Aug 19, 2019
d362516
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 17, 2019
3e80bf2
Added translation using Weblate (Dutch)
thomaspot Dec 15, 2019
400e7dd
[12.0][IMP] sale_commission: move check of the amount to the end (#204)
etobella Feb 28, 2019
0a14fd4
Translated using Weblate (Italian)
SimoRubi Jan 16, 2020
0a81196
[IMP] sale_commission: Show signed subtotal
SimoRubi Feb 13, 2020
527b056
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 20, 2020
8a66910
[FIX] sale_commission: No commission should be populated on vendor bills
pedrobaeza Mar 24, 2020
70088c4
[IMP] sale_commission: Multi-company record rules
pedrobaeza Jul 1, 2020
a36bc64
[IMP] : black, isort, prettier
May 11, 2020
e546af1
[IMP] sale_commission: Migration to 13.0 (partial)
Mar 26, 2020
cfeb9a3
[MIG+IMP] sale_commission: Switch to computed writable + finish migra…
pedrobaeza Apr 3, 2020
582f26b
Added translation using Weblate (Spanish (Argentina))
ibuioli Sep 12, 2020
f75ccea
[FIX] sale_commission: Settlement report printing
pedrobaeza Oct 27, 2020
ccb58ab
[13.0][FIX] sale_commission: fixing inheritance of view_res_partner_f…
dennybiasiolli Nov 16, 2020
32cb71f
[IMP] sale_commission: Remove required attribute in settlement field.…
sergio-teruel Dec 3, 2020
deea1fe
[FIX] sale_commission: Fix tests
joao-p-marques Feb 11, 2021
f993ba5
[IMP] sale_commission: Add optional in commission_status field relate…
victoralmau Feb 17, 2021
6e72c83
Translated using Weblate (Spanish)
anasuarez1 Mar 17, 2021
da2e758
FIX sale_commission: fix wrong constrain logic on settlement lines
SilvioGregorini Mar 17, 2021
8fb9ba6
[FIX] required only if partner is agent
renatonlima Apr 23, 2021
75d30d4
Core context is not removed from invoice_line_ids
ao-landoo Feb 10, 2021
3700851
[IMP] sale_commission: black, isort, prettier
fredzamoabg May 24, 2021
cb43c0f
[MIG] sale_commission: Migration to 14.0
Dec 17, 2020
6695c12
Added translation using Weblate (French)
Yvesldff May 31, 2021
e3ebdc2
[14.0][IMP] sale_commission: Only show commission for customers
hildickethan Jun 2, 2021
42d2aca
FIX sale_commission preventing to cancel invoice with settled commiss…
eLBati Jul 1, 2021
886d08f
[FIX] sale_commission
max3903 Jul 22, 2021
ff722fd
[14.0][FIX] sale_commission: amount compute
Zar21 Oct 14, 2021
ff86aa2
Translated using Weblate (Italian)
francesco-ooops Nov 4, 2021
75463ea
Translated using Weblate (Italian)
primes2h Dec 20, 2021
b51c1e0
Translated using Weblate (Italian)
MarcoCalcagni Dec 24, 2021
b4f47ba
Translated using Weblate (Italian)
primes2h Dec 24, 2021
e5114b1
[IMP] sale_commission allowing to filter sale orders and invoices by …
antoniospneto Feb 14, 2022
5f44e11
[FIX] invoice_date
felipemotter Feb 17, 2022
bf660c9
[IMP] sale_commission: Allow to group invoices
etobella Jul 12, 2021
23c118c
[IMP] sale_commission: New bi-weekly settlement period
pedrobaeza Apr 14, 2022
828213b
[IMP] sale_commission: Adapt Forward-port to 14
olgamarcocb May 10, 2022
cdb608a
[FIX] sale_commission: compute amount after changing commission, fixe…
oihane May 25, 2022
ca8d0ad
[14.0][IMP] sale_commission: show Group Invoices label + hook for sal…
ilyasProgrammer Aug 30, 2022
9867bfd
[MIG] sale_commission: Migration to 15.0
AungKoKoLin1997 Sep 19, 2022
ea770f2
[REF] *commission*: Abstract even more the base module
pedrobaeza Nov 19, 2022
0a2cf30
[IMP] commission*: Add settlement_type to commissions
pedrobaeza Dec 1, 2022
768a6f4
Added translation using Weblate (Japanese)
Ryoko04 Dec 7, 2022
20e0885
Translated using Weblate (Japanese)
Ryoko04 Dec 16, 2022
75e00d7
[MIG] sale_commission: Migration to 16.0
hildickethan Dec 26, 2022
8ab59cd
Added translation using Weblate (Portuguese (Brazil))
adrianojprado Jun 12, 2023
fa85cac
Translated using Weblate (Portuguese (Brazil))
adrianojprado Jun 12, 2023
2e466d5
[FIX] sale_commission: Salesmen can see invoice from SO
pedrobaeza Jun 26, 2023
21f82f2
Added translation using Weblate (Spanish)
Ivorra78 Jul 31, 2023
bb14617
Translated using Weblate (Spanish)
Ivorra78 Jul 31, 2023
7cd4829
Added translation using Weblate (Italian)
dcorio Sep 15, 2023
22514db
Translated using Weblate (Italian)
dcorio Sep 15, 2023
464b733
Translated using Weblate (Italian)
mymage Sep 20, 2023
dd8ef9c
Translated using Weblate (Italian)
francesco-ooops Oct 13, 2023
36dd5fd
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 30, 2023
96b1168
Translated using Weblate (Italian)
mymage Nov 3, 2023
d0d9787
Translated using Weblate (Italian)
mymage Nov 9, 2023
0dba32a
[IMP] sale_commission: pre-commit auto fixes
ambientWave Jan 19, 2024
3cc5925
[MIG] sale_commission: Migration to 17.0
ambientWave Jan 19, 2024
45c5edb
Added translation using Weblate (Turkish)
metingulsoy Aug 26, 2024
ae11dc8
Translated using Weblate (Turkish)
metingulsoy Aug 26, 2024
e5803de
[MIG] sale_commission: Migration to 18.0
Borruso Dec 6, 2024
9cddcf6
[DON'T MERGE] test-requirements.txt
Borruso Dec 6, 2024
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
134 changes: 134 additions & 0 deletions sale_commission/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
=================
Sales commissions
=================

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

.. |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/18.0/sale_commission
:alt: OCA/commission
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/commission-18-0/commission-18-0-sale_commission
: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=18.0
:alt: Try me on Runboat

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

This module adds the function to calculate commissions in sales orders.

Commission lines assigned to sales order lines will be passed to the
corresponding invoice lines.

Creating settlements directly from the sales order lines is outside the
scope of this module.

This module depends on the account_commission module.

**Table of contents**

.. contents::
:local:

Usage
=====

For adding commissions on sales orders:

1. Go to *Sales > Orders > Quotations*.
2. Edit or create a new record.
3. When you have selected a partner, each new quotation line you add
will have the agents and commissions set at customer level.
4. You can add, modify or delete these agents discretely clicking on the
icon with several persons represented, next to the "Commission" field
in the list. This icon will be available only if the line hasn't been
invoiced yet.
5. If you have configured your system for editing lines in a popup
window, agents will appear also in this window.
6. You have a button "Regenerate agents" on the bottom of the page
"Order Lines" for forcing a recompute of all agents from the partner
setup. This is needed for example when you have changed the partner
on the quotation having already inserted lines.

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:%20sale_commission%0Aversion:%2018.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
------------

- Pexego.
- Davide Corio <davide.corio@domsense.com>
- Joao Alfredo Gama Batista <joao.gama@savoirfairelinux.com>
- Sandy Carter <sandy.carter@savoirfairelinux.com>
- Giorgio Borelli <giorgio.borelli@abstract.it>
- Daniel Campos <danielcampos@avanzosc.es>
- Oihane Crucelaegui <oihanecruce@gmail.com>
- Nicola Malcontenti <nicola.malcontenti@agilebg.com>
- Aitor Bouzas <aitor.bouzas@adaptivecity.com>
- Mina Samir <<minaw368@gmail.com>
- `Tecnativa <https://www.tecnativa.com>`__:

- Pedro M. Baeza
- Manuel Calero

- `Quartile <https://www.quartile.co>`__:

- Aung Ko Ko Lin
- Yoshi Tashiro

- `Studio73 <https://www.studio73.es>`__:

- Ethan Hildick

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.

.. |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/commission <https://github.com/OCA/commission/tree/18.0/sale_commission>`_ 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 sale_commission/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
21 changes: 21 additions & 0 deletions sale_commission/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2020 Tecnativa - Manuel Calero
# Copyright 2022 Quartile
# Copyright 2014-2022 Tecnativa - Pedro M. Baeza
{
"name": "Sales commissions",
"version": "18.0.1.0.0",
"author": "Tecnativa, Odoo Community Association (OCA)",
"category": "Sales Management",
"license": "AGPL-3",
"depends": [
"sale",
"account_commission",
],
"website": "https://github.com/OCA/commission",
"maintainers": ["pedrobaeza"],
"data": [
"security/ir.model.access.csv",
"views/sale_order_view.xml",
],
"installable": True,
}
133 changes: 133 additions & 0 deletions sale_commission/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_commission
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-07-31 19:09+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\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: sale_commission
#: model:ir.model.fields,field_description:sale_commission.field_sale_order_line_agent__agent_id
msgid "Agent"
msgstr "Agente"

#. module: sale_commission
#: model:ir.model,name:sale_commission.model_sale_order_line_agent
msgid "Agent detail of commission line in order lines"
msgstr "Detalle de agente de l??nea de comisi??n en l??neas de pedido"

#. module: sale_commission
#: model:ir.model.fields,field_description:sale_commission.field_sale_order__partner_agent_ids
msgid "Agents"
msgstr "Agentes"

#. module: sale_commission
#: model:ir.model.fields,field_description:sale_commission.field_sale_order_line__agent_ids
msgid "Agents & commissions"
msgstr "Agentes & comisiones"

#. module: sale_commission
#: model:ir.model.fields,help:sale_commission.field_sale_order_line__agent_ids
msgid "Agents/Commissions related to the invoice line."
msgstr "Agentes/Comisiones relacionadas con la l??nea de factura."

#. module: sale_commission
#: model:ir.model.fields,field_description:sale_commission.field_sale_order_line__commission_free
msgid "Comm. free"
msgstr "Libre de comisi??n"

#. module: sale_commission
#: model:ir.model.fields,field_description:sale_commission.field_sale_order_line__commission_status
#: model:ir.model.fields,field_description:sale_commission.field_sale_order_line_agent__commission_id
msgid "Commission"
msgstr "Comisi??n"

#. module: sale_commission
#: model:ir.model.fields,field_description:sale_commission.field_sale_order_line_agent__amount
msgid "Commission Amount"
msgstr "Importe de la Comisi??n"

#. module: sale_commission
#: model:ir.model.fields,field_description:sale_commission.field_sale_order__commission_total
msgid "Commissions"
msgstr "Comisiones"

#. module: sale_commission
#: model:ir.model.fields,field_description:sale_commission.field_sale_order_line_agent__create_uid
msgid "Created by"
msgstr "Creado por"

#. module: sale_commission
#: model:ir.model.fields,field_description:sale_commission.field_sale_order_line_agent__create_date
msgid "Created on"
msgstr "Creado el"

#. module: sale_commission
#: model:ir.model.fields,field_description:sale_commission.field_sale_order_line_agent__currency_id
msgid "Currency"
msgstr "Divisa"

#. module: sale_commission
#: model:ir.model.fields,field_description:sale_commission.field_sale_order_line_agent__display_name
msgid "Display Name"
msgstr "Nombre a Mostrar"

#. module: sale_commission
#: model_terms:ir.ui.view,arch_db:sale_commission.view_order_agent_form_inherit
msgid "Edit agents"
msgstr "Editar agentes"

#. module: sale_commission
#: model:ir.model.fields,field_description:sale_commission.field_sale_order_line_agent__id
msgid "ID"
msgstr "ID (identificaci??n)"

#. module: sale_commission
#: model:ir.model.fields,field_description:sale_commission.field_sale_order_line_agent____last_update
msgid "Last Modified on"
msgstr "??ltima Modificaci??n el"

#. module: sale_commission
#: model:ir.model.fields,field_description:sale_commission.field_sale_order_line_agent__write_uid
msgid "Last Updated by"
msgstr "Actualizado por ??ltima vez por"

#. module: sale_commission
#: model:ir.model.fields,field_description:sale_commission.field_sale_order_line_agent__write_date
msgid "Last Updated on"
msgstr "??ltima Actualizaci??n el"

#. module: sale_commission
#: model:ir.model.fields,field_description:sale_commission.field_sale_order_line_agent__object_id
msgid "Parent"
msgstr "Parental"

#. module: sale_commission
#: model:ir.model.fields,field_description:sale_commission.field_sale_order_line__product_id
msgid "Product"
msgstr "Producto"

#. module: sale_commission
#: model_terms:ir.ui.view,arch_db:sale_commission.view_order_agent_form_inherit
msgid "Regenerate agents"
msgstr "Regenerar agentes"

#. module: sale_commission
#: model:ir.model,name:sale_commission.model_sale_order
msgid "Sales Order"
msgstr "??rdenes de Venta"

#. module: sale_commission
#: model:ir.model,name:sale_commission.model_sale_order_line
msgid "Sales Order Line"
msgstr "L??nea de Orden de Venta"
Loading
Loading