Commit 088e37cc authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Add portal_type, allowed_type and an extra tab 'view' in CatalogTool

parent 8f76c071
...@@ -310,12 +310,15 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject, Fol ...@@ -310,12 +310,15 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject, Fol
""" """
id = 'portal_catalog' id = 'portal_catalog'
meta_type = 'ERP5 Catalog' meta_type = 'ERP5 Catalog'
portal_type = 'Catalog Tool'
allowed_types = ('Catalog',)
security = ClassSecurityInfo() security = ClassSecurityInfo()
default_result_limit = None default_result_limit = None
default_count_limit = 1 default_count_limit = 1
manage_options = ({ 'label' : 'Overview', 'action' : 'manage_overview' }, manage_options = ({ 'label' : 'Overview', 'action' : 'manage_overview' },
{ 'label' : 'View', 'action' : '' },
) + ZCatalog.manage_options ) + ZCatalog.manage_options
def __init__(self): def __init__(self):
......
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