[Erp5-report] r31167 kazuhiko - /erp5/trunk/products/ERP5/MovementCollectionDiff.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Dec 8 17:49:56 CET 2009
Author: kazuhiko
Date: Tue Dec 8 17:49:54 2009
New Revision: 31167
URL: http://svn.erp5.org?rev=31167&view=rev
Log:
update order category if exist.
Modified:
erp5/trunk/products/ERP5/MovementCollectionDiff.py
Modified: erp5/trunk/products/ERP5/MovementCollectionDiff.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/MovementCollectionDiff.py?rev=31167&r1=31166&r2=31167&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/MovementCollectionDiff.py [utf8] (original)
+++ erp5/trunk/products/ERP5/MovementCollectionDiff.py [utf8] Tue Dec 8 17:49:54 2009
@@ -27,6 +27,7 @@
##############################################################################
import zope.interface
+from Acquisition import aq_base
from Products.ERP5Type import interfaces
from Products.ERP5Type.Accessor.TypeDefinition import list_types
@@ -149,4 +150,8 @@
property_dict.update(dict(filter(filter_category_func,
[(x, getPropertyList(x)) for x in \
movement.getBaseCategoryList()])))
+ # update order category if exist
+ order = getattr(aq_base(movement), 'order', None)
+ if order is not None:
+ property_dict['order'] = order
return property_dict
More information about the Erp5-report
mailing list