Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Yusei Tahara
erp5
Commits
b747ea85
Commit
b747ea85
authored
13 years ago
by
Łukasz Nowak
Browse files
Options
Download
Email Patches
Plain Diff
Make Business Process responsible for links and paths.
parent
55e57c38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
product/ERP5/Document/BusinessProcess.py
product/ERP5/Document/BusinessProcess.py
+10
-1
No files found.
product/ERP5/Document/BusinessProcess.py
View file @
b747ea85
...
...
@@ -698,9 +698,18 @@ class BusinessProcess(Path, XMLObject):
movement
.
_edit
(
force_update
=
True
,
**
kw
)
business_link
=
self
.
getBusinessLinkValueList
(
trade_phase
=
trade_phase
,
context
=
movement
)
# reset all other Business Process related causality links
# it allows to configure category equivalence tester on causality and
# will not propagate categories previosions for links, as
# Business Process itself has full responsibility for setting those values
excluded_portal_type_set
=
set
(
self
.
getPortalTradeModelPathTypeList
()
\
+
self
.
getPortalBusinessLinkTypeList
())
previous_causality_list
=
[
q
.
getRelativeUrl
()
\
for
q
in
movement
.
getCausalityValueList
()
if
q
.
getPortalType
()
\
not
in
excluded_portal_type_set
]
movement
.
_setCausalityList
([
trade_model_path
.
getRelativeUrl
()]
+
[
x
.
getRelativeUrl
()
for
x
in
business_link
]
+
movement
.
getC
ausality
L
ist
()
)
+
previous_c
ausality
_l
ist
)
result
.
append
(
movement
)
if
not
explanation
.
getSpecialiseValue
().
getSameTotalQuantity
():
...
...
This diff is collapsed.
Click to expand it.
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