changeset 1bcaac6781b8 in modules/account_stock_shipment_cost_weight:default
details: 
https://hg.tryton.org/modules/account_stock_shipment_cost_weight?cmd=changeset&node=1bcaac6781b8
description:
        Set cost currency on shipment in test scenario

        issue11617
diffstat:

 tests/scenario_account_stock_shipment_cost_weight.rst |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 43a97a30bdf0 -r 1bcaac6781b8 
tests/scenario_account_stock_shipment_cost_weight.rst
--- a/tests/scenario_account_stock_shipment_cost_weight.rst     Mon Jul 18 
00:16:26 2022 +0200
+++ b/tests/scenario_account_stock_shipment_cost_weight.rst     Wed Sep 14 
17:49:57 2022 +0200
@@ -100,7 +100,8 @@
     >>> shipment1 = ShipmentOut()
     >>> shipment1.customer = customer
     >>> shipment1.cost_edit = True
-    >>> shipment1.cost = Decimal('4.00')
+    >>> shipment1.cost_used = Decimal('4.00')
+    >>> shipment1.cost_currency_used = company.currency
     >>> move = shipment1.outgoing_moves.new()
     >>> move.product = product
     >>> move.quantity = 15

Reply via email to