-
- Downloads
[FIX] web: click on m2o_avatar in editable/multiEdit list
The goal of this commit is to fix the behaviour of clicking on a field
with the "many2one_avatar" widget in a list view.
Expected behaviour when clicking on a field with the "many2one_avatar" widget:
- Editable list view: switch row to edit
- Multi_edit list view with selected record: switch row to edit
- Other case: open the many2one_avatar record in a form view
Before this commit, clicking on a field with the "many2one_avatar" widget always
opens the record in a form view.
After this commit, the expected behaviour when clicking on a field with
the "many2one_avatar" widget is respected.
closes odoo/odoo#101737
Signed-off-by:
Aaron Bohy (aab) <aab@odoo.com>
Showing
- addons/hr/static/tests/m2x_avatar_employee_tests.js 3 additions, 3 deletionsaddons/hr/static/tests/m2x_avatar_employee_tests.js
- addons/web/static/src/views/fields/many2one_avatar/many2one_avatar_field.xml 1 addition, 1 deletion...rc/views/fields/many2one_avatar/many2one_avatar_field.xml
- addons/web/static/tests/views/fields/many2one_avatar_field_tests.js 80 additions, 5 deletions.../static/tests/views/fields/many2one_avatar_field_tests.js
Loading
Please register or sign in to comment