Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] mrp: rework of workorder planning
This commit redo the way workorders are planned on their workcenter calendar. The resource_calendar_leaves introduced in 0679d0d is now linked to the effetives dates (date_start and date_finished). The planned dates copy their information onto effective date at the workorder plannification or any modification before the actual production (state = draft, pending or ready) This way, the gantt view and calendar view display either the plannifaction slot if the production isn't started yet and the effective production time if it's done. The plannification is also impacted by validating a production sooner than expected or cancelling it. In the first case, the date_finished is set at 'now' and in the second case, all the dates are emptied. The futur workorders will be planned on the newly recover time slot. This commit also fix the button_start() method that always rewrite the date_start even if the production had already been started. Task : 2082442 closes #34038 Signed-off-by: Arnold Moyaux <amoyaux@users.noreply.github.com>
- Loading branch information