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
Labels
Merge Requests
137
Merge Requests
137
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
3c6fda19
Commit
3c6fda19
authored
Oct 29, 2020
by
Georgios Dagkakis
Committed by
Jérome Perrin
Oct 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_core: Display workflow and ZODB history in desceding sorting
parent
cb28a319
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
5 deletions
+42
-5
product/ERP5/bootstrap/erp5_core/ExtensionTemplateItem/portal_components/extension.erp5.ZODBHistory.py
...plateItem/portal_components/extension.erp5.ZODBHistory.py
+1
-1
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistoryItemList.py
...portal_skins/erp5_core/Base_getWorkflowHistoryItemList.py
+2
-0
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistoryItemList.xml
...ortal_skins/erp5_core/Base_getWorkflowHistoryItemList.xml
+1
-1
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewWorkflowHistory/listbox.xml
...rtal_skins/erp5_core/Base_viewWorkflowHistory/listbox.xml
+38
-3
No files found.
product/ERP5/bootstrap/erp5_core/ExtensionTemplateItem/portal_components/extension.erp5.ZODBHistory.py
View file @
3c6fda19
...
...
@@ -136,7 +136,7 @@ def getChangeHistoryList(document, size=50, attribute_name=None):
history
.
extend
(
_getWorkflowHistory
(
document
,
initial_datetime
))
history
.
extend
(
_getRecordedPropertyHistory
(
document
,
size
))
history
.
extend
(
_getAttributeHistory
(
document
,
size
,
attribute_name
))
history
.
sort
(
key
=
lambda
x
:
x
[
'datetime'
])
history
.
sort
(
key
=
lambda
x
:
x
[
'datetime'
]
,
reverse
=
True
)
return
history
...
...
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistoryItemList.py
View file @
3c6fda19
...
...
@@ -92,4 +92,6 @@ for workflow_item in workflow_item_list:
previous_obj
=
o
result
.
append
(
o
)
if
reverse
:
result
.
reverse
()
return
result
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_getWorkflowHistoryItemList.xml
View file @
3c6fda19
...
...
@@ -50,7 +50,7 @@
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
workflow_id, display=1, **kw
</string>
</value>
<value>
<string>
workflow_id, display=1,
reverse=False,
**kw
</string>
</value>
</item>
<item>
<key>
<string>
_proxy_roles
</string>
</key>
...
...
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/Base_viewWorkflowHistory/listbox.xml
View file @
3c6fda19
...
...
@@ -11,6 +11,7 @@
<value>
<list>
<string>
columns
</string>
<string>
default_params
</string>
<string>
editable_columns
</string>
<string>
list_action
</string>
<string>
list_method
</string>
...
...
@@ -62,6 +63,12 @@
<key>
<string>
columns
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
default_params
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
editable_columns
</string>
</key>
<value>
<string></string>
</value>
...
...
@@ -74,6 +81,10 @@
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
list_action
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
list_method
</string>
</key>
<value>
<string></string>
</value>
...
...
@@ -89,7 +100,7 @@
<item>
<key>
<string>
title
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
I
=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
M
=
</string>
</persistent>
</value>
</item>
<item>
...
...
@@ -144,6 +155,17 @@
</list>
</value>
</item>
<item>
<key>
<string>
default_params
</string>
</key>
<value>
<list>
<tuple>
<string>
checked_permission
</string>
<string>
View
</string>
</tuple>
</list>
</value>
</item>
<item>
<key>
<string>
disable_link
</string>
</key>
<value>
<int>
0
</int>
</value>
...
...
@@ -194,7 +216,7 @@
<item>
<key>
<string>
list_method
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
M
=
</string>
</persistent>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAA
Q
=
</string>
</persistent>
</value>
</item>
<item>
...
...
@@ -274,12 +296,25 @@
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python:
here.portal_selections.getSelectionParams(request.get(\'prefixed_selection_name\', field.get_orig_value(\'selection_name\')))[\'workflow_title\'
]
</string>
</value>
<value>
<string>
python:
[(\'checked_permission\', \'View\'), (\'reverse\', True)
]
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"3"
aka=
"AAAAAAAAAAM="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: here.portal_selections.getSelectionParams(request.get(\'prefixed_selection_name\', field.get_orig_value(\'selection_name\')))[\'workflow_title\']
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
<record
id=
"4"
aka=
"AAAAAAAAAAQ="
>
<pickle>
<global
name=
"Method"
module=
"Products.Formulator.MethodField"
/>
</pickle>
...
...
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