-
- Downloads
[FIX] web: kanban quick create properly disabled
when grouped on field types for which it isn't supported. Rev. 42e1efde disabled the quick create feature when the view is grouped by date(time) fields. However, it hasn't been correctly forwardported to 11.0 (with the new views). Indeed, the check was done only once, at the initilization of the view. So if the user selected another field to group by afterwards, the quick create feature wasn't enabled/disabled accordingly. Moreover, we didn't check if it was available when the user clicked on CREATE in the control panel. So even if it wasn't (and thus if there were no '+' icon in the columns), when the user clicked on CREATE, the quick create widget was inserted in the first column. This rev. fixes both issues. Task 1878254 closes odoo/odoo#27867
Showing
- addons/web/static/src/js/views/abstract_view.js 32 additions, 0 deletionsaddons/web/static/src/js/views/abstract_view.js
- addons/web/static/src/js/views/kanban/kanban_controller.js 6 additions, 2 deletionsaddons/web/static/src/js/views/kanban/kanban_controller.js
- addons/web/static/src/js/views/kanban/kanban_renderer.js 6 additions, 0 deletionsaddons/web/static/src/js/views/kanban/kanban_renderer.js
- addons/web/static/src/js/views/kanban/kanban_view.js 4 additions, 7 deletionsaddons/web/static/src/js/views/kanban/kanban_view.js
- addons/web/static/tests/views/kanban_tests.js 76 additions, 1 deletionaddons/web/static/tests/views/kanban_tests.js
- doc/reference/views.rst 1 addition, 1 deletiondoc/reference/views.rst
Loading
Please register or sign in to comment