Skip to content
Snippets Groups Projects
Commit 79efbd0e authored by Tiffany Chang (tic)'s avatar Tiffany Chang (tic)
Browse files

[FIX] mrp: correctly copy non-backordered MO


Steps to reproduce:
Step 1: make a MO and create less than the quantity to produce
Step 2: Mark As Done (with no backorder)
Step 3: duplicate the MO and try to change the quantity to produce

Expected result: qty to produce changes as expected
Actual result: server error

Issue is due to the copied MO's `move_finished_ids` including a copy
of the cancelled finished move (i.e. the qty not backordered) so there
were 2 `move_finished_ids` for the product to produce. This resulted in
an access error since the onchange to update the `move_finished_ids`
only expects 1 move for the product to produce and results in a
singleton error.

Issue 2 of Task: 2618962

closes odoo/odoo#74864

Signed-off-by: default avatarArnold Moyaux <amoyaux@users.noreply.github.com>
parent b131920f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment