-
- Downloads
[FIX] web: ensure bound function is not undefined for "checkDefinitionWriteAccess"
This commit fixes the property field tag components and sub-components by
ensuring that the ".bind" function of the component always receives a function.
As the "checkDefinitionWriteAccess" prop is optional, it could crash because
OWL would try to call ".bind" on an undefined function.
The new code will pass an empty function instead as a fallback.
(When it's not passed, it's never called, as it is in a display context and we
do not create tags, e.g: when showing the tags in a kanban view).
Task-3280847
closes odoo/odoo#119309
Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
Showing
- addons/web/static/src/views/fields/properties/properties_field.xml 1 addition, 1 deletion...b/static/src/views/fields/properties/properties_field.xml
- addons/web/static/src/views/fields/properties/property_definition.xml 1 addition, 1 deletion...tatic/src/views/fields/properties/property_definition.xml
- addons/web/static/src/views/fields/properties/property_value.xml 1 addition, 1 deletion...web/static/src/views/fields/properties/property_value.xml
Loading
Please register or sign in to comment