-
- Downloads
[IMP] web: allow custom row click action
This commit adds a generic `action="action_some_method"` attribute to the list view to allow for a custom action when clicking on a (record) row. This feature mirrors the existing Kanban "action" attribute. Note that in cases where the action method does not return a valid action then the default action `act_window_close` will be called instead (same behavior as the kanban view and buttons in general). Supports "magic link" part of Task: 2882539 Part-of: odoo/odoo#97109
Showing
- addons/web/static/src/views/list/list_arch_parser.js 5 additions, 0 deletionsaddons/web/static/src/views/list/list_arch_parser.js
- addons/web/static/src/views/list/list_controller.js 17 additions, 2 deletionsaddons/web/static/src/views/list/list_controller.js
- addons/web/static/tests/views/list_view_tests.js 46 additions, 0 deletionsaddons/web/static/tests/views/list_view_tests.js
- odoo/addons/base/rng/tree_view.rng 2 additions, 0 deletionsodoo/addons/base/rng/tree_view.rng
Loading
Please register or sign in to comment