Commit 6d0f7dd7 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Change the context for the python script to get Method list from catalog objects

parent e3b02a1a
method_list = context.getPortalObject().portal_catalog.getSQLCatalog().Catalog_getCatalogMethodIds()
# This script should always be called with context as either
# ERP5Catalog object or SQLCatalog.Catalog object
method_list = context.Catalog_getCatalogMethodIds()
method_list = [method[0] for method in method_list]
return method_list
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