Commit 2f5bd70d authored by Ayush Tiwari's avatar Ayush Tiwari

erp5_catalog: Compile PythonScript methods after migrating them

parent 151e96ee
...@@ -3010,6 +3010,7 @@ class CatalogMethodTemplateItem(ObjectTemplateItem): ...@@ -3010,6 +3010,7 @@ class CatalogMethodTemplateItem(ObjectTemplateItem):
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)':
method = changeObjectClass(catalog, method_id, script_class) method = changeObjectClass(catalog, method_id, script_class)
method._compile()
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