Remove default currency on stock move

issue11512
review433171003
This commit is contained in:
Maxime Richez committed 2022-09-29 09:08:06 +02:00
1 parent 1c93b76bff
commit fe3fe61408
3 files changed
+5

No files matched your search

@@ -114,6 +114,7 @@ Transfer 1 product between warehouses::
>>> move.product = product
>>> move.quantity = 1
>>> move.unit_price = product.cost_price
>>> move.currency = company.currency
>>> shipment.click('wait')
>>> shipment.click('assign_force')
@@ -90,6 +90,7 @@ Make 2 unit of product available @ 80 in both warehouses::
... move.from_location = supplier_loc
... move.to_location = warehouse.storage_location
... move.unit_price = Decimal('80')
... move.currency = company.currency
... moves.append(move)
>>> StockMove.click(moves, 'do')
@@ -93,6 +93,7 @@ Make 1 unit of product available @ 80 in both warehouses::
... move.from_location = supplier_loc
... move.to_location = warehouse.storage_location
... move.unit_price = Decimal('80')
... move.currency = company.currency
... moves.append(move)
>>> StockMove.click(moves, 'do')
@@ -140,6 +141,7 @@ Forbid direct move between warehouses::
>>> move.from_location = warehouse1.storage_location
>>> move.to_location = warehouse2.storage_location
>>> move.unit_price = product.cost_price
>>> move.currency = company.currency
>>> move.save()
>>> move.click('do') # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
@@ -163,6 +165,7 @@ Transfer 1 product between warehouses::
>>> move.product = product
>>> move.quantity = 1
>>> move.unit_price = product.cost_price
>>> move.currency = company.currency
>>> shipment.click('wait')
>>> shipment.state
'waiting'