Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Tatuya Kamada
erp5
Commits
7f4713f7
Commit
7f4713f7
authored
Mar 04, 2016
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! Reduce number of JOIN
parent
bfb7c4dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
product/ERP5/Tool/AcknowledgementTool.py
product/ERP5/Tool/AcknowledgementTool.py
+6
-4
No files found.
product/ERP5/Tool/AcknowledgementTool.py
View file @
7f4713f7
...
@@ -123,7 +123,7 @@ class AcknowledgementTool(BaseTool):
...
@@ -123,7 +123,7 @@ class AcknowledgementTool(BaseTool):
else
:
else
:
now
=
DateTime
()
now
=
DateTime
()
# First look at all event that define the current user as destination
# First look at all event that define the current user as destination
all_document_list
=
[
x
for
x
in
\
all_document_list
=
[
x
.
getObject
()
for
x
in
\
self
.
portal_catalog
(
portal_type
=
portal_type
,
self
.
portal_catalog
(
portal_type
=
portal_type
,
simulation_state
=
self
.
getPortalTransitInventoryStateList
(),
simulation_state
=
self
.
getPortalTransitInventoryStateList
(),
# start_date = {'query':now,'range':'max'},
# start_date = {'query':now,'range':'max'},
...
@@ -133,12 +133,14 @@ class AcknowledgementTool(BaseTool):
...
@@ -133,12 +133,14 @@ class AcknowledgementTool(BaseTool):
# so not in a final state
# so not in a final state
final_state_list
=
self
.
getPortalCurrentInventoryStateList
()
final_state_list
=
self
.
getPortalCurrentInventoryStateList
()
query
=
NegatedQuery
(
Query
(
simulation_state
=
final_state_list
))
query
=
NegatedQuery
(
Query
(
simulation_state
=
final_state_list
))
all_document_list
.
extend
([
x
for
x
in
\
for
x
in
self
.
portal_catalog
(
portal_type
=
portal_type
,
self
.
portal_catalog
(
portal_type
=
portal_type
,
query
=
query
,
query
=
query
,
# start_date = {'query':now,'range':'max'},
# start_date = {'query':now,'range':'max'},
# stop_date = {'query':now,'range':'min'},
# stop_date = {'query':now,'range':'min'},
default_destination_uid
=
person_value
.
getUid
())])
default_destination_uid
=
person_value
.
getUid
()):
x
=
x
.
getObject
()
if
x
not
in
all_document_list
:
all_document_list
.
append
(
x
)
for
document
in
all_document_list
:
for
document
in
all_document_list
:
# We filter manually on dates until a good solution is found for
# We filter manually on dates until a good solution is found for
# searching by dates on the catalog
# searching by dates on the catalog
...
...
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