diff --git a/addons/web/static/src/webclient/actions/action_service.js b/addons/web/static/src/webclient/actions/action_service.js index ea01ced3b31802a069d034dd6058eb216b3e318a..0c0d963f44ee2f44d2906c26287021a3ad66f075 100644 --- a/addons/web/static/src/webclient/actions/action_service.js +++ b/addons/web/static/src/webclient/actions/action_service.js @@ -201,16 +201,11 @@ function makeActionManager(env) { // do nothing, the action might simply not be serializable } action.context = makeContext([context, action.context], env.services.user.context); - if (action.domain) { - const domain = action.domain || []; - action.domain = - typeof domain === "string" - ? evaluateExpr( - domain, - Object.assign({}, env.services.user.context, action.context) - ) - : domain; - } + const domain = action.domain || []; + action.domain = + typeof domain === "string" + ? evaluateExpr(domain, Object.assign({}, env.services.user.context, action.context)) + : domain; if (action.help) { const htmlHelp = document.createElement("div"); htmlHelp.innerHTML = action.help;