Commit 72908655 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Check for ERP5 SQL Method while cataloging inventory

parent 973f12b3
......@@ -116,7 +116,7 @@ class Inventory(Delivery):
# try to get connection used in the catalog
catalog = portal.portal_catalog[sql_catalog_id]
for method in catalog.objectValues():
if method.meta_type == "Z SQL Method":
if method.meta_type in ["Z SQL Method", "ERP5 SQL Method"]:
if 'deferred' not in method.connection_id \
and 'transactionless' not in method.connection_id:
connection_id = method.connection_id
......
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