From 7798d6195afa62de9424fb99374bdd9253492f2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com> Date: Thu, 30 Apr 2009 16:06:22 +0000 Subject: [PATCH] - corrected comment git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26760 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/TradeModelLine.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/product/ERP5/Document/TradeModelLine.py b/product/ERP5/Document/TradeModelLine.py index a2c4be8da1..094462d936 100644 --- a/product/ERP5/Document/TradeModelLine.py +++ b/product/ERP5/Document/TradeModelLine.py @@ -94,15 +94,7 @@ class TradeModelLine(Amount): # we need to create aggreageted amount on context itself movement_list = [context] else: - # we need to create aggregated amount on context's movements - # do not use resources, which use category use - # XXX This is not so good - on Invoice with movements having such - # resource we shall treat those lines as applying or not? - # it would be nice to use: - # context.getMovementList(related_resource_use_uid = \ - # context.portal_preferences.getPreferredNormalUseUidList()) - # But getMovementList works with objectValues, do not support - # filtering. + # XXX: filtering shall be in getMovementList movement_list = [] for movement in context.getMovementList(): movement_resource = movement.getResourceValue() -- 2.30.9