[Erp5-report] r16378 - in /erp5/trunk/products/ERP5/bootstrap/erp5_core: SkinTemplateItem/p...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Sep 14 16:41:35 CEST 2007
Author: jerome
Date: Fri Sep 14 16:41:35 2007
New Revision: 16378
URL: http://svn.erp5.org?rev=16378&view=rev
Log:
use inventory_movement portal type group in InventoryModule_reindexMovementList
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/InventoryModule_reindexMovementList.xml
erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/InventoryModule_reindexMovementList.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/InventoryModule_reindexMovementList.xml?rev=16378&r1=16377&r2=16378&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/InventoryModule_reindexMovementList.xml (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/InventoryModule_reindexMovementList.xml Fri Sep 14 16:41:35 2007
@@ -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 @@
<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>
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision?rev=16378&r1=16377&r2=16378&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_core/bt/revision Fri Sep 14 16:41:35 2007
@@ -1,1 +1,1 @@
-473
+474
More information about the Erp5-report
mailing list