Commit 9da6a752 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

update order category if exist.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31167 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f781eff4
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
############################################################################## ##############################################################################
import zope.interface import zope.interface
from Acquisition import aq_base
from Products.ERP5Type import interfaces from Products.ERP5Type import interfaces
from Products.ERP5Type.Accessor.TypeDefinition import list_types from Products.ERP5Type.Accessor.TypeDefinition import list_types
...@@ -149,4 +150,8 @@ class MovementCollectionDiff(object): ...@@ -149,4 +150,8 @@ class MovementCollectionDiff(object):
property_dict.update(dict(filter(filter_category_func, property_dict.update(dict(filter(filter_category_func,
[(x, getPropertyList(x)) for x in \ [(x, getPropertyList(x)) for x in \
movement.getBaseCategoryList()]))) 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 return property_dict
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