diff --git a/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js b/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js index 8ca902e67f9..4842d935a21 100644 --- a/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js +++ b/addons/web_editor/static/lib/odoo-editor/src/OdooEditor.js @@ -467,7 +467,9 @@ export class OdooEditor extends EventTarget { } } } - this.dispatchEvent(new Event('observerApply')); + if (records.length) { + this.dispatchEvent(new Event('observerApply')); + } } filterMutationRecords(records) { // Save the first attribute in a cache to compare only the first