diff --git a/addons/web/static/src/views/form/form_compiler.js b/addons/web/static/src/views/form/form_compiler.js index d872d128145..0316e82beb9 100644 --- a/addons/web/static/src/views/form/form_compiler.js +++ b/addons/web/static/src/views/form/form_compiler.js @@ -421,7 +421,7 @@ export class FormCompiler extends ViewCompiler { const noteBookAnchors = {}; if (el.hasAttribute("class")) { - noteBook.setAttribute("className", `"${el.getAttribute("class")}"`); + noteBook.setAttribute("className", toStringExpression(el.getAttribute("class"))); el.removeAttribute("class"); } @@ -437,11 +437,6 @@ export class FormCompiler extends ViewCompiler { const pageSlot = createElement("t"); append(noteBook, pageSlot); - if (el.hasAttribute("name")) { - noteBook.setAttribute("name", `"${el.getAttribute("name")}"`); - el.removeAttribute("name"); - } - const pageId = `page_${this.id++}`; const pageTitle = toStringExpression( child.getAttribute("string") || child.getAttribute("name") || "" diff --git a/addons/web/static/tests/views/form/form_view_tests.js b/addons/web/static/tests/views/form/form_view_tests.js index 79110a22a8d..4f89ec4c527 100644 --- a/addons/web/static/tests/views/form/form_view_tests.js +++ b/addons/web/static/tests/views/form/form_view_tests.js @@ -916,7 +916,7 @@ QUnit.module("Views", (hooks) => {
- +