Skip to content
Snippets Groups Projects
Commit 7d526002 authored by Aurélien Warnon's avatar Aurélien Warnon
Browse files

[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: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent 6993d3e3
No related branches found
No related tags found
Loading
Loading
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