-
- Downloads
[FIX] mrp_subcontracting: fix flow with only tracked finished product
Step to reproduce:
- Create a subcontracting BoM by partner A,
for a tracked product B (by serial or lots)
- Create a incoming transfer coming from A and mark as todo.
- Fill the move with move lines with lot + quantity.
- It is impossible to validate the transfer, "You need to supply lot..."
Also at the creation of the picking a warning popover indicate that
the previous operation (the hidden MO) is set after the transfer.
These issues comes from the refactor of mrp for v14 and the part of
subcontracting wasn't complete obviously.
Fixes done:
- Rewrite the code of the `_action_done` for subcontracting. It is for
the case of tracked finished product without any tracked component,
there wasn't any code to manage that. Now manage it by backorder MO
feature. Fix the main bug
- Set finished_date_planned before the transfer to avoid the alert
popover.
- Avoid to write activity in channel about the hidden MO in case of
cancelling.
- Fix `action_record_components` to manage multiple subcontracting
products with tracked component.
- Remove the `priority` field from the wizard MO (in case of tracked
product. Also the wizard is not really a wizard, just a weird hybrid
MO form)
PR: odoo/odoo#61606
task-2357115
Signed-off-by:
Arnold Moyaux <amoyaux@users.noreply.github.com>
Showing
- addons/mrp_subcontracting/models/mrp_production.py 5 additions, 0 deletionsaddons/mrp_subcontracting/models/mrp_production.py
- addons/mrp_subcontracting/models/stock_move.py 15 additions, 8 deletionsaddons/mrp_subcontracting/models/stock_move.py
- addons/mrp_subcontracting/models/stock_picking.py 49 additions, 37 deletionsaddons/mrp_subcontracting/models/stock_picking.py
- addons/mrp_subcontracting/tests/test_subcontracting.py 54 additions, 4 deletionsaddons/mrp_subcontracting/tests/test_subcontracting.py
- addons/mrp_subcontracting/views/mrp_production_views.xml 3 additions, 0 deletionsaddons/mrp_subcontracting/views/mrp_production_views.xml
Loading
Please register or sign in to comment