Commit 3950ec87 authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

erp5_catalog: Look for connection_id in ERP5 SQL Method also

parent 0453a16c
...@@ -2901,7 +2901,7 @@ class Catalog(Folder, ...@@ -2901,7 +2901,7 @@ class Catalog(Folder,
If 'deferred' is True, then returns the deferred connection If 'deferred' is True, then returns the deferred connection
""" """
for method in self.objectValues(): for method in self.objectValues():
if method.meta_type in ['Z SQL Method',]: if method.meta_type in ['Z SQL Method', 'ERP5 SQL Method']:
if deferred: if deferred:
if 'deferred' in method.connection_id: if 'deferred' in method.connection_id:
return method.connection_id return 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