changeset 24b2dca7b398 in modules/production:default
details:
https://hg.tryton.org/modules/production?cmd=changeset&node=24b2dca7b398
description:
Fill currency on move in tests
issue11749
diffstat:
tests/scenario_production_set_cost.rst | 1 +
tests/scenario_production_waste.rst | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diffs (22 lines):
diff -r 61a10108cce5 -r 24b2dca7b398 tests/scenario_production_set_cost.rst
--- a/tests/scenario_production_set_cost.rst Wed Sep 14 19:27:28 2022 +0200
+++ b/tests/scenario_production_set_cost.rst Fri Sep 30 22:41:34 2022 +0200
@@ -71,6 +71,7 @@
>>> output.product = component
>>> output.quantity = 2
>>> output.unit_price = Decimal(0)
+ >>> output.currency = company.currency
>>> output.from_location = production.location
>>> output.to_location = production.warehouse.storage_location
>>> production.click('done')
diff -r 61a10108cce5 -r 24b2dca7b398 tests/scenario_production_waste.rst
--- a/tests/scenario_production_waste.rst Wed Sep 14 19:27:28 2022 +0200
+++ b/tests/scenario_production_waste.rst Fri Sep 30 22:41:34 2022 +0200
@@ -75,6 +75,7 @@
>>> output.from_location = production.location
>>> output.to_location = warehouse_loc.storage_location
>>> output.unit_price = Decimal('0')
+ >>> output.currency = company.currency
>>> waste_output = production.outputs.new()
>>> waste_output.quantity = 1.0
>>> waste_output.product = product