Commit ae604c26 authored by Aurel's avatar Aurel

use state group family instead of hardcoding


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17797 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bd5bb7ed
...@@ -97,7 +97,7 @@ class Inventory(Delivery): ...@@ -97,7 +97,7 @@ class Inventory(Delivery):
to have our own temp object constructor, this is usefull if we to have our own temp object constructor, this is usefull if we
want to use some classes with some particular methods want to use some classes with some particular methods
""" """
if self.getSimulationState() != "delivered": if self.getSimulationState() in self.getPortalDraftOrderStateList():
# this prevent from trying to calculate stock # this prevent from trying to calculate stock
# with not all properties defined and thus making # with not all properties defined and thus making
# request with no condition in mysql # request with no condition in mysql
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment