Rename Uom to Unit.

This commit is contained in:
Albert Cervera i Areny 2023-09-13 23:54:33 +02:00
parent 95d921185c
commit 00cdfd5a66
3 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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