changeset 4d68f365dc72 in modules/sale_stock_quantity:default
details: 
https://hg.tryton.org/modules/sale_stock_quantity?cmd=changeset;node=4d68f365dc72
description:
        Manage move in future at inventory level

        As the inventory creates and do the moves in the same transaction, the 
warning
        about effective date in future can not be ignored (the ids change).
        Also the warning name should be based on an ordered list of record to 
ensure to
        generate always the same name.

        issue9707
        review328441002
diffstat:

 tests/scenario_sale_stock_quantity.rst |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r f30aaebbb7a3 -r 4d68f365dc72 tests/scenario_sale_stock_quantity.rst
--- a/tests/scenario_sale_stock_quantity.rst    Mon Oct 12 13:03:37 2020 +0200
+++ b/tests/scenario_sale_stock_quantity.rst    Mon Oct 12 20:31:27 2020 +0200
@@ -14,7 +14,7 @@
     ...     create_chart, get_accounts
     >>> from trytond.modules.account_invoice.tests.tools import \
     ...     set_fiscalyear_invoice_sequences, create_payment_term
-    >>> from trytond.modules.stock.exceptions import MoveFutureWarning
+    >>> from trytond.modules.stock.exceptions import InventoryFutureWarning
     >>> today = datetime.date.today()
 
 Activate modules::
@@ -163,7 +163,7 @@
     >>> inventory_line.expected_quantity = 5.0
     >>> try:
     ...     inventory.click('confirm')
-    ... except MoveFutureWarning as e:
+    ... except InventoryFutureWarning as e:
     ...     Model.get('res.user.warning')(user=config.user, name=e.name).save()
     >>> inventory.click('confirm')
     >>> inventory.state

Reply via email to