Skip to content
Snippets Groups Projects
Commit bff88e4cf490 authored by Etienne Ferriere's avatar Etienne Ferriere
Browse files

Corrected a bug, occurring when a boolean field in read-only mode is clicked

in a tree view. In this case, the check box is not clickable and there is no use
to perform a double click.
parent ca03fa144d18
No related branches found
1 merge request!1Topic/13.0/issue 264
......@@ -2,6 +2,13 @@
History
*******
1.1
===
Corrected a bug, occurring when a boolean field in read-only mode is clicked
in a tree view. In this case, the check box is not clickable and there is no use
to perform a double click.
1.0
===
......
......@@ -21,7 +21,7 @@
{
"name": "Click fixes for editable lists",
"summary": "Click fixes for editable lists",
"version": "13.0.1.0.0",
"version": "13.0.1.1.0",
"category": "Hidden",
"author": "XCG Consulting",
"website": "http://odoo.consulting/",
......
......@@ -88,6 +88,7 @@
if (
clickedWidget !== undefined &&
clickedWidget !== null &&
!clickedWidget.attrs.modifiersValue.readonly &&
clickedWidget.formatType == 'boolean'
) {
var focusedElement = clickedWidget.getFocusableElement().get(0);
......@@ -91,7 +92,13 @@
clickedWidget.formatType == 'boolean'
) {
var focusedElement = clickedWidget.getFocusableElement().get(0);
focusedElement.click();
if (
focusedElement !== undefined &&
focusedElement !== null
) {
focusedElement.click();
}
}
this.click_twice_cell = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment