The generic action can now be added without a js error.
@@ -1208,7 +1208,7 @@ class SubWorkflow(Action):
class Generic(Action):
- PARAM_FIELDS = ('xml', 'credentials')
+ PARAM_FIELDS = ('xml', 'credentials', 'sla', 'credentials')
node_type = 'generic'
xml = models.TextField(default='', verbose_name=_t('XML of the custom action'),
@@ -681,7 +681,9 @@ $.extend(GenericModel.prototype, {
node_type: 'generic',
workflow: 0,
xml: '',
- child_links: []
+ child_links: [],
+ data: getDefaultData(),
+ initialize: initializeNodeData
});
function nodeModelChooser(node_type) {