[FIX] Runbot error, try new cron code, plus @yajo review cleanup

This commit is contained in:
Graeme Gellatly
2017-12-06 22:21:51 +13:00
parent cc8e61d558
commit 506debb541
4 changed files with 6 additions and 29 deletions

View File

@@ -31,10 +31,10 @@ odoo.define('base_report_to_printer.print', function (require) {
context: action_val.context || {}
}).then(function () {
self.do_notify(_t('Report'),
_t('Document sent to the printer ') + print_action.printer_name);
_.str.sprintf(_t('Document sent to the printer %s'), print_action.printer_name));
}).fail(function () {
self.do_notify(_t('Report'),
_t('Error when sending the document to the printer ') + print_action.printer_name);
_.str.sprintf(_t('Error when sending the document to the printer '), print_action.printer_name));
});
} else {