Skip to content

Commit 809e272

Browse files
committed
[FIX]report_to_printer: translations
closes #93 Signed-off-by: Filoquin adhoc <maq@adhoc.com.ar>
1 parent cfe2266 commit 809e272

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

base_report_to_printer_aeroo/static/src/js/qweb_action_manager.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/** @odoo-module */
2-
import {registry} from "@web/core/registry";
2+
import { _t } from "@web/core/l10n/translation";
3+
import { registry } from "@web/core/registry";
34

45
async function cupsReportActionHandler(action, options, env) {
56
if (action.report_type === "aeroo") {
@@ -17,9 +18,9 @@ async function cupsReportActionHandler(action, options, env) {
1718
action.data,
1819
]);
1920
if (result) {
20-
env.services.notification.add(env._t("Successfully sent to printer!"));
21+
env.services.notification.add(_t("Successfully sent to printer!"));
2122
} else {
22-
env.services.notification.add(env._t("Could not sent to printer!"));
23+
env.services.notification.add(_t("Could not sent to printer!"));
2324
}
2425
return true;
2526
}

0 commit comments

Comments
 (0)