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

don't call catalogObjectList with an empty stock_object_list


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42335 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d92ceba4
...@@ -477,6 +477,7 @@ class BalanceTransaction(AccountingTransaction, Inventory): ...@@ -477,6 +477,7 @@ class BalanceTransaction(AccountingTransaction, Inventory):
self.portal_catalog.catalogObjectList([self]) self.portal_catalog.catalogObjectList([self])
# Catalog differences calculated from lines # Catalog differences calculated from lines
if stock_object_list:
self.portal_catalog.catalogObjectList(stock_object_list[::], self.portal_catalog.catalogObjectList(stock_object_list[::],
method_id_list=('z_catalog_stock_list',), method_id_list=('z_catalog_stock_list',),
disable_cache=1, check_uid=0, disable_cache=1, check_uid=0,
......
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