diff --git a/addons/web/static/src/views/view_compiler.js b/addons/web/static/src/views/view_compiler.js index 46efb8f954c..0faf254a61c 100644 --- a/addons/web/static/src/views/view_compiler.js +++ b/addons/web/static/src/views/view_compiler.js @@ -252,6 +252,7 @@ export class ViewCompiler { const root = this.templates[key].cloneNode(true); const child = this.compileNode(root, params); const newRoot = createElement("t", [child]); + newRoot.setAttribute("t-translation", "off"); return newRoot; } diff --git a/addons/web/static/tests/views/form/form_compiler_tests.js b/addons/web/static/tests/views/form/form_compiler_tests.js index e3e9a4cbbb6..e46896b8f90 100644 --- a/addons/web/static/tests/views/form/form_compiler_tests.js +++ b/addons/web/static/tests/views/form/form_compiler_tests.js @@ -38,7 +38,7 @@ QUnit.module("Form Compiler", (hooks) => { QUnit.test("properly compile simple div", async (assert) => { const arch = /*xml*/ `
lol
`; const expected = /*xml*/ ` - +
lol
@@ -52,7 +52,7 @@ QUnit.module("Form Compiler", (hooks) => { async (assert) => { const arch = /*xml*/ `