changeset b039fb26138c in modules/product_kit:default
details: 
https://hg.tryton.org/modules/product_kit?cmd=changeset&node=b039fb26138c
description:
        Remove default currency on stock move

        issue11512
        review433171003
diffstat:

 tests/scenario_product_kit.rst |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (45 lines):

diff -r d31f8499c591 -r b039fb26138c tests/scenario_product_kit.rst
--- a/tests/scenario_product_kit.rst    Sun Sep 25 20:24:56 2022 +0200
+++ b/tests/scenario_product_kit.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 product_kit and stock::
 
@@ -16,6 +17,7 @@
 Create company::
 
     >>> _ = create_company()
+    >>> company = get_company()
 
 Create products::
 
@@ -123,6 +125,7 @@
     >>> 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 @@
     >>> 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 @@
     >>> 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')

Reply via email to