Skip to Content
Menu
This question has been flagged
1091 Views

Task: create an add-on for an ode, when installed, it is possible when declaring an action or tree view with context = {'create_dropdown_field': 'some_types_field'} or

options <tree ... create_dropdown_field = 'some_type_field> ... </tree> sets the field in the model where a list of these options is stored.

When clicking on an option, the create function should be called with the context {"default_some_types_field": your_choice}

Avatar
Discard