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

[15.0][MIG] commission, account_commission, sale_commission : Migration to 15.0 #1

Closed
wants to merge 152 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
21cb37a
[FIX] update dotfiles w/ copier: flake8 source
yostashiro Nov 19, 2022
2509f2e
Merge pull request #384 from qrtl/15.0-fix-update-flake8-source
pedrobaeza Nov 19, 2022
5add607
sale_commissions: added module migrated to 6.1. (../../7.0-pexego_sal…
martiita Jul 13, 2012
39b0d47
sale_commission. Ported to version 7.0 (../../7.0-pexego_sale_commiss…
Feb 19, 2013
c23abc5
[FIX+IMP] sale_commission: 4 things
Dec 16, 2013
49537ad
onchange_partner_id() got an unexpected keyword argument 'context'
Dec 23, 2013
87c3076
#1180743 + missing context
Jan 23, 2014
0a4d1a6
Removed wrong bracket from L197 of the settled.py
tafaRU Feb 6, 2014
da9748e
Launchpad automatic translations update.
Apr 21, 2013
752fd35
Improve partnert view
mileo Aug 28, 2014
50adf51
adapt QA files to 8.0
gurneyalex Sep 2, 2014
01a9a55
[MIG] sale_commission: Migration to 8.0
gborelli Nov 6, 2014
2af53a9
<hr_commission><sale_commission><stock_commission>.
Feb 17, 2015
bc36662
[RFR] sale_commission: Total refactorization of the modules
pedrobaeza Feb 19, 2015
1f0ff4a
sale.commission.settlement access error opening res.partner form for …
pablocm-aserti Oct 26, 2015
bdea22c
"sale" journal type on making agent invoice
Oct 27, 2015
d7a8f33
Created new field to specify the commission creation according to the…
mbcosta Nov 13, 2015
d83eceb
sale_commission: base amount for computation selectable You can now s…
oihane Nov 30, 2015
344e87c
Fix singleton error
Dec 22, 2015
a083b75
sale_commission: Fix tests
pedrobaeza Jan 26, 2016
0095e09
sale_commission: Refunds from invoices. Fixes #51
pedrobaeza Jan 20, 2016
d319a47
Change visibility of agents field to only show when partner is a cust…
ivantodorovich Jan 25, 2016
e98b59f
sale_commission: Don't put supplier flag if not agent
pedrobaeza Jan 28, 2016
1b5c4fb
[IMP+FIX] sale_commission: 4 things:
ivantodorovich Jan 29, 2016
17c3faa
add method to prepare agents
rgarnau Jul 13, 2017
510e0ed
sale_commission: : Migrated to 10.0
Mar 27, 2017
e52b00d
FIX sale_commission quaterly settlement
eLBati Jul 27, 2017
0fc773e
Tradução pt_BR
hendrixcosta Aug 29, 2017
6023fb4
[MIG] sale_commission: Migrationt to 11.0
etobella Oct 17, 2017
054a0d1
[FIX] sale_commission: installation fails if en_US language is not in…
oihane Dec 13, 2017
3570fea
OCA Transbot updated translations from Transifex
oca-transbot Dec 16, 2017
a52fcdc
small fix
rgarnau Jan 23, 2018
09767c6
OCA Transbot updated translations from Transifex
oca-transbot Mar 24, 2018
da8486d
[IMP] Add hook on make invoice settlement
etobella May 16, 2018
a7591a2
sale_commision: temporary fix until https://github.com/odoo/odoo/issu…
JordiBForgeFlow May 14, 2018
7865629
OCA Transbot updated translations from Transifex
oca-transbot May 19, 2018
77ef30e
Make Section Model Accessible By Everyone
lk-eska May 31, 2018
00865a4
FIX sale_commission the following use case (#170)
eLBati Jul 13, 2018
7dd470d
Translated using Weblate (Spanish)
etobella Jul 13, 2018
01af659
Translated using Weblate (Portuguese (Brazil))
Aug 3, 2018
be1c3dd
[IMP] sale_commission: Work on integration tests + improve invoice ge…
pedrobaeza Aug 15, 2018
c8eaeed
[IMP] commission: Add two hooks on make settlements (#176)
etobella Sep 4, 2018
342e075
Translated using Weblate (German)
rschnapka Sep 21, 2018
80208be
FIX taxes in settlement invoice creation
ljimenezsidoo Nov 5, 2018
ac24895
Translated using Weblate (Italian)
dcorio Nov 4, 2018
023950b
[FIX]sale_commission: When creating agent from agents fields, on part…
javierjcf Nov 13, 2018
33d3ed9
[IMP] sale_commission: Add hook on the create settlements (#189)
etobella Nov 21, 2018
eb0dfaa
[FIX+IMP] sale_commission: Reworked module
pedrobaeza Nov 26, 2018
df48218
[IMP] sale_commission: Adding graph view and settlement report
aitorbouzas Aug 7, 2018
d400bd4
[UPD] Update sale_commission.pot + Update translation files
oca-transbot Dec 7, 2018
8dceccc
Translated using Weblate (Spanish)
pedrobaeza Dec 11, 2018
5bbfee2
[MIG] sale_commission: Migration to 12.0
pedrobaeza Dec 14, 2018
b1e2274
[FIX] avoid KeyError
dcorio Feb 4, 2019
9a4beb5
[FIX] sale_commission: Strictly check commission type
SimoRubi Mar 11, 2019
9ebd94e
[REF] sale_commission: Use SavepointCase
pedrobaeza Feb 4, 2019
aca1fca
[IMP] sale_commission: Agent propagation + tests
ernestotejeda Jan 19, 2019
74d06c3
Added translation using Weblate (Portuguese (Portugal))
rdc02271 May 5, 2019
dc73e23
Update translation files
oca-travis May 21, 2019
9404287
[12.0][FIX] sale_commission: show agents field on partner form
rubencr7 Jun 17, 2019
c1f974c
Translated using Weblate (Italian)
eLBati Jul 19, 2019
ed8b852
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Aug 2, 2019
56319ca
Added translation using Weblate (Portuguese)
pedrocs-exo Aug 14, 2019
4fdf481
[FIX] sale_commission: Add view context by code
pedrobaeza Aug 19, 2019
4a29d05
Added translation using Weblate (Chinese (Simplified))
liweijie0812 Sep 17, 2019
3e4b766
Added translation using Weblate (Dutch)
thomaspot Dec 15, 2019
9122a89
[UPD] Update sale_commission.pot + Update translation files
oca-travis Dec 30, 2019
45a7c2e
[12.0][IMP] sale_commission: move check of the amount to the end (#204)
etobella Feb 28, 2019
5684ee5
Translated using Weblate (Italian)
SimoRubi Jan 16, 2020
3331244
[IMP] sale_commission: Show signed subtotal
SimoRubi Feb 13, 2020
270610e
Translated using Weblate (Portuguese (Brazil))
marcelsavegnago Feb 20, 2020
6315af8
[FIX] sale_commission: No commission should be populated on vendor bills
pedrobaeza Mar 24, 2020
3cee2c7
[IMP] sale_commission: Multi-company record rules
pedrobaeza Jul 1, 2020
893860e
[IMP] : black, isort, prettier
May 11, 2020
b7fddac
[IMP] sale_commission: Migration to 13.0 (partial)
Mar 26, 2020
b850d7f
[MIG+IMP] sale_commission: Switch to computed writable + finish migra…
pedrobaeza Apr 3, 2020
355efc0
[UPD] Update sale_commission.pot
oca-travis Jul 6, 2020
22ec87b
[MIG+FIX] sale_commission: Proper table name
pedrobaeza Jul 12, 2020
f482eb5
Update translation files
oca-transbot Jul 12, 2020
ab38381
Added translation using Weblate (Spanish (Argentina))
ibuioli Sep 12, 2020
62deb48
Translated using Weblate (Spanish (Argentina))
ibuioli Sep 12, 2020
6dd948b
Translated using Weblate (Spanish (Argentina))
ibuioli Oct 5, 2020
6cb4f6f
[FIX] sale_commission: Settlement report printing
pedrobaeza Oct 27, 2020
3d4744b
[MIG+FIX] sale_commission: Fix migration script
pedrobaeza Nov 13, 2020
aebe947
[FIX] sale_commission: Incorrect compute renaming
pedrobaeza Nov 13, 2020
79d9784
[13.0][FIX] sale_commission: fixing inheritance of view_res_partner_f…
dennybiasiolli Nov 16, 2020
ba4890c
Update translation files
oca-travis Nov 16, 2020
a86ffe2
[13.0][FIX] sale_commission: adding migration after renaming changed …
dennybiasiolli Nov 16, 2020
a801961
[IMP] sale_commission: Remove required attribute in settlement field.…
sergio-teruel Dec 3, 2020
1f0ffbe
sale_commission 13.0.1.3.0
OCA-git-bot Dec 4, 2020
febc422
[FIX] sale_commission: Fix tests
joao-p-marques Feb 11, 2021
8992164
sale_commission 13.0.1.3.1
OCA-git-bot Feb 11, 2021
2574ded
[IMP] sale_commission: Add optional in commission_status field relate…
victoralmau Feb 17, 2021
6871d36
sale_commission 13.0.1.4.0
OCA-git-bot Feb 17, 2021
952bf82
Translated using Weblate (Spanish)
anasuarez1 Mar 17, 2021
602254e
FIX sale_commission: fix wrong constrain logic on settlement lines
SilvioGregorini Mar 17, 2021
35e0113
sale_commission 13.0.1.4.1
OCA-git-bot Mar 17, 2021
be2bd57
[FIX] required only if partner is agent
renatonlima Apr 23, 2021
58d7a88
sale_commission 13.0.1.5.0
OCA-git-bot Apr 23, 2021
aa80455
Core context is not removed from invoice_line_ids
ao-landoo Feb 10, 2021
9a27d36
sale_commission 13.0.1.5.1
OCA-git-bot May 4, 2021
2629ea1
[IMP] sale_commission: black, isort, prettier
fredzamoabg May 24, 2021
31ca1d1
[MIG] sale_commission: Migration to 14.0
Dec 17, 2020
c97a4f0
[UPD] Update sale_commission.pot
oca-travis May 29, 2021
6ab10bb
[UPD] README.rst
OCA-git-bot May 29, 2021
f4721bd
Added translation using Weblate (French)
Yvesldff May 31, 2021
7aebf3c
Translated using Weblate (French)
Yvesldff May 31, 2021
8e122bf
[14.0][IMP] sale_commission: Only show commission for customers
hildickethan Jun 2, 2021
8005de1
Translated using Weblate (French)
Yvesldff Jun 3, 2021
b964a19
sale_commission 14.0.1.1.0
OCA-git-bot Jun 7, 2021
2da8bb9
FIX sale_commission preventing to cancel invoice with settled commiss…
eLBati Jul 1, 2021
0a57b67
[UPD] Update sale_commission.pot
oca-travis Jul 8, 2021
be722ce
sale_commission 14.0.1.1.1
OCA-git-bot Jul 8, 2021
90df0b0
Update translation files
oca-transbot Jul 8, 2021
3a2bc0f
[FIX] sale_commission
max3903 Jul 22, 2021
e7acc50
sale_commission 14.0.1.1.2
OCA-git-bot Jul 22, 2021
e6a925b
[FIX] sale_commission
max3903 Jul 23, 2021
a428e52
sale_commission 14.0.1.1.3
OCA-git-bot Jul 24, 2021
5778db4
[14.0][FIX] sale_commission: amount compute
Zar21 Oct 14, 2021
f37febd
sale_commission 14.0.1.1.4
OCA-git-bot Oct 14, 2021
56b920f
Translated using Weblate (Italian)
francesco-ooops Nov 4, 2021
473f45f
Translated using Weblate (Italian)
francesco-ooops Dec 20, 2021
c61c6d2
Translated using Weblate (Italian)
primes2h Dec 20, 2021
8070ae7
Translated using Weblate (Italian)
primes2h Dec 21, 2021
5d618ae
Translated using Weblate (Italian)
primes2h Dec 21, 2021
cdadf6a
Translated using Weblate (Italian)
primes2h Dec 22, 2021
2d02e87
Translated using Weblate (Italian)
primes2h Dec 23, 2021
53c1f87
Translated using Weblate (Italian)
MarcoCalcagni Dec 24, 2021
6918eef
Translated using Weblate (Italian)
primes2h Dec 24, 2021
4dd76b9
Translated using Weblate (Italian)
primes2h Dec 25, 2021
fbd4dcb
[IMP] sale_commission allowing to filter sale orders and invoices by …
antoniospneto Feb 14, 2022
f9dce49
[UPD] Update sale_commission.pot
oca-travis Feb 16, 2022
1ab41ae
sale_commission 14.0.1.2.0
OCA-git-bot Feb 16, 2022
338c638
Update translation files
oca-transbot Feb 16, 2022
a1daaca
[FIX] invoice_date
felipemotter Feb 17, 2022
c453c40
sale_commission 14.0.1.2.1
OCA-git-bot Feb 18, 2022
c014feb
[IMP] update dotfiles [ci skip]
OCA-git-bot Mar 30, 2022
fdfb253
[IMP] sale_commission: Allow to group invoices
etobella Jul 12, 2021
5c1ced0
[IMP] sale_commission: Add a hook
olgamarcocb Oct 27, 2021
d6b91ba
[FIX] sale_commission: Convert field to write, this way it is checked…
etobella Oct 28, 2021
0829d04
[FIX] sale_commission: Switch at the end, in order to fix grouped inv…
etobella Nov 21, 2021
91fe524
[IMP] sale_commission: New bi-weekly settlement period
pedrobaeza Apr 14, 2022
8e19021
[IMP] sale_commission: Adapt Forward-port to 14
olgamarcocb May 10, 2022
0f9b563
[UPD] Update sale_commission.pot
oca-travis May 12, 2022
11873db
sale_commission 14.0.1.4.0
OCA-git-bot May 12, 2022
bdcb9e0
Update translation files
oca-transbot May 12, 2022
43394fc
[FIX] sale_commission: compute amount after changing commission, fixe…
oihane May 25, 2022
6aac91b
sale_commission 14.0.1.4.1
OCA-git-bot May 26, 2022
3659ee6
[14.0][IMP] sale_commission: show Group Invoices label
ilyasProgrammer Aug 30, 2022
451b6f6
[14.0][ADD] sale_commission_queued
ilyasProgrammer Aug 29, 2022
bf954fa
sale_commission 14.0.1.5.0
OCA-git-bot Aug 30, 2022
772f152
[IMP] sale_commission: black, isort, prettier
AungKoKoLin1997 Sep 19, 2022
08c91a3
[MIG] sale_commission: Migration to 15.0
AungKoKoLin1997 Sep 19, 2022
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
2 changes: 1 addition & 1 deletion .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Do NOT update manually; changes here will be overwritten by Copier
_commit: v1.11.0
_commit: v1.11.1
_src_path: https://github.com/OCA/oca-addons-repo-template.git
ci: GitHub
dependency_installation_mode: PIP
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ repos:
- --settings=.
exclude: /__init__\.py$
- repo: https://github.com/acsone/setuptools-odoo
rev: 3.0.3
rev: 3.1.8
hooks:
- id: setuptools-odoo-make-default
- id: setuptools-odoo-get-requirements
Expand All @@ -113,7 +113,7 @@ repos:
- requirements.txt
- --header
- "# generated from manifests external_dependencies"
- repo: https://gitlab.com/PyCQA/flake8
- repo: https://github.com/PyCQA/flake8
rev: 3.9.2
hooks:
- id: flake8
Expand Down
132 changes: 132 additions & 0 deletions account_commission/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
===================
Account 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/account_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-account_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 adds the function to calculate commissions in invoices (account moves).

This module depends on the commission module.

**Table of contents**

.. contents::
:local:

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

For selecting invoice status in commissions:

#. Edit or create a new record to select the invoice status for settling the commissions.

* **Invoice Based**: Commissions are settled when the invoice is issued.
* **Payment Based**: Commissions are settled when the invoice is paid.

Usage
=====

For adding commissions on invoices:

#. Go to *Invoicing > Customers > Invoices*.
#. Edit or create a new record.
#. When you have selected a partner, each new invoice line you add will have
the agents and commissions set at customer level.
#. 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.
#. If you have configured your system for editing lines in a popup window,
agents will appear also in this window.
#. The agents icon will be in this ocassion visible when the line hasn't been
settled.
#. You have a button "Regenerate agents" on the bottom of the page
"Invoice 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
invoice 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 smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/commission/issues/new?body=module:%20account_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
~~~~~~~~~~~~

* Pexego.
* Davide Corio <[email protected]>
* Joao Alfredo Gama Batista <[email protected]>
* Sandy Carter <[email protected]>
* Giorgio Borelli <[email protected]>
* Daniel Campos <[email protected]>
* Oihane Crucelaegui <[email protected]>
* Nicola Malcontenti <[email protected]>
* Aitor Bouzas <[email protected]>

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

* Pedro M. Baeza
* Manuel Calero

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

* Aung Ko Ko Lin
* Yoshi Tashiro

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/15.0/account_commission>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions account_commission/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from . import models
from . import wizards
from . import report
26 changes: 26 additions & 0 deletions account_commission/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2014-2020 Tecnativa - Pedro M. Baeza
# Copyright 2020 Tecnativa - Manuel Calero
{
"name": "Account commissions",
"version": "15.0.1.0.0",
"author": "Tecnativa," "Odoo Community Association (OCA)",
"category": "Sales Management",
"license": "AGPL-3",
"depends": [
"account",
"commission",
],
"website": "https://github.com/OCA/commission",
"maintainers": ["pedrobaeza"],
"data": [
"security/ir.model.access.csv",
"security/account_commission_security.xml",
"views/account_move_views.xml",
"views/account_commission_settlement_view.xml",
"views/commission_views.xml",
"views/report_settlement_templates.xml",
"views/res_partner.xml",
"report/commission_analysis_view.xml",
],
"installable": True,
}
4 changes: 4 additions & 0 deletions account_commission/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from . import account_move
from . import commission
from . import settlement
from . import res_partner
Loading