|
|
for action in self:
if action.evaluation_type == 'sequence':
action.value_field_to_show = 'sequence_id'
elif action.update_field_id.ttype in ('one2many', 'many2one', 'many2many'):
action.value_field_to_show = 'resource_ref'
elif action.update_field_id.ttype == 'selection':
action.value_field_to_show = 'selection_value'
elif action.update_field_id.ttype == 'boolean':
action.value_field_to_show = 'update_boolean_value'
elif action.update_field_id.ttype == 'html':
action.value_field_to_show = 'html_value'
else:
action.value_field_to_show = 'value'
|
|