mirror of
https://github.com/OCA/report-print-send.git
synced 2025-02-16 07:11:31 +02:00
[MIG] base_report_to_printer: Migration to 17.0
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user