Index: ERP5/Document/BusinessTemplate.py =================================================================== --- ERP5/Document/BusinessTemplate.py (copie de travail) +++ ERP5/Document/BusinessTemplate.py (copie de travail) @@ -179,6 +179,8 @@ 'connection_id for Z SQL Method %s is invalid, using %s' % ( method.getId(), sql_connection_list[0])) method.connection_id = sql_connection_list[0] + # computes the template + method.template = method.template_class(method.src) class BusinessTemplateArchive: """ @@ -452,6 +454,7 @@ 'workflow_history', '__ac_local_roles__' ] attr_list += { 'Script (Python)': ('_lazy_compilation', 'Python_magic'), + 'Z SQL Method': ('template',), }.get(meta_type, ()) for attr in attr_list: