changeset 528ccce4c861 in modules/stock_lot:default details: https://hg.tryton.org/modules/stock_lot?cmd=changeset&node=528ccce4c861 description: Remove default currency on stock move
issue11512 review433171003 diffstat: tests/scenario_stock_lot_move_add.rst | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diffs (29 lines): diff -r b60e7fb65cd4 -r 528ccce4c861 tests/scenario_stock_lot_move_add.rst --- a/tests/scenario_stock_lot_move_add.rst Tue Sep 27 00:29:24 2022 +0200 +++ b/tests/scenario_stock_lot_move_add.rst Thu Sep 29 09:08:06 2022 +0200 @@ -7,7 +7,8 @@ >>> 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 modules:: @@ -16,6 +17,7 @@ Create company:: >>> _ = create_company() + >>> company = get_company() Create product:: @@ -46,6 +48,7 @@ >>> move.product = product >>> move.quantity = 10 >>> move.unit_price = Decimal('20') + >>> move.currency = company.currency >>> move.save() Create a lot::