-
Notifications
You must be signed in to change notification settings - Fork 23.1k
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
[FIX] sale: Extra downpayment line #164038
[FIX] sale: Extra downpayment line #164038
Conversation
Issue: ====== Extra down-payment line is creating Steps to reproduce the issue: ============================= - create an SO, then create downpayment with 30% percent, remove the tax in generated INV and post the invoice. - go back to SO create another downpayment with 30% Solution: ========= Typically, when calculating the value of down-payment lines, we only consider sales order lines for products, not down-payment lines. This is because, according to the Odoo workflow, down-payment lines are created based on product lines in the sales order, not on down-payment lines themselves. Therefore, I am filtering out those lines here. closes odoo#163699
Remove |
Done |
Hi @ramaniraj11 👋
Let me know if you need help in any of this. |
Sorry Can you expain what are you try to say in above two point i don't understand |
Yes, no worries : Retargetting :So this PR targets odoo 17.0 at the moment. But this fix should target odoo version saas-16.3 as this is the oldest supported version where this fix is useful. Once the fix is added to the 16.3 version of odoo, it will be forward ported to the more recent odoo versions.
You then can change the target of this PR by clicking "Edit" and changing the "commit into" value TestWhen fixing a bug we often add a test covering the use case that is concerned. If it's too much of a hassel, i can merge this PR and backport it to saas-16.3 + add a test myself afterwards. Let me know. |
Hello can you please write test case and back port this code please |
@robodoo r+ |
Issue: ====== Extra down-payment line is creating Steps to reproduce the issue: ============================= - create an SO, then create downpayment with 30% percent, remove the tax in generated INV and post the invoice. - go back to SO create another downpayment with 30% Solution: ========= Typically, when calculating the value of down-payment lines, we only consider sales order lines for products, not down-payment lines. This is because, according to the Odoo workflow, down-payment lines are created based on product lines in the sales order, not on down-payment lines themselves. Therefore, I am filtering out those lines here. closes odoo#163699 closes odoo#164038 Signed-off-by: de Wouters de Bouchout Jean-Benoît (jbw) <jbw@odoo.com>
Description of the issue/feature this PR addresses:
Current behavior before PR:
Desired behavior after PR is merged:
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr