Skip to content
Snippets Groups Projects
Commit c89c563b authored by yhu-odoo's avatar yhu-odoo Committed by Adrien Widart (awt)
Browse files

[IMP] mrp: make mo under consumption consistent with picking

Considering the MO under consumption situation:
  component A, to consume = 2, consumed = 1
Previous, after "mark as done", the MO will have two lines:
  component A, to consume = 1, consumed = 1, state done
  component A, to consume = 0, consumed = 0, state done
Now, after "mark as done", it will be consistent with picking:
  component A, to consume = 1, consumed = 1, state "done"
  component A, to consume = 1, consumed = 0, state "concel"

Task 2446915
PR #66583
ENT PR odoo/enterprise#16554

NOTE: this commit has been backported from [1] and, at that time, the
modified part of the test `test_basic` didn't exist. Then, the part of
the test has been added with the assert value equal to '2' and has been
modified during the FW (see [2]) so it matches with the new behaviour
introduced by [1]
Same with [3]

[1] 729db008
[2] odoo/odoo#75001
[3] odoo/odoo#75443

Part-of: odoo/odoo#110990
parent 7d1ccd77
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment