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

use inventory_movement portal type group in InventoryModule_reindexMovementList

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16378 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 767b222f
...@@ -73,9 +73,11 @@ ...@@ -73,9 +73,11 @@
# look in the catalog to all inventory movement sort on date\n # look in the catalog to all inventory movement sort on date\n
count = 1\n count = 1\n
\n \n
portal = context.getPortalObject()\n
\n
# We have to reindex all inventory in the order of the date\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 for o in [ x.getObject() for x in portal.portal_catalog(\n
portal_type = (\'Inventory Cell\',\'Inventory Line\')\n portal_type = portal.getPortalInventoryMovementTypeList()\n
, limit = None\n , limit = None\n
, sort_on = [(\'movement.start_date\',\'ascending\')]\n , sort_on = [(\'movement.start_date\',\'ascending\')]\n
, sql_catalog_id = sql_catalog_id\n , sql_catalog_id = sql_catalog_id\n
...@@ -148,11 +150,12 @@ if final_activity_tag is not None and count > 1:\n ...@@ -148,11 +150,12 @@ if final_activity_tag is not None and count > 1:\n
<string>final_activity_tag</string> <string>final_activity_tag</string>
<string>kw</string> <string>kw</string>
<string>count</string> <string>count</string>
<string>_getattr_</string>
<string>context</string>
<string>portal</string>
<string>_getiter_</string> <string>_getiter_</string>
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>_getattr_</string>
<string>context</string>
<string>None</string> <string>None</string>
<string>x</string> <string>x</string>
<string>o</string> <string>o</string>
......
473 474
\ No newline at end of file \ 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