[IMP] mrp: alternative workcenters
Purpose: link workcenters that can do the same job together. Planning a workorder will be done by choosing, among the similar workcenters, the one that will finish the production the soonest. This commit adds a new many2many field on the mrp.workcenter model. Planning the workorders will: 1. Loop on the operation's workcenter and all the alternative ones. 2. Compute the first available work slot for each of those workcenters. 3. Choose the soonest finished slot Furthermore, planning workorder is done thanks to the resource module. Each workorder is saved on its own workcenter calendar by a resource.calendar.leaves The two date fields are thus computed from the leave date. Task : 1892819 closes odoo/odoo#33018 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
This commit is contained in: