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] account_commission: Migration to 18.0 #582

Open
wants to merge 81 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
81 commits
Select commit Hold shift + click to select a range
81f3325
[MIG] sale_commission: Migration to 15.0
AungKoKoLin1997 Sep 19, 2022
31ed374
[REF] *commission*: Abstract even more the base module
pedrobaeza Nov 19, 2022
09f06ca
[IMP] commission*: Add settlement_type to commissions
pedrobaeza Dec 1, 2022
7bb660e
[UPD] Update account_commission.pot
Dec 5, 2022
347436a
[UPD] README.rst
OCA-git-bot Dec 5, 2022
6f41002
account_commission 15.0.2.0.0
OCA-git-bot Dec 5, 2022
1ad707a
[FIX] account_commission
kanda999 Dec 6, 2022
abcd045
account_commission 15.0.2.0.1
OCA-git-bot Dec 6, 2022
46be1c1
[IMP] account_commission: Add link invoice > settlement
AungKoKoLin1997 Dec 7, 2022
abf76f1
[UPD] Update account_commission.pot
Dec 9, 2022
a2f522d
account_commission 15.0.2.1.0
OCA-git-bot Dec 9, 2022
c718754
Added translation using Weblate (Japanese)
Ryoko04 Dec 19, 2022
b0a1843
Translated using Weblate (Japanese)
yostashiro Dec 19, 2022
2a1f729
Translated using Weblate (Japanese)
Ryoko04 Dec 20, 2022
dfe7094
[MIG] account_commission: Migration to 16.0
hildickethan Dec 26, 2022
3494af2
[UPD] Update account_commission.pot
Dec 30, 2022
82a9e4b
[UPD] README.rst
OCA-git-bot Dec 30, 2022
f6f3cc9
Update translation files
weblate Dec 30, 2022
8a6e0d9
Added translation using Weblate (Croatian)
badbole Jan 4, 2023
cbb8880
[IMP] account_commission: Extract lines to settle domain
hildickethan Jan 10, 2023
292c33e
account_commission 16.0.1.1.0
OCA-git-bot Mar 3, 2023
02057eb
[FIX] account_commission: Regenerate agents button invisibility
jguenat Apr 11, 2023
e87e2e8
[FIX] account_commission: button cancel and period string
jguenat Apr 17, 2023
2738cc9
[FIX] account_commission: revert settlement in invoiced state to sett…
jguenat Apr 17, 2023
6c566c4
[IMP] account_commission: Use line's commission_free in depends
hildickethan Apr 26, 2023
84323dc
account_commission 16.0.1.1.1
OCA-git-bot May 2, 2023
a43dfad
Added translation using Weblate (Portuguese (Brazil))
adrianojprado Jun 12, 2023
32616b3
Translated using Weblate (Portuguese (Brazil))
adrianojprado Jun 12, 2023
f2d8f18
[IMP] account_commission: improve report
jguenat Jun 12, 2023
937be37
Added translation using Weblate (Spanish)
Ivorra78 Jul 31, 2023
1c722cd
Translated using Weblate (Spanish)
Ivorra78 Jul 31, 2023
6268dcc
[UPD] Update account_commission.pot
Aug 18, 2023
5ff496f
account_commission 16.0.1.2.0
OCA-git-bot Aug 18, 2023
f48ea7a
Update translation files
weblate Aug 18, 2023
6ab1e94
account_commission 16.0.1.3.0
OCA-git-bot Aug 20, 2023
0db3aed
[UPD] Update account_commission.pot
Aug 20, 2023
4547d68
account_commission 16.0.1.4.0
OCA-git-bot Aug 20, 2023
2e1c341
account_commission 16.0.1.4.1
OCA-git-bot Aug 20, 2023
2080759
[UPD] README.rst
OCA-git-bot Sep 3, 2023
2b17223
Translated using Weblate (Spanish)
Ivorra78 Aug 21, 2023
177b076
Update translation files
weblate Sep 2, 2023
3d7b69c
Translated using Weblate (Spanish)
Ivorra78 Sep 4, 2023
2d0cc88
[FIX] account_commission: No skip reversed invoices in settlements
omar7r Oct 13, 2023
5e4350c
[BOT] post-merge updates
OCA-git-bot Oct 13, 2023
43f0000
Added translation using Weblate (Italian)
dcorio Oct 24, 2023
c750f13
Translated using Weblate (Italian)
dcorio Oct 24, 2023
82e2ffa
Translated using Weblate (Italian)
dcorio Oct 24, 2023
4d967d9
Translated using Weblate (Italian)
mymage Oct 29, 2023
802979e
Translated using Weblate (Portuguese (Brazil))
adrianojprado Oct 30, 2023
6339de3
Added translation using Weblate (Portuguese)
pedrocs-exo Nov 15, 2023
6ce3b57
Translated using Weblate (Portuguese)
pedrocs-exo Nov 15, 2023
c0deb92
Translated using Weblate (Italian)
mymage Nov 17, 2023
1ceeb6c
[IMP] account_commission: multi-currency support
alexeirivera87 Mar 14, 2023
601e0fd
[FIXUP] improvements based on review
jguenat Aug 22, 2023
9725b28
[BOT] post-merge updates
OCA-git-bot Nov 24, 2023
0fe642c
[FIX] account_commission: mandatory fields cannot be set to False.
Nov 28, 2023
8165b94
[BOT] post-merge updates
OCA-git-bot Nov 28, 2023
f7dd098
Translated using Weblate (Italian)
francesco-ooops Dec 14, 2023
d12ac96
[IMP] account_commission: Clarify selection fields
renda-dev Dec 18, 2023
100ee6e
[UPD] Update account_commission.pot
Dec 18, 2023
f8fcca5
[BOT] post-merge updates
OCA-git-bot Dec 18, 2023
7e2b5d4
Update translation files
weblate Dec 18, 2023
52229ab
Translated using Weblate (Spanish)
Ivorra78 Dec 18, 2023
6d049dc
[IMP] account_commission: Improve settlement report
pedrobaeza Jan 4, 2024
0a8a028
[BOT] post-merge updates
OCA-git-bot Jan 8, 2024
d432c88
Update translation files
weblate Jan 8, 2024
9278842
[IMP] account_commission: pre-commit auto fixes
ambientWave Jan 19, 2024
fd1e364
[MIG] account_commission: Migration to 17.0
ambientWave Jan 19, 2024
c3a9c38
[UPD] Update account_commission.pot
May 16, 2024
b8faa89
[BOT] post-merge updates
OCA-git-bot May 16, 2024
78dd15e
Update translation files
weblate May 17, 2024
f13a245
Translated using Weblate (Italian)
mymage May 17, 2024
47bb690
Translated using Weblate (Portuguese (Brazil))
May 17, 2024
488ba8a
Translated using Weblate (Portuguese)
pedrocs-exo Jun 12, 2024
0a7571c
Translated using Weblate (Portuguese)
pedrocs-exo Jun 12, 2024
47f8756
Added translation using Weblate (Turkish)
metingulsoy Aug 26, 2024
94c110d
Translated using Weblate (Turkish)
metingulsoy Aug 26, 2024
ee04314
Translated using Weblate (Turkish)
metingulsoy Aug 26, 2024
b46871b
[IMP] account_commission: pre-commit auto fixes
Borruso Dec 6, 2024
1b9a9c7
[MIG] account_commission: Migration to 18.0
Borruso Dec 6, 2024
ad8be0b
[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
173 changes: 173 additions & 0 deletions account_commission/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
===================
Account commissions
===================

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

.. |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/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-18-0/commission-18-0-account_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 invoices
(account moves).

It also allows to create vendor bills from settlements for external
agents.

This module depends on the commission module.

**Table of contents**

.. contents::
:local:

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

For selecting invoice status in commissions:

1. 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:

1. Go to *Invoicing > Customers > Invoices*.
2. Edit or create a new record.
3. When you have selected a partner, each new invoice 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. The agents icon will be in this ocassion visible when the line hasn't
been settled.
7. 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.

For invoicing the settlements (only for external agents):

1. Go to *Invoicing > Commissions > Create Commission Invoices*.
2. On the window that appears, you can select following data:

- Product. It should be a service product for being coherent.
- Journal: To be selected between existing purchase journals.
- Date: If you want to choose a specific invoice date. You can leave
it blank if you prefer.
- Settlements: For selecting specific settlements to invoice. You
can leave it blank as well for invoicing all the pending
settlements.

If you want to invoice a/some specific settlement/s:

1. Navigate to *Invoicing > Commissions > Invoices Settlements*.
2. Select it/them on the list.
3. Click on *Action > Create Commission Invoices*.
4. You can as well enter in one settlement, and click on the "Make
invoice" button.

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:%20account_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 <[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]>
- Alexei Rivera <[email protected]>
- Mina Samir <[email protected]>
- `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

- `Sygel <https://www.sygel.es>`__:

- Alberto Martínez

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/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
28 changes: 28 additions & 0 deletions account_commission/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2020 Tecnativa - Manuel Calero
# Copyright 2022 Quartile
# Copyright 2014-2022 Tecnativa - Pedro M. Baeza
{
"name": "Account commissions",
"version": "18.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/account_commission_security.xml",
"security/ir.model.access.csv",
"data/menuitem_data.xml",
"views/account_move_views.xml",
"views/commission_settlement_views.xml",
"views/commission_views.xml",
"views/report_settlement_templates.xml",
"report/commission_analysis_view.xml",
"wizards/wizard_invoice.xml",
],
"installable": True,
}
11 changes: 11 additions & 0 deletions account_commission/data/menuitem_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="menu_invoicing_commission" model="ir.ui.menu">
<field name="name">Commissions</field>
<field name="sequence" eval="10" />
<field
name="parent_id"
search="[('child_id', 'in', ref('account.menu_finance_receivables'))]"
/>
</record>
</odoo>
Loading
Loading