Commit 8bfb0fb9 authored by Yusei Tahara's avatar Yusei Tahara

Target category may not be available on delivery movement or simulation movement.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38856 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 09e2581e
......@@ -82,6 +82,11 @@ class CategoryDivergenceTester(PropertyDivergenceTester):
delivery_mvt_category_list = delivery_mvt_getProperty(list_prop)
simulation_category_list = simulation_movement_getProperty(list_prop)
if delivery_mvt_category_list is None:
delivery_mvt_category_list = []
if simulation_category_list is None:
simulation_category_list = []
# XXX Don't we need to check the order too ?
delivery_mvt_category_list.sort()
simulation_category_list.sort()
......
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