Commit 00b7b74c authored by Alexandre Boeglin's avatar Alexandre Boeglin

Do not modify frozen movements (note that this is not perfect, instead of

just skipping edition, we should generate a compensation movement)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15944 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent af8a8210
...@@ -93,6 +93,11 @@ class TransformationSourcingRuleMixin(ExtensionClass.Base): ...@@ -93,6 +93,11 @@ class TransformationSourcingRuleMixin(ExtensionClass.Base):
id=movement_id, id=movement_id,
activate_kw=activate_kw activate_kw=activate_kw
) )
# We shouldn't modify frozen movements
elif movement.isFrozen():
# FIXME: this is not perfect, instead of just skipping this one, we
# should generate a compensation movement
continue
# Update movement properties # Update movement properties
movement.edit(**(movement_dict[movement_id])) movement.edit(**(movement_dict[movement_id]))
......
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