Add shipment moves (tuple) + Purchase State 'processing

This commit is contained in:
Raimon Esteve 2016-07-01 16:02:32 +02:00
parent 7c724bab46
commit a70b220be7
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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