Commit Graph
5 Commits
Author SHA1 Message Date
Pierre Masereel c9f899b99a [FIX] mrp: Traceability show MO final product reference
When a final product move line is shown in the traceability report is
displayed, the reference to the MO is not displayed because the finish
products move lines don't have any productio_id on it.

So to fix this we take the production_id of the move_id when it's a
finished product, and the raw_material_production_id of the move_id when
it's a consumed product that are always set.

TASK-ID: 1873101
2018-08-21 22:25:26 +02:00
Haresh Shyara 68061e2517 [IMP] stock, mrp, repair: optimization traceability report based on stock move lines
- Optimized _lines() to fold/unfold mechanism and use stock move line in get lines.
- Merged into single method (make_dict_move and make_dict_head) to get parent & child traceability result
  and use unfolfable to make line unfoldable.
- Removed _get_produced_or_consumed_vals method and move mechanisam into _line method will do same for this.
- Make some methods private.
- Removed useless vals from dict.
2018-01-31 14:15:00 +01:00
Haresh Shyara 387c441f7c [IMP] stock, mrp, repair: get linked consumed or produced lines for this operation
- When unfold down MO, Repair Order, Unbuild Order to display produced or consumed materials even product is trackable or not.
- Normal products(not trackable) are directly displayed with source and destination not foldable.
- Unfoldable line has no caret icon to unfold, so move it to margin-left 15px to make parellel.
- Invisible source and destination location on head lines if product trackable.
2018-01-31 14:14:59 +01:00
Pierre Masereel 783f5f54da [FIX] mrp, stock: adapt traceability for mrp unbuild 2017-08-09 13:31:23 +02:00
Pierre Masereel 7a9dd47ae5 [REF] stock, mrp, mrp_repair: implement mrp and mrp_repair traceability
The traceability report didn't take yet in consideration the consumed
and produced lines generated by manufacturing orders and repair orders.
2017-08-04 15:06:19 +02:00