From f0767a2103791ef631bd699cad856ed62fb50be4 Mon Sep 17 00:00:00 2001 From: Maxime Richez Date: Thu, 29 Sep 2022 09:08:06 +0200 Subject: [PATCH] Remove default currency on stock move issue11512 review433171003 --- tests/scenario_product_kit.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/scenario_product_kit.rst b/tests/scenario_product_kit.rst index 5fb8935bc0..3973f25e79 100644 --- a/tests/scenario_product_kit.rst +++ b/tests/scenario_product_kit.rst @@ -7,7 +7,8 @@ Imports:: >>> from decimal import Decimal >>> from proteus import Model, Wizard >>> from trytond.tests.tools import activate_modules - >>> from trytond.modules.company.tests.tools import create_company + >>> from trytond.modules.company.tests.tools import ( + ... create_company, get_company) Activate product_kit and stock:: @@ -16,6 +17,7 @@ Activate product_kit and stock:: Create company:: >>> _ = create_company() + >>> company = get_company() Create products:: @@ -123,6 +125,7 @@ Fill stock with some components:: >>> move.from_location = supplier_loc >>> move.to_location = storage_loc >>> move.unit_price = Decimal('10') + >>> move.currency = company.currency >>> moves.append(move) >>> move = StockMove() @@ -131,6 +134,7 @@ Fill stock with some components:: >>> move.from_location = supplier_loc >>> move.to_location = storage_loc >>> move.unit_price = Decimal('20') + >>> move.currency = company.currency >>> moves.append(move) >>> move = StockMove() @@ -139,6 +143,7 @@ Fill stock with some components:: >>> move.from_location = supplier_loc >>> move.to_location = storage_loc >>> move.unit_price = Decimal('1') + >>> move.currency = company.currency >>> moves.append(move) >>> StockMove.click(moves, 'do')