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
Hardik Juneja
erp5
Commits
5a56cd7c
Commit
5a56cd7c
authored
Apr 30, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Find appropriate Business Link when a rule expands for several trade phases simultaneously
parent
b7a04d55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
product/ERP5/Document/BusinessProcess.py
product/ERP5/Document/BusinessProcess.py
+3
-2
No files found.
product/ERP5/Document/BusinessProcess.py
View file @
5a56cd7c
...
...
@@ -686,14 +686,15 @@ class BusinessProcess(Path, XMLObject):
id_index
=
0
base_id
=
amount
.
getId
()
if
update_property_dict
is
None
:
update_property_dict
=
{}
filter_trade_phase
=
set
(
trade_phase
).
intersection
for
trade_model_path
in
self
.
getTradeModelPathValueList
(
context
=
amount
,
trade_phase
=
trade_phase
):
id_index
+=
1
movement
=
newTempSimulationMovement
(
trade_model_path
,
'%s_%s'
%
(
base_id
,
id_index
),
notify_workflow
=
False
)
kw
=
self
.
_getPropertyAndCategoryDict
(
explanation
,
amount
,
trade_model_path
,
delay_mode
=
delay_mode
)
trade_phase
=
filter_trade_phase
(
trade_model_path
.
getTradePhaseList
())
try
:
kw
[
'trade_phase'
],
=
\
set
(
trade_phase
).
intersection
(
trade_model_path
.
getTradePhaseList
())
kw
[
'trade_phase'
],
=
trade_phase
except
ValueError
:
pass
kw
.
update
(
update_property_dict
)
...
...
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