changeset 2fc4498bbb1c in modules/product_cost_fifo:default
details:
https://hg.tryton.org/modules/product_cost_fifo?cmd=changeset&node=2fc4498bbb1c
description:
Fill currency on move in tests
issue11749
diffstat:
tests/scenario_product_cost_fifo_recompute_cost_price.rst | 5 +++++
tests/scenario_product_cost_fifo_recompute_cost_price_production.rst | 2 ++
2 files changed, 7 insertions(+), 0 deletions(-)
diffs (62 lines):
diff -r 1dadc6237a4a -r 2fc4498bbb1c
tests/scenario_product_cost_fifo_recompute_cost_price.rst
--- a/tests/scenario_product_cost_fifo_recompute_cost_price.rst Wed Sep 14
19:10:34 2022 +0200
+++ b/tests/scenario_product_cost_fifo_recompute_cost_price.rst Fri Sep 30
22:41:34 2022 +0200
@@ -56,6 +56,7 @@
... from_location=supplier_loc,
... to_location=storage_loc,
... unit_price=Decimal('100'),
+ ... currency=company.currency,
... effective_date=today - dt.timedelta(days=2)).click('do')
>>> StockMove(
... product=product,
@@ -63,6 +64,7 @@
... from_location=supplier_loc,
... to_location=storage_loc,
... unit_price=Decimal('120'),
+ ... currency=company.currency,
... effective_date=today - dt.timedelta(days=1)).click('do')
>>> StockMove(
... product=product,
@@ -76,6 +78,7 @@
... from_location=storage_loc,
... to_location=customer_loc,
... unit_price=Decimal('300'),
+ ... currency=company.currency,
... effective_date=today - dt.timedelta(days=1)).click('do')
>>> StockMove(
... product=product,
@@ -83,6 +86,7 @@
... from_location=supplier_loc,
... to_location=storage_loc,
... unit_price=Decimal('100'),
+ ... currency=company.currency,
... effective_date=today).click('do')
>>> StockMove(
... product=product,
@@ -90,6 +94,7 @@
... from_location=storage_loc,
... to_location=customer_loc,
... unit_price=Decimal('300'),
+ ... currency=company.currency,
... effective_date=today).click('do')
>>> StockMove(
... product=product,
diff -r 1dadc6237a4a -r 2fc4498bbb1c
tests/scenario_product_cost_fifo_recompute_cost_price_production.rst
--- a/tests/scenario_product_cost_fifo_recompute_cost_price_production.rst
Wed Sep 14 19:10:34 2022 +0200
+++ b/tests/scenario_product_cost_fifo_recompute_cost_price_production.rst
Fri Sep 30 22:41:34 2022 +0200
@@ -65,6 +65,7 @@
... from_location=production_loc,
... to_location=storage_loc,
... unit_price=Decimal('40.0000'),
+ ... currency=company.currency,
... effective_date=today).click('do')
>>> [m.cost_price for m in StockMove.find([])]
@@ -90,6 +91,7 @@
... from_location=supplier_loc,
... to_location=storage_loc,
... unit_price=Decimal('20.0000'),
+ ... currency=company.currency,
... effective_date=yesterday).click('do')
Recompute cost price::