From a08fe4f1ca98d835ac0c4294217369c20f237e7b Mon Sep 17 00:00:00 2001 From: Tatuya Kamada <tatuya@nexedi.com> Date: Tue, 22 Jun 2010 14:28:09 +0000 Subject: [PATCH] 2010-06-22 tatuya * Fix a issue that Aggregate Items view caused an attribute error when there is a document which is not a movement, ex payment condition. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36516 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_item/Delivery_getAggregatedItemValueList.xml | 4 ++-- bt5/erp5_item/bt/change_log | 3 +++ bt5/erp5_item/bt/revision | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Delivery_getAggregatedItemValueList.xml b/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Delivery_getAggregatedItemValueList.xml index 47961009d6..debb2714f2 100644 --- a/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Delivery_getAggregatedItemValueList.xml +++ b/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/Delivery_getAggregatedItemValueList.xml @@ -61,10 +61,10 @@ pl_type = context.getPortalType()\n pl_line_type = pl_type + \' Line\'\n pl_cell_type = pl_type + \' Cell\'\n \n -line_list = context.objectValues(filter={\'portal_type\':pl_line_type})\n +line_list = context.objectValues(portal_type=pl_line_type)\n for line in line_list:\n selection_uid_list.extend(line.getAggregateUidList())\n - cell_list = line.objectValues(filter={\'portal_type\':pl_cell_type})\n + cell_list = line.objectValues(portal_type=pl_cell_type)\n for cell in cell_list:\n selection_uid_list.extend(cell.getAggregateUidList())\n \n diff --git a/bt5/erp5_item/bt/change_log b/bt5/erp5_item/bt/change_log index 7c0f81abc5..03ea0bc3ee 100644 --- a/bt5/erp5_item/bt/change_log +++ b/bt5/erp5_item/bt/change_log @@ -1,3 +1,6 @@ +2010-06-22 tatuya +* Fix a issue that Aggregate Items view caused an attribute error when there is a document which is not a movement, ex payment condition. + 2009-05-01 yusei * Fix broken Item_view form. Don't forget to commit form itself when you add a new field. Partial commit break business template. diff --git a/bt5/erp5_item/bt/revision b/bt5/erp5_item/bt/revision index 66321c084c..946b551d71 100644 --- a/bt5/erp5_item/bt/revision +++ b/bt5/erp5_item/bt/revision @@ -1 +1 @@ -189 \ No newline at end of file +191 \ No newline at end of file -- 2.30.9