changeset 1e611c15931f in modules/product_cost_history:default
details:
https://hg.tryton.org/modules/product_cost_history?cmd=changeset&node=1e611c15931f
description:
Fill currency on move in tests
issue11749
diffstat:
tests/scenario_product_cost_history.rst | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diffs (35 lines):
diff -r 96445d8e52ad -r 1e611c15931f tests/scenario_product_cost_history.rst
--- a/tests/scenario_product_cost_history.rst Mon May 02 17:00:19 2022 +0200
+++ b/tests/scenario_product_cost_history.rst Fri Sep 30 22:41:34 2022 +0200
@@ -65,6 +65,7 @@
... from_location=supplier_loc,
... to_location=storage_loc,
... unit_price=Decimal('100.0000'),
+ ... currency=company.currency,
... effective_date=today - dt.timedelta(days=2)).click('do')
>>> modify_cost_price = Wizard('product.modify_cost_price', [product])
>>> modify_cost_price.form.cost_price = '90.0000'
@@ -75,6 +76,7 @@
... from_location=supplier_loc,
... to_location=storage_loc,
... unit_price=Decimal('90.0000'),
+ ... currency=company.currency,
... effective_date=today - dt.timedelta(days=1)).click('do')
>>> modify_cost_price = Wizard('product.modify_cost_price', [product])
>>> modify_cost_price.form.cost_price = '120.0000'
@@ -85,6 +87,7 @@
... from_location=supplier_loc,
... to_location=storage_loc,
... unit_price=Decimal('120.0000'),
+ ... currency=company.currency,
... effective_date=today - dt.timedelta(days=1)).click('do')
>>> modify_cost_price = Wizard('product.modify_cost_price', [product])
>>> modify_cost_price.form.cost_price = '110.0000'
@@ -95,6 +98,7 @@
... from_location=supplier_loc,
... to_location=storage_loc,
... unit_price=Decimal('110.0000'),
+ ... currency=company.currency,
... effective_date=today).click('do')