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
Paul Graydon
erp5
Commits
a386a10f
Commit
a386a10f
authored
Jan 19, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support profit and loss movements in exposing causality.
parent
8ebfb938
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
product/ERP5/mixin/rule.py
product/ERP5/mixin/rule.py
+4
-0
No files found.
product/ERP5/mixin/rule.py
View file @
a386a10f
...
@@ -423,6 +423,10 @@ class RuleMixin(Predicate):
...
@@ -423,6 +423,10 @@ class RuleMixin(Predicate):
for
tester
in
profit_updating_tester_list
:
for
tester
in
profit_updating_tester_list
:
if
not
tester
.
compare
(
prevision_movement
,
decision_movement
):
if
not
tester
.
compare
(
prevision_movement
,
decision_movement
):
kw
.
update
(
tester
.
getUpdatablePropertyDict
(
prevision_movement
,
decision_movement
))
kw
.
update
(
tester
.
getUpdatablePropertyDict
(
prevision_movement
,
decision_movement
))
# special cause: causality shall be updatable, coming from prevision
if
set
(
prevision_movement
.
getCausalityList
())
!=
\
set
(
decision_movement
.
getCausalityList
()):
kw
[
'causality'
]
=
prevision_movement
.
getCausalityList
()
if
kw
:
if
kw
:
movement_collection_diff
.
addUpdatableMovement
(
decision_movement
,
kw
)
movement_collection_diff
.
addUpdatableMovement
(
decision_movement
,
kw
)
else
:
else
:
...
...
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