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

rma: The returned quantity is not correctly computed when a reception is created through RMA #418

Open
sbejaoui opened this issue Aug 22, 2024 · 1 comment · May be fixed by #420
Open
Labels

Comments

@sbejaoui
Copy link
Contributor

sbejaoui commented Aug 22, 2024

When performing multiple partial returns on the same picking, the expected behavior is for the return wizard to count down the already returned quantity (standard odoo).

However, this is not the case when receptions are created through an RMA. After a partial reception, the wizard incorrectly proposes the entire original quantity instead of the remaining quantity.

Module

rma

To Reproduce

Affected versions: 16

Steps to reproduce:

  1. Select a delivery
  2. Perform a partial return
  3. Validate the reception
  4. Go back to the delivery
  5. Open the return wizard

You'll notice that the wizard proposes the whole quantity again, rather than the remaining quantity that hasn't been returned yet.

Expected behavior
The wizard should propose the remaining quantity

Delivery
image
Reception
image
Return wizard after reception
image

cc/ @pedrobaeza , @jbaudoux , @lmignon , @rousseldenis , @phschmidt

@sbejaoui sbejaoui added the bug label Aug 22, 2024
@sbejaoui sbejaoui changed the title The returned quantity is not correctly computed when a reception is created through RMA rma: The returned quantity is not correctly computed when a reception is created through RMA Aug 22, 2024
@pedrobaeza
Copy link
Member

Not sure how these numbers are computed in core, but may be due to using a different procurement group for the return picking. I don't remember right now the reasons for using a separated procurement group (I think in that times - 12.0 - the group was used for some computations on the sales order, affecting the results).

sbejaoui added a commit to acsone/rma that referenced this issue Aug 28, 2024
sbejaoui added a commit to acsone/rma that referenced this issue Aug 28, 2024
sbejaoui added a commit to acsone/rma that referenced this issue Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants