Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Base

Entity: ir.actions.server

Compute Method: _compute_value_field_to_show

View 17.0 View 19.0
Inputs Method Outputs
  • update_field_id
  • update_field_id.ttype
  • evaluation_type
for action in self:
-             if action.update_field_id.ttype in ('one2many', 'many2one', 'many2many'):
+             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'
  • value_field_to_show

Back to entity