summaryrefslogtreecommitdiff
path: root/addons/pos_epson_printer
diff options
context:
space:
mode:
authorAntoine Prieels <anp@odoo.com>2020-09-01 14:49:24 +0000
committerAntoine Prieels <anp@odoo.com>2020-09-01 14:49:24 +0000
commit827c8d0b257d027504df1acf469d6c4761603550 (patch)
tree274f36621615db2d701c02071c3a68299ee003ae /addons/pos_epson_printer
parent4b48109bb414b4768712d0e5d8706fd0088bef4b (diff)
[FIX] pos_epson_printer: Error on successful print
The return value of `send_printing_job` was not correcty formated for the ePOS printers so the POS showed an error even though the receipt was correctly printed. closes odoo/odoo#56899 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Diffstat (limited to 'addons/pos_epson_printer')
-rw-r--r--addons/pos_epson_printer/static/src/js/printers.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/pos_epson_printer/static/src/js/printers.js b/addons/pos_epson_printer/static/src/js/printers.js
index 41ce4d6f0a0..c396c611fd7 100644
--- a/addons/pos_epson_printer/static/src/js/printers.js
+++ b/addons/pos_epson_printer/static/src/js/printers.js
@@ -78,7 +78,9 @@ var EpsonPrinter = core.Class.extend(PrinterMixin, {
send_printing_job: function () {
if (this.printer) {
this.printer.send();
- return true;
+ return {
+ result: true
+ };
}
},