diff --git a/addons/web_editor/static/src/js/backend/html_field.js b/addons/web_editor/static/src/js/backend/html_field.js index 35f166bcf28..fa053c9d4ce 100644 --- a/addons/web_editor/static/src/js/backend/html_field.js +++ b/addons/web_editor/static/src/js/backend/html_field.js @@ -141,7 +141,7 @@ export class HtmlField extends Component { // Ensure all external links are opened in a new tab. retargetLinks(this.readonlyElementRef.el); - const hasReadonlyModifiers = Boolean(this.props.record.activeFields[this.props.fieldName].modifiers.readonly); + const hasReadonlyModifiers = Boolean(this.props.record.isReadonly(this.props.fieldName)); if (!hasReadonlyModifiers) { const $el = $(this.readonlyElementRef.el); $el.off('.checklistBinding');