changeset 0bac64a3e830 in modules/stock_quantity_early_planning:default
details: 
https://hg.tryton.org/modules/stock_quantity_early_planning?cmd=changeset&node=0bac64a3e830
description:
        Remove default currency on stock move

        issue11512
        review433171003
diffstat:

 tests/scenario_stock_quantity_early_planning.rst          |  5 +++++
 tests/scenario_stock_quantity_early_planning_incoming.rst |  2 ++
 2 files changed, 7 insertions(+), 0 deletions(-)

diffs (61 lines):

diff -r 0f7720c28f93 -r 0bac64a3e830 
tests/scenario_stock_quantity_early_planning.rst
--- a/tests/scenario_stock_quantity_early_planning.rst  Mon May 02 17:16:28 
2022 +0200
+++ b/tests/scenario_stock_quantity_early_planning.rst  Thu Sep 29 09:08:06 
2022 +0200
@@ -74,6 +74,7 @@
     ...     move.from_location = supplier_loc
     ...     move.to_location = input_loc
     ...     move.unit_price = product.cost_price
+    ...     move.currency = company.currency
     ...     move.planned_date = date
     ...     move.save()
 
@@ -94,12 +95,14 @@
     >>> move.from_location = output_loc
     >>> move.to_location = customer_loc
     >>> move.unit_price = product1.list_price
+    >>> move.currency = company.currency
     >>> move = shipment_out1.outgoing_moves.new()
     >>> move.product = product2
     >>> move.quantity = 6
     >>> move.from_location = output_loc
     >>> move.to_location = customer_loc
     >>> move.unit_price = product2.list_price
+    >>> move.currency = company.currency
     >>> shipment_out1.save()
 
     >>> shipment_out2 = ShipmentOut()
@@ -111,6 +114,7 @@
     >>> move.from_location = output_loc
     >>> move.to_location = customer_loc
     >>> move.unit_price = product1.list_price
+    >>> move.currency = company.currency
     >>> shipment_out2.save()
 
     >>> shipment_out3 = ShipmentOut()
@@ -122,6 +126,7 @@
     >>> move.from_location = output_loc
     >>> move.to_location = customer_loc
     >>> move.unit_price = product1.list_price
+    >>> move.currency = company.currency
     >>> shipment_out3.save()
 
     >>> ShipmentOut.click([shipment_out1, shipment_out2, shipment_out3], 
'wait')
diff -r 0f7720c28f93 -r 0bac64a3e830 
tests/scenario_stock_quantity_early_planning_incoming.rst
--- a/tests/scenario_stock_quantity_early_planning_incoming.rst Mon May 02 
17:16:28 2022 +0200
+++ b/tests/scenario_stock_quantity_early_planning_incoming.rst Thu Sep 29 
09:08:06 2022 +0200
@@ -76,6 +76,7 @@
     ...     move.from_location = supplier_loc
     ...     move.to_location = warehouse2.input_location
     ...     move.unit_price = product.cost_price
+    ...     move.currency = company.currency
     ...     move.planned_date = date
     ...     move.save()
 
@@ -121,6 +122,7 @@
     >>> move.from_location = warehouse.output_location
     >>> move.to_location = customer_loc
     >>> move.unit_price = product.list_price
+    >>> move.currency = company.currency
     >>> shipment_out.save()
     >>> shipment_out.click('wait')
 

Reply via email to