diff --git a/addons/board/static/src/board_view.js b/addons/board/static/src/board_view.js index 8cddfc62631..431978a99b9 100644 --- a/addons/board/static/src/board_view.js +++ b/addons/board/static/src/board_view.js @@ -45,9 +45,10 @@ export class BoardArchParser extends XMLParser { isFolded, }; if (node.hasAttribute("domain")) { - action.domain = new Domain(node.getAttribute("domain")).toList(); + action.domain = new Domain(_.unescape(node.getAttribute("domain"))).toList(); // so it can be serialized when reexporting board xml - action.domain.toString = () => node.getAttribute("domain"); + // we unescape before re-escaping, to avoid double escaping due to subsequent layout change + action.domain.toString = () => _.escape(_.unescape(node.getAttribute("domain"))); } archInfo.columns[currentIndex].actions.push(action); break;