From fcdc59d788a231da731f7fad80ccdde2f6d956ab Mon Sep 17 00:00:00 2001 From: David Date: Tue, 19 Nov 2024 17:53:35 +0100 Subject: [PATCH] [FIX] base_report_to_printer: wrong imports Some details where not correctly in the fw of b9e968510c25a23070bf290c166f1bef3491784d --- .../static/src/js/qweb_action_manager.esm.js | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/base_report_to_printer/static/src/js/qweb_action_manager.esm.js b/base_report_to_printer/static/src/js/qweb_action_manager.esm.js index 2d110dc74d7..85faed5c593 100644 --- a/base_report_to_printer/static/src/js/qweb_action_manager.esm.js +++ b/base_report_to_printer/static/src/js/qweb_action_manager.esm.js @@ -1,6 +1,6 @@ /** @odoo-module */ -import {Markup} from "web.utils"; import {_t} from "@web/core/l10n/translation"; +import {markup} from "@odoo/owl"; import {registry} from "@web/core/registry"; async function cupsReportActionHandler(action, options, env) { @@ -38,24 +38,23 @@ async function cupsReportActionHandler(action, options, env) { // Just so the translation engine detects them as it doesn't do it inside // template strings const terms = { - the_report: env._t("The report"), - couldnt_be_printed: env._t( + the_report: _t("The report"), + couldnt_be_printed: _t( "couldn't be printed. Click on the button below to download it" ), - issue_on: env._t("Issue on"), + issue_on: _t("Issue on"), }; const notificationRemove = env.services.notification.add( - Markup( + markup( `

${terms.the_report} ${action.name} ${terms.couldnt_be_printed}

` ), { title: `${terms.issue_on} ${print_action.printer_name}`, type: "warning", sticky: true, - messageIsHtml: true, buttons: [ { - name: env._t("Print"), + name: _t("Print"), primary: true, icon: "fa-print", onClick: async () => {