diff --git a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/InventoryModule_reindexMovementList.xml b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/InventoryModule_reindexMovementList.xml index 95e1850cc1d8433456d98796c25213a74e1e182b..4836a96fba89a2ac74f45d60f2f1a3062aa56347 100644 --- a/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/InventoryModule_reindexMovementList.xml +++ b/product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/InventoryModule_reindexMovementList.xml @@ -73,9 +73,11 @@ # look in the catalog to all inventory movement sort on date\n count = 1\n \n +portal = context.getPortalObject()\n +\n # We have to reindex all inventory in the order of the date\n -for o in [ x.getObject() for x in context.portal_catalog(\n - portal_type = (\'Inventory Cell\',\'Inventory Line\')\n +for o in [ x.getObject() for x in portal.portal_catalog(\n + portal_type = portal.getPortalInventoryMovementTypeList()\n , limit = None\n , sort_on = [(\'movement.start_date\',\'ascending\')]\n , sql_catalog_id = sql_catalog_id\n @@ -148,11 +150,12 @@ if final_activity_tag is not None and count > 1:\n <string>final_activity_tag</string> <string>kw</string> <string>count</string> + <string>_getattr_</string> + <string>context</string> + <string>portal</string> <string>_getiter_</string> <string>append</string> <string>$append0</string> - <string>_getattr_</string> - <string>context</string> <string>None</string> <string>x</string> <string>o</string> diff --git a/product/ERP5/bootstrap/erp5_core/bt/revision b/product/ERP5/bootstrap/erp5_core/bt/revision index 0642336574c704b287331ad4bc605737a5f1a770..6a5426c9b3432ec4b244774a543bc6ed9b0eb575 100644 --- a/product/ERP5/bootstrap/erp5_core/bt/revision +++ b/product/ERP5/bootstrap/erp5_core/bt/revision @@ -1 +1 @@ -473 \ No newline at end of file +474 \ No newline at end of file