From faa0fd3ef90886669290f1575bc284e299dafc71 Mon Sep 17 00:00:00 2001 From: Tatuya Kamada <tatuya@nexedi.com> Date: Wed, 3 Apr 2013 18:19:18 +0900 Subject: [PATCH] Correct the wrong sentences in the comments. --- product/ERP5/Document/Inventory.py | 2 +- product/ERP5/tests/testInventory.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/product/ERP5/Document/Inventory.py b/product/ERP5/Document/Inventory.py index 363daa4f1a..1586b864cc 100644 --- a/product/ERP5/Document/Inventory.py +++ b/product/ERP5/Document/Inventory.py @@ -97,7 +97,7 @@ class Inventory(Delivery): disable_archive = kw.pop("disable_archive", 0) draft_state_list = list(self.getPortalDraftOrderStateList()) - # we need reindex when we do cancelling inventories + # we need reindex when cancelling inventories if 'cancelled' in draft_state_list: draft_state_list.remove('cancelled') if self.getSimulationState() in draft_state_list: diff --git a/product/ERP5/tests/testInventory.py b/product/ERP5/tests/testInventory.py index 3291e336e6..532f306d8c 100644 --- a/product/ERP5/tests/testInventory.py +++ b/product/ERP5/tests/testInventory.py @@ -3034,7 +3034,7 @@ class TestInventory(TestOrderMixin, ERP5TypeTestCase): stock: 1| movement | 2013/03/20 00:00:00 | 100 2| movement | 2013/03/20 00:00:00 | 100 - 3| movement | 2013/03/20 00:00:00 | -100 + 3| movement | 2013/03/20 00:00:01 | -100 getInventory() should return 100 -- 2.30.9