Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5_fork
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eteri
erp5_fork
Commits
50a9a17b
Commit
50a9a17b
authored
Oct 10, 2014
by
Arnaud Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore 'ロット管理しない' Products when querying KR Inventory Cache.
parent
46b4812a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
product/ERP5/Tool/SimulationTool.py
product/ERP5/Tool/SimulationTool.py
+7
-0
No files found.
product/ERP5/Tool/SimulationTool.py
View file @
50a9a17b
...
...
@@ -1313,6 +1313,13 @@ class SimulationTool(BaseTool):
resource_uid_list
=
kw
[
'resource_uid'
]
if
not
isinstance
(
resource_uid_list
,
(
list
,
set
,
tuple
)):
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
from_date
=
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment