Skip to content
Snippets Groups Projects
Commit 79976600 authored by fw-bot's avatar fw-bot Committed by William Henrotin
Browse files

[FIX] mrp: unit_factor computation


Updating the quantity to produce in a production order will recompute
each raw move's unit factor. The issue was this computation did not
take care of the previously product quantity. The unit factor was wrong
and so the next created workorder lines get the wrong quantity.

Example:
  - 1 components for 1 finished product (unit_factor = 1)
  - Create a production for 2 finished product -> quantity to consume = 2
  - Produce 1 then change quantity to produce to 3 -> quantity to consume = 3
    and quantity done = 1 but unit factor became 1.5

closes odoo/odoo#40932

X-original-commit: 71ea4d4488a085030ae07ca7e85cafc21f06af3b
Signed-off-by: default avatarArnold Moyaux <amoyaux@users.noreply.github.com>
parent 5c15b131
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