changeset 237134aa7ad7 in modules/purchase_shipment_cost:default details: https://hg.tryton.org/modules/purchase_shipment_cost?cmd=changeset&node=237134aa7ad7 description: Remove default currency on stock move
issue11512 review433171003 diffstat: tests/scenario_purchase_shipment_cost.rst | 4 ++++ tests/scenario_purchase_shipment_cost_with_account_stock.rst | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diffs (61 lines): diff -r 656044ad2127 -r 237134aa7ad7 tests/scenario_purchase_shipment_cost.rst --- a/tests/scenario_purchase_shipment_cost.rst Sat Sep 10 17:35:38 2022 +0200 +++ b/tests/scenario_purchase_shipment_cost.rst Thu Sep 29 09:08:06 2022 +0200 @@ -81,6 +81,7 @@ >>> move.product = product >>> move.quantity = 50 >>> move.unit_price = Decimal('8') + >>> move.currency = company.currency >>> shipment.carrier = carrier >>> shipment.cost_used Decimal('3.0000') @@ -105,6 +106,7 @@ ... move.product = product ... move.quantity = quantity ... move.unit_price = Decimal('8') + ... move.currency = company.currency >>> shipment.carrier = carrier >>> shipment.cost_used Decimal('3.0000') @@ -125,12 +127,14 @@ >>> move.product = product >>> move.quantity = 75 >>> move.unit_price = Decimal('0.0') + >>> move.currency = company.currency >>> move = shipment.incoming_moves.new() >>> move.from_location = supplier_location >>> move.to_location = shipment.warehouse.input_location >>> move.product = product >>> move.quantity = 25 >>> move.unit_price = Decimal('0.0') + >>> move.currency = company.currency >>> shipment.carrier = carrier >>> shipment.cost_used Decimal('3.0000') diff -r 656044ad2127 -r 237134aa7ad7 tests/scenario_purchase_shipment_cost_with_account_stock.rst --- a/tests/scenario_purchase_shipment_cost_with_account_stock.rst Sat Sep 10 17:35:38 2022 +0200 +++ b/tests/scenario_purchase_shipment_cost_with_account_stock.rst Thu Sep 29 09:08:06 2022 +0200 @@ -130,6 +130,7 @@ >>> move.product = product >>> move.quantity = 30 >>> move.unit_price = Decimal('8') + >>> move.currency = company.currency >>> move = Move() >>> shipment.incoming_moves.append(move) >>> move.from_location = supplier_location @@ -137,6 +138,7 @@ >>> move.product = product_average >>> move.quantity = 20 >>> move.unit_price = Decimal('8') + >>> move.currency = company.currency >>> shipment.carrier = carrier >>> shipment.cost_used Decimal('3.0000') @@ -175,6 +177,7 @@ ... move.product = product ... move.quantity = quantity ... move.unit_price = Decimal('8') + ... move.currency = company.currency >>> shipment.carrier = carrier >>> shipment.cost_used Decimal('3.0000')