summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorRémy Voet (ryv) <ryv@odoo.com>2020-01-13 09:56:57 +0000
committerRémy Voet (ryv) <ryv@odoo.com>2020-01-22 12:31:40 +0000
commit0f679c66ba304f01b54b453ea0b0cedbeca923d6 (patch)
tree0b1c2deea64d43f68665b789f7db35a0c823c7ad /addons/web/static/src/js/views/basic/basic_controller.js
parentcbab786eb2e153eb7eefbd994cb261fa96e56800 (diff)
[IMP] mrp: change workorder plan behavior
- Before, the auto-planning of workorder autorize overlaps between then. E.g. if a workorder (WO1) begin at Now + 30min with a duration of 60 minutes and we try to plan a new workorder (WO2) Now, this one will be plan now until Now + 120 min (30 min of WO2 + 60 min of WO1 + 30 min of WO2). In our case we don't want this behavior by default, because in real case, it is not efficient to work on job A during 30 min, after change to pass to a other job B, and rework on A after the job B. But in a other hand, we need to accept overlaps with no-working hours intervals. Then, rewritte the _plan_workorders method to take these features in account. Also small fix about the planning has been done: - Due to the strong link of date_planned(_...) between the MO and WO, the replan of the late first WO was wrong. If the MO is planned before now, then don't take in account date_planned_start and try to plan WO as soon as possible. - Also, fix error handling when the WO is planned before the previous one. task-2169447
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions