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
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mikolaï Krol
erp5
Commits
769e5eb0
Commit
769e5eb0
authored
Oct 03, 2012
by
Aurel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass movement_list to after-script so that we can work with temp objects
parent
fbe82ef8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
product/ERP5/mixin/builder.py
product/ERP5/mixin/builder.py
+8
-2
No files found.
product/ERP5/mixin/builder.py
View file @
769e5eb0
...
...
@@ -690,17 +690,23 @@ class BuilderMixin(XMLObject, Amount, Predicate):
# the callable object is a Python Script.
meta_type
=
getattr
(
script
,
'meta_type'
,
None
)
if
meta_type
==
'Script (Python)'
:
# check
if the script accepts related_simulation_movement_path_lis
t
# check
parameters accepted by the scrip
t
for
param
in
script
.
params
().
split
(
','
):
param
=
param
.
split
(
'='
,
1
)[
0
].
strip
()
if
param
==
"movement_list"
:
# XXX-Aurel: path does not work with temp objects
script
(
movement_list
=
movement_list
)
break
if
param
==
'related_simulation_movement_path_list'
\
or
param
.
startswith
(
'**'
):
script
(
related_simulation_movement_path_list
=
related_simulation_movement_path_list
)
break
else
:
script
()
continue
else
:
script
(
related_simulation_movement_path_list
=
related_simulation_movement_path_list
)
security
.
declareProtected
(
Permissions
.
AccessContentsInformation
,
'getMovementGroupList'
)
def
getMovementGroupList
(
self
,
portal_type
=
None
,
collect_order_group
=
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