Commit be2d00a3 authored by Jérome Perrin's avatar Jérome Perrin

get the item variation category for the date of the movement

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27301 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 482f1782
......@@ -82,8 +82,8 @@ for tracking_brain in portal.portal_simulation.getCurrentTrackingList(\n
# it could, by computing all variation texts, but I don\'t think this is\n
# really necessary.\n
if check_variation and \\\n
item.Item_getVariationCategoryList() not in\\\n
acceptable_variation_category_list:\n
item.Item_getVariationCategoryList(at_date=context.getStartDate())\\\n
not in acceptable_variation_category_list:\n
continue\n
\n
result_list.append(item)\n
......
......@@ -85,7 +85,8 @@ uids = selection_tool.getSelectionCheckedUidsFor(list_selection_name)\n
\n
for item_uid in uids:\n
item = getObject(item_uid)\n
item_variation = item.Item_getVariationCategoryList()\n
item_variation = \\\n
item.Item_getVariationCategoryList(at_date=context.getStartDate())\n
# if we have variation, find matching cell to add this item to the cell\n
if item_variation:\n
cell_found = None\n
......
164
\ No newline at end of file
165
\ No newline at end of file
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