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
1
Merge Requests
1
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
Cédric Le Ninivin
erp5
Commits
15a1d2a0
Commit
15a1d2a0
authored
Feb 05, 2024
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Base: add accessor for effective date of workflow history
parent
eda73caf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
product/ERP5Type/Base.py
product/ERP5Type/Base.py
+14
-0
No files found.
product/ERP5Type/Base.py
View file @
15a1d2a0
...
...
@@ -562,6 +562,20 @@ def initializePortalTypeDynamicWorkflowMethods(ptype_klass, portal_workflow):
ptype_klass
.
registerAccessor
(
method
,
Permissions
.
AccessContentsInformation
)
for
transition_id
in
wf_transition_reference_list
:
list_method_id
=
'get%sEffectiveDateList'
%
UpperCase
(
transition_id
)
if
not
hasattr
(
ptype_klass
,
list_method_id
):
method
=
WorkflowHistoryAccessor
.
ListGetter
(
list_method_id
,
wf_id
,
transition_id
,
'effective_time'
)
ptype_klass
.
registerAccessor
(
method
,
Permissions
.
AccessContentsInformation
)
method_id
=
'get%sEffectiveDate'
%
UpperCase
(
transition_id
)
if
not
hasattr
(
ptype_klass
,
method_id
):
method
=
WorkflowHistoryAccessor
.
Getter
(
method_id
,
list_method_id
)
ptype_klass
.
registerAccessor
(
method
,
Permissions
.
AccessContentsInformation
)
elif
wf_type
in
[
'InteractionWorkflowDefinition'
,
'Interaction Workflow'
]:
storage
=
interaction_workflow_dict
else
:
...
...
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