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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
erp5
Commits
da6a2192
Commit
da6a2192
authored
Jul 29, 2016
by
iv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ERP5Workflow: fix Variable->Workflow Variable (introduced by
8508196f
)
parent
204eac65
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Workflow_init.py
...nTemplateItem/portal_skins/erp5_workflow/Workflow_init.py
+1
-1
product/ERP5Workflow/Tool/WorkflowTool.py
product/ERP5Workflow/Tool/WorkflowTool.py
+1
-0
No files found.
bt5/erp5_workflow/SkinTemplateItem/portal_skins/erp5_workflow/Workflow_init.py
View file @
da6a2192
...
...
@@ -44,7 +44,7 @@ for v, property_dict in (
'for_catalog'
:
1
,
}),
):
variable
=
context
.
newContent
(
portal_type
=
'Variable'
)
variable
=
context
.
newContent
(
portal_type
=
'
Workflow
Variable'
)
variable
.
setReference
(
v
)
variable
.
edit
(
**
property_dict
)
context
.
setStateVariable
(
'simulation_state'
)
product/ERP5Workflow/Tool/WorkflowTool.py
View file @
da6a2192
...
...
@@ -531,6 +531,7 @@ class WorkflowTool(BaseTool, OriginalWorkflowTool):
var_exprs
=
{}
else
:
var_exprs
=
origin_tdef
.
var_exprs
for
key
in
var_exprs
:
#import pdb; pdb.set_trace()
tr_var
=
transition
.
newContent
(
portal_type
=
'Transition Variable'
,
temp_object
=
is_temporary
)
tr_var
.
setVariableExpression
(
var_exprs
[
key
].
text
)
tr_var_path
=
getattr
(
workflow
,
'variable_'
+
key
).
getPath
()
...
...
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