Commit 7e016536 authored by Sebastien Robin's avatar Sebastien Robin

simulation: allow possibility to not create profit and loss movement

parent 4362cfe2
......@@ -475,7 +475,8 @@ class RuleMixin(Predicate):
else:
# We must create a profit and loss movement
new_movement = self._newProfitAndLossMovement(prevision_movement)
movement_collection_diff.addNewMovement(new_movement)
if new_movement is not None:
movement_collection_diff.addNewMovement(new_movement)
InitializeClass(RuleMixin)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment