Commit 8e97b966 authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Use changeObjectClass for converting PythonScript to ERP5 object...

erp5_catalog: Use changeObjectClass for converting PythonScript to ERP5 object while BT5 installation
parent c2cb24fb
...@@ -3009,8 +3009,7 @@ class CatalogMethodTemplateItem(ObjectTemplateItem): ...@@ -3009,8 +3009,7 @@ class CatalogMethodTemplateItem(ObjectTemplateItem):
if method.meta_type == 'Z SQL Method': if method.meta_type == 'Z SQL Method':
method = changeObjectClass(catalog, method_id, sql_class) method = changeObjectClass(catalog, method_id, sql_class)
if method.meta_type == 'Script (Python)': if method.meta_type == 'Script (Python)':
self.convertPythonScriptToERP5PythonScript(method) method = changeObjectClass(catalog, method_id, script_class)
method = self.unrestrictedResolveValue(portal, path)
new_obj = method.aq_base new_obj = method.aq_base
self._objects[path] = new_obj self._objects[path] = new_obj
......
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