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

[16.0][MIG] sale_commission_partial_settlement: Migration to 16.0 #561

Open
wants to merge 12 commits into
base: 16.0
Choose a base branch
from

Conversation

dalonsofl
Copy link

@dalonsofl dalonsofl commented Sep 11, 2024

Migration from version 14.0 to 16.0

matteonext and others added 11 commits September 11, 2024 15:26
Currently translated at 11.5% (3 of 26 strings)

Translation: commission-14.0/commission-14.0-sale_commission_partial_settlement
Translate-URL: https://translation.odoo-community.org/projects/commission-14-0/commission-14-0-sale_commission_partial_settlement/es/
Currently translated at 100.0% (26 of 26 strings)

Translation: commission-14.0/commission-14.0-sale_commission_partial_settlement
Translate-URL: https://translation.odoo-community.org/projects/commission-14-0/commission-14-0-sale_commission_partial_settlement/es/
Currently translated at 100.0% (26 of 26 strings)

Translation: commission-14.0/commission-14.0-sale_commission_partial_settlement
Translate-URL: https://translation.odoo-community.org/projects/commission-14-0/commission-14-0-sale_commission_partial_settlement/it/
If the invoice line agent does not have any settlement
@dalonsofl dalonsofl changed the title 16.0 mig sale commission partial settlement [16.0][MIG] sale commission partial settlement: Migration to 16.0 Sep 11, 2024
@dalonsofl dalonsofl force-pushed the 16.0-mig-sale_commission_partial_settlement branch 3 times, most recently from e8b953b to ab8191b Compare September 13, 2024 07:38
@dalonsofl dalonsofl force-pushed the 16.0-mig-sale_commission_partial_settlement branch from ab8191b to 3ae3861 Compare September 13, 2024 07:58
@dalonsofl dalonsofl mentioned this pull request Sep 13, 2024
11 tasks
@dalonsofl dalonsofl changed the title [16.0][MIG] sale commission partial settlement: Migration to 16.0 [16.0][MIG] sale_commission_partial_settlement: Migration to 16.0 Sep 13, 2024
Copy link

@odooNextev odooNextev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functional ok

Copy link

@amarcosg amarcosg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code review LGTM!

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Copy link

@Daniel-Melian Daniel-Melian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have functionally reviewed the addon and identified an unexpected behavior regarding commission recalculation.

When using the "Full Amount" payment amount type, if a commission is already generated and subsequently deleted, re-triggering the settlement generates the commission again as expected.
However, with the "Paid Amount" type, the process differs: you need to first break the reconciliation between the payments and the invoice, then re-reconcile them to allow the commission to be generated once more.
This inconsistency between the "Full Amount" and "Paid Amount" processes may lead to unexpected results and could cause workflow disruptions.

Steps to Reproduce:

Use the "Full Amount" type to generate a commission, delete it, and observe the behavior on re-triggering the settlement.
Use the "Paid Amount" type, generate a commission, delete it, and note that reconciliation must be broken and re-established before the commission can be regenerated.

@francesco-ooops
Copy link
Contributor

@Daniel-Melian we've identified the same issue in these days, we're working on a fix that you can then fw-port to 16

Copy link
Contributor

@francesco-ooops francesco-ooops left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please include this fix: #575

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants