[Erp5-report] r15944 - /erp5/trunk/products/ERP5/Document/TransformationSourcingRule.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Aug 30 10:50:46 CEST 2007
Author: alex
Date: Thu Aug 30 10:50:46 2007
New Revision: 15944
URL: http://svn.erp5.org?rev=15944&view=rev
Log:
Do not modify frozen movements (note that this is not perfect, instead of
just skipping edition, we should generate a compensation movement)
Modified:
erp5/trunk/products/ERP5/Document/TransformationSourcingRule.py
Modified: erp5/trunk/products/ERP5/Document/TransformationSourcingRule.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/TransformationSourcingRule.py?rev=15944&r1=15943&r2=15944&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/TransformationSourcingRule.py (original)
+++ erp5/trunk/products/ERP5/Document/TransformationSourcingRule.py Thu Aug 30 10:50:46 2007
@@ -93,6 +93,11 @@
id=movement_id,
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
movement.edit(**(movement_dict[movement_id]))
More information about the Erp5-report
mailing list