diff --git a/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/DeliveryLine_getSelectableItemList.xml b/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/DeliveryLine_getSelectableItemList.xml index 769a1f0d15a620aabf5cb0905683a3a2474b627f..865ba6c7f0c1b8642bf18a8b537ed25fa791768f 100644 --- a/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/DeliveryLine_getSelectableItemList.xml +++ b/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/DeliveryLine_getSelectableItemList.xml @@ -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 diff --git a/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/DeliveryLine_selectItemList.xml b/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/DeliveryLine_selectItemList.xml index f70e49be2521d227e0f6ad5c3c1c4a70bb492c3c..d6d6544df9b4ce1f70b913ca3dd99ddf33fddae8 100644 --- a/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/DeliveryLine_selectItemList.xml +++ b/bt5/erp5_item/SkinTemplateItem/portal_skins/erp5_item/DeliveryLine_selectItemList.xml @@ -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 diff --git a/bt5/erp5_item/bt/revision b/bt5/erp5_item/bt/revision index a8f6a254f8a75a50d051f68128b0d67dd407cfeb..59f3135037bbf824c05514bcf16eb4bc89af7d7b 100644 --- a/bt5/erp5_item/bt/revision +++ b/bt5/erp5_item/bt/revision @@ -1 +1 @@ -164 \ No newline at end of file +165 \ No newline at end of file