Commit 50a9a17b authored by Arnaud Fontaine's avatar Arnaud Fontaine

Ignore 'ロット管理しない' Products when querying KR Inventory Cache.

parent 46b4812a
...@@ -1313,6 +1313,13 @@ class SimulationTool(BaseTool): ...@@ -1313,6 +1313,13 @@ class SimulationTool(BaseTool):
resource_uid_list = kw['resource_uid'] resource_uid_list = kw['resource_uid']
if not isinstance(resource_uid_list, (list, set, tuple)): if not isinstance(resource_uid_list, (list, set, tuple)):
resource_uid_list = [resource_uid_list] resource_uid_list = [resource_uid_list]
else:
resource_uid_list = deepcopy(resource_uid_list)
for brain in self.portal_catalog(uid=resource_uid_list):
resource = brain.getObject()
if resource.getLotControlType() != '1':
resource_uid_list.remove(resource.getUid())
# Get available variations from the cache # Get available variations from the cache
from_date = None from_date = None
......
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