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]sale_line_refund_to_invoice_qty: Reinvoice credit note false not working anymore #1799

Open
janvi-aktivsoftware opened this issue Sep 13, 2024 · 0 comments
Labels

Comments

@janvi-aktivsoftware
Copy link

The issue is that setting the value of the field "sale_qty_to_reinvoice" to False in a reinvoice credit note is no longer functioning as expected. Despite setting the field to False, the reinvoicing process does not reflect this change in inverse invoices lines.

Module

sale_line_refund_to_invoice_qty

Describe the bug

On creating ("Credit Note"), Identified that the "sale_qty_to_reinvoice" field was not updating on inverse invoices lines.
The problem occurred because the condition (if self.env.context.get("sale_qty_to_reinvoice", False) was bypassing updates when the value False was passed from the "account.move.reversal" wizard.

To Reproduce

Odoo 15.0

Steps to reproduce the behavior:
1.Create the customer invoice and make it paid.
2.Create a Credit Note for this paid invoice due to goods return.
3.Set "sale_qty_to_reinvoice" field is False in ("account.move.reversal") wizard while creating a "Creadit Note" and click on Reverse Button in wizard.
4.Identified that the "sale_qty_to_reinvoice" field was not False on inverse invoices lines

Expected behavior
As per set value in field "sale_qty_to_reinvoice" in ("account.move.reversal") wizard while creating a "Creadit Note", The field "sale_qty_to_reinvoice" value should be set for inverse invoices lines model "account.move.line".

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

No branches or pull requests

1 participant