Skip to content
Snippets Groups Projects
Commit cfbeed76 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#40990

X-original-commit: 79976600
Signed-off-by: default avatarWilliam Henrotin <Whenrow@users.noreply.github.com>
parent 0b8eb71d
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