From 474d049c9b698758eccf8ecf9f4883f435c8aa6f Mon Sep 17 00:00:00 2001 From: angel Date: Tue, 28 Nov 2023 10:03:30 +0100 Subject: [PATCH 1/2] [FIX] account_commission: mandatory fields cannot be set to False. --- account_commission/models/account_move.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/account_commission/models/account_move.py b/account_commission/models/account_move.py index a93837624..dc9fafc50 100644 --- a/account_commission/models/account_move.py +++ b/account_commission/models/account_move.py @@ -145,16 +145,6 @@ def _compute_any_settled(self): @api.depends("move_id.partner_id") def _compute_agent_ids(self): - for res in self: - settlement_lines = self.env["commission.settlement.line"].search( - [("invoice_line_id", "=", res.id)] - ) - for line in settlement_lines: - line.date = False - line.agent_id = False - line.settled_amount = 0.00 - line.currency_id = False - line.commission_id = False self.agent_ids = False # for resetting previous agents for record in self: if ( From f8a41cc3db415806b6beab4ad8479da50e6ce583 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 28 Nov 2023 09:11:58 +0000 Subject: [PATCH 2/2] [BOT] post-merge updates --- README.md | 2 +- account_commission/README.rst | 2 +- account_commission/__manifest__.py | 2 +- account_commission/static/description/index.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d857121e0..1e30ee900 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Available addons ---------------- addon | version | maintainers | summary --- | --- | --- | --- -[account_commission](account_commission/) | 16.0.2.0.0 | [![pedrobaeza](https://github.com/pedrobaeza.png?size=30px)](https://github.com/pedrobaeza) | Account commissions +[account_commission](account_commission/) | 16.0.2.0.1 | [![pedrobaeza](https://github.com/pedrobaeza.png?size=30px)](https://github.com/pedrobaeza) | Account commissions [commission](commission/) | 16.0.2.0.0 | [![pedrobaeza](https://github.com/pedrobaeza.png?size=30px)](https://github.com/pedrobaeza) | Commissions [commission_formula](commission_formula/) | 16.0.1.0.0 | | Commissions computed by formulas [hr_commission](hr_commission/) | 16.0.1.0.0 | | HR commissions diff --git a/account_commission/README.rst b/account_commission/README.rst index 95cad87b8..1f1efd57c 100644 --- a/account_commission/README.rst +++ b/account_commission/README.rst @@ -7,7 +7,7 @@ Account commissions !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:cdda0c57d44b3a650a1152e3861114259f69ebaf698a33a4c874a7469b062d45 + !! source digest: sha256:592b04f6b2dd3c6155838ead8db480872b356ec1c5cadc3a15957e91ef417d34 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/account_commission/__manifest__.py b/account_commission/__manifest__.py index d5a1002f2..20b70e720 100644 --- a/account_commission/__manifest__.py +++ b/account_commission/__manifest__.py @@ -3,7 +3,7 @@ # Copyright 2014-2022 Tecnativa - Pedro M. Baeza { "name": "Account commissions", - "version": "16.0.2.0.0", + "version": "16.0.2.0.1", "author": "Tecnativa, Odoo Community Association (OCA)", "category": "Sales Management", "license": "AGPL-3", diff --git a/account_commission/static/description/index.html b/account_commission/static/description/index.html index cca21959a..a5ad1cf8e 100644 --- a/account_commission/static/description/index.html +++ b/account_commission/static/description/index.html @@ -367,7 +367,7 @@

Account commissions

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:cdda0c57d44b3a650a1152e3861114259f69ebaf698a33a4c874a7469b062d45 +!! source digest: sha256:592b04f6b2dd3c6155838ead8db480872b356ec1c5cadc3a15957e91ef417d34 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

Beta License: AGPL-3 OCA/commission Translate me on Weblate Try me on Runboat

This module adds the function to calculate commissions in invoices (account moves).