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
Laurent S
erp5
Commits
b747ea85
Commit
b747ea85
authored
Jan 17, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make Business Process responsible for links and paths.
parent
55e57c38
Changes
1
Show 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):
...
@@ -698,9 +698,18 @@ class BusinessProcess(Path, XMLObject):
movement
.
_edit
(
force_update
=
True
,
**
kw
)
movement
.
_edit
(
force_update
=
True
,
**
kw
)
business_link
=
self
.
getBusinessLinkValueList
(
trade_phase
=
trade_phase
,
business_link
=
self
.
getBusinessLinkValueList
(
trade_phase
=
trade_phase
,
context
=
movement
)
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
()]
movement
.
_setCausalityList
([
trade_model_path
.
getRelativeUrl
()]
+
[
x
.
getRelativeUrl
()
for
x
in
business_link
]
+
[
x
.
getRelativeUrl
()
for
x
in
business_link
]
+
movement
.
getCausalityList
()
)
+
previous_causality_list
)
result
.
append
(
movement
)
result
.
append
(
movement
)
if
not
explanation
.
getSpecialiseValue
().
getSameTotalQuantity
():
if
not
explanation
.
getSpecialiseValue
().
getSameTotalQuantity
():
...
...
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