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

[FIX] mrp: cancelling and validating impact on planning


The commit 0679d0d5 introduced a new
planning mechanism for the workorder. Two issues have been instroduced
since this patch.
  1. Cancelling a workorder didn't free the time slot in the workcenter
    calendar
  2. Validation a workorder sooner than the planned date didn't update
    the workcenter calendar to plan another production sooner.

This commit update the date_planned_start and date_planned_finished
at cancellation and validation to impact the workcenters calendar.
To keep the original planning dates, they are now tracked

This commit also fix the button_start() method that always rewrited the
date_start even if the production had already been started.

Task : 2082442

closes odoo/odoo#38947

X-original-commit: 4ca6c773
Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
parent 32caafd5
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