summaryrefslogtreecommitdiff
path: root/addons/web/controllers
diff options
context:
space:
mode:
authorAndrea Grazioso (agr-odoo) <agr@odoo.com>2020-12-23 10:01:24 +0000
committerAndrea Grazioso (agr-odoo) <agr@odoo.com>2020-12-23 11:26:54 +0000
commit3c285d5cd931e6f503060c6daa1823507aba7957 (patch)
tree2209615821e2f0a98d6cfa454358162ad130083d /addons/web/controllers
parent13b6550616a3d99643b0b3de3d75f4714fd9d2f2 (diff)
[FIX] mrp: cancel WO from backorder when no quantity to produce.
- Have a finished Product FP (quantity 1) processed in 2 workcenters: A and B - Create manufacturing order for FP1, raise the quantity to produce to 10 - process first workorder with lower quantity (i.e. 5) - process second workorder with even lower quantity (i.e. 4) - Mark MO as completed, creating a backorder - There will be 2 backorders for the original MO. - Process the workorder A of the last MO (record 0 quantity). Now check the work orders report Work orders report is showing incorrect qty for A (i.e. 6 and not 5) The last workorder processed display Quantity 1. This occur because the report display the quantity handled by the workorder (1), not the actual produced quantity (0), but this is a technical limitation of the pivot view. A solution is to cancel the workorder when we detect a quantity to produce equal to 0. This will also avoid users starting by accident the workorder timer when there is no work to do. opw-2411203 closes odoo/odoo#63728 Signed-off-by: agr-odoo <agr-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/web/controllers')
0 files changed, 0 insertions, 0 deletions