Widget for buttons with number in tree view
Idea
We have to create new widget for tree view, that will allow to wrap field in button, and on click, open desired action.
It would be nice to have ability to higlight the cell depending on field's value, but it seems that this part could be done via crnd_web_tree_colored_field
addon.
For example, we could add additional option to any tree view widget, that will describe what to do on click on cell. For example:
<field name="my_fields" options="{'on_click': {'action': 'action_name', 'type': 'action|object'}}"
In this example, action have to play same role as action of button (xmlid of action or name of method to execute) and type could be used to determine what to do: execute action specified by its XMLID in action
field, or run object's method with name specified in action
field.
Also, do not forget to change pointer to cursor if cell has action.