-
- Downloads
[FIX] web: boolean_toggle widget ignores readonly attribute
The boolean_toggle should only be disabled when there is a readonly modifier, not when the view is in readonly mode. Cause of the issue The input was disabled but the `_onClick` was registered on the widget root node. Solution - Listen for clicks on the input element - Override the render method to set the disabled prop according to the readonly modifier. opw-2739468 closes odoo/odoo#91465 X-original-commit: 8021562b Signed-off-by:Michaël Mattiello <mcm@odoo.com> Signed-off-by:
Hubert Van De Walle <huvw@odoo.com>
Loading
Please register or sign in to comment