Click fixes for editable lists
This module fixes some clicking issues in editable lists. The main goal is to allow seamless clicks onto check-boxes added into editable lists.
The default Odoo implementation requires the user to click twice per check-box: one click that focuses the row but that is not forwarded to the check-box; then another click to actually check / uncheck the check-box.
One might think an easy solution would be for click events to bubble up from the row to the input field behind it, but it's much trickier due to the current editable list architecture. -> The solution used here is to simply send a new click event when a row is focused following a click on a check-box.
To make this work well, a couple other fixes have also been applied:
- Do not focus read-only fields. This fix has been backported to Odoo 10 (as
part of rev
3e0d7c91672b53717874bcaed6bdb6278bd01ad1
, which is a much larger commit in itself) but not to Odoo 8. - Fix the focus when clicking on an input field instead of the cell around it.