Add shipment moves (tuple) + Purchase State 'processing
This commit is contained in:
parent
7c724bab46
commit
a70b220be7
|
@ -173,7 +173,7 @@ class Production:
|
|||
for output in production.outputs:
|
||||
move = production._get_incoming_shipment_move(output,
|
||||
from_location, to_location)
|
||||
shipment.moves.append(move)
|
||||
shipment.moves += (move,)
|
||||
shipment.save()
|
||||
ShipmentInternal.wait([shipment])
|
||||
production.incoming_shipment = shipment
|
||||
|
|
|
@ -315,7 +315,7 @@ Make a subcontract production::
|
|||
>>> Purchase.process([purchase.id], config.context)
|
||||
>>> purchase.reload()
|
||||
>>> purchase.state
|
||||
u'done'
|
||||
u'processing'
|
||||
>>> production.reload()
|
||||
>>> production.incoming_shipment.id
|
||||
1
|
||||
|
|
Loading…
Reference in New Issue