Rename Uom to Unit.
This commit is contained in:
parent
95d921185c
commit
00cdfd5a66
|
@ -160,7 +160,7 @@ Add three shipment lines of product 1::
|
|||
>>> StockMove = Model.get('stock.move')
|
||||
>>> move = shipment_in.incoming_moves.new()
|
||||
>>> move.product = product
|
||||
>>> move.uom = unit
|
||||
>>> move.unit = unit
|
||||
>>> move.quantity = 1
|
||||
>>> move.from_location = supplier_loc
|
||||
>>> move.to_location = input_loc
|
||||
|
@ -195,7 +195,7 @@ Add three shipment lines of product 1::
|
|||
>>> StockMove = Model.get('stock.move')
|
||||
>>> move = shipment_out.outgoing_moves.new()
|
||||
>>> move.product = product
|
||||
>>> move.uom = unit
|
||||
>>> move.unit = unit
|
||||
>>> move.quantity = 1
|
||||
>>> move.from_location = supplier_loc
|
||||
>>> move.to_location = input_loc
|
||||
|
|
|
@ -161,7 +161,7 @@ Add three shipment lines of product 1::
|
|||
>>> lot.save()
|
||||
>>> move = shipment_in.incoming_moves.new()
|
||||
>>> move.product = product
|
||||
>>> move.uom = unit
|
||||
>>> move.unit = unit
|
||||
>>> move.quantity = 1
|
||||
>>> move.lot = lot
|
||||
>>> move.from_location = supplier_loc
|
||||
|
@ -201,7 +201,7 @@ Add shipment lines of product 1::
|
|||
>>> for move in shipment_out.outgoing_moves:
|
||||
... move.product = product
|
||||
... move.lot = lot
|
||||
... move.uom = unit
|
||||
... move.unit = unit
|
||||
... move.quantity = 1
|
||||
... move.from_location = output_loc
|
||||
... move.to_location = customer_loc
|
||||
|
|
|
@ -163,7 +163,7 @@ Make a production::
|
|||
>>> for move in production.outputs:
|
||||
... move.product = product
|
||||
... move.lot = lot
|
||||
... move.uom = unit
|
||||
... move.unit = unit
|
||||
... move.quantity = 1
|
||||
... move.from_location = production_loc
|
||||
... move.to_location = storage_loc
|
||||
|
|
Loading…
Reference in New Issue