diff --git a/base_report_to_printer/__manifest__.py b/base_report_to_printer/__manifest__.py index 980653b..04e5f63 100644 --- a/base_report_to_printer/__manifest__.py +++ b/base_report_to_printer/__manifest__.py @@ -7,7 +7,7 @@ { "name": "Report to printer", - "version": "16.0.1.1.5", + "version": "17.0.1.0.0", "category": "Generic Modules/Base", "author": "Agile Business Group & Domsense, Pegueroles SCP, NaN," " LasLabs, Camptocamp, Odoo Community Association (OCA)," 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 f3216cb..d9f9769 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,4 +1,5 @@ /** @odoo-module */ +import {_t} from "@web/core/l10n/translation"; import {registry} from "@web/core/registry"; async function cupsReportActionHandler(action, options, env) { @@ -17,9 +18,9 @@ async function cupsReportActionHandler(action, options, env) { action.data, ]); if (result) { - env.services.notification.add(env._t("Successfully sent to printer!")); + env.services.notification.add(_t("Successfully sent to printer!")); } else { - env.services.notification.add(env._t("Could not sent to printer!")); + env.services.notification.add(_t("Could not sent to printer!")); } return true; } diff --git a/base_report_to_printer/views/printing_job.xml b/base_report_to_printer/views/printing_job.xml index 6ba02f4..1fd513f 100644 --- a/base_report_to_printer/views/printing_job.xml +++ b/base_report_to_printer/views/printing_job.xml @@ -4,13 +4,13 @@ printing.job.form (in base_report_to_printer) printing.job -
+
diff --git a/base_report_to_printer/views/printing_printer.xml b/base_report_to_printer/views/printing_printer.xml index d64a208..4424c84 100644 --- a/base_report_to_printer/views/printing_printer.xml +++ b/base_report_to_printer/views/printing_printer.xml @@ -11,19 +11,19 @@ printing.printer.form (in base_report_to_printer) printing.printer - +