changeset 222a169cbc18 in modules/purchase_shipment_cost:default
details: 
https://hg.tryton.org/modules/purchase_shipment_cost?cmd=changeset;node=222a169cbc18
description:
        Don't set default unit price on stock move

        issue8119
        review255251002
diffstat:

 tests/scenario_purchase_shipment_cost.rst                    |  4 ++--
 tests/scenario_purchase_shipment_cost_with_account_stock.rst |  7 +++----
 2 files changed, 5 insertions(+), 6 deletions(-)

diffs (51 lines):

diff -r a7de83b43e4b -r 222a169cbc18 tests/scenario_purchase_shipment_cost.rst
--- a/tests/scenario_purchase_shipment_cost.rst Sun Apr 07 19:50:04 2019 +0200
+++ b/tests/scenario_purchase_shipment_cost.rst Tue Apr 23 09:10:22 2019 +0200
@@ -80,8 +80,7 @@
     >>> move.to_location = shipment.warehouse.input_location
     >>> move.product = product
     >>> move.quantity = 50
-    >>> move.unit_price
-    Decimal('8')
+    >>> move.unit_price = Decimal('8')
     >>> shipment.carrier = carrier
     >>> shipment.cost
     Decimal('3')
@@ -105,6 +104,7 @@
     ...     move.to_location = shipment.warehouse.input_location
     ...     move.product = product
     ...     move.quantity = quantity
+    ...     move.unit_price = Decimal('8')
     >>> shipment.carrier = carrier
     >>> shipment.cost
     Decimal('3')
diff -r a7de83b43e4b -r 222a169cbc18 
tests/scenario_purchase_shipment_cost_with_account_stock.rst
--- a/tests/scenario_purchase_shipment_cost_with_account_stock.rst      Sun Apr 
07 19:50:04 2019 +0200
+++ b/tests/scenario_purchase_shipment_cost_with_account_stock.rst      Tue Apr 
23 09:10:22 2019 +0200
@@ -131,16 +131,14 @@
     >>> move.to_location = shipment.warehouse.input_location
     >>> move.product = product
     >>> move.quantity = 30
-    >>> move.unit_price
-    Decimal('8')
+    >>> move.unit_price = Decimal('8')
     >>> move = Move()
     >>> shipment.incoming_moves.append(move)
     >>> move.from_location = supplier_location
     >>> move.to_location = shipment.warehouse.input_location
     >>> move.product = product_average
     >>> move.quantity = 20
-    >>> move.unit_price
-    Decimal('8')
+    >>> move.unit_price = Decimal('8')
     >>> shipment.carrier = carrier
     >>> shipment.cost
     Decimal('3')
@@ -178,6 +176,7 @@
     ...     move.to_location = shipment.warehouse.input_location
     ...     move.product = product
     ...     move.quantity = quantity
+    ...     move.unit_price = Decimal('8')
     >>> shipment.carrier = carrier
     >>> shipment.cost
     Decimal('3')

Reply via email to