From 51981ca9a573646734bc8c5b227cad1e11aa1ba1 Mon Sep 17 00:00:00 2001 From: Borruso Date: Thu, 30 Jan 2025 16:05:45 +0100 Subject: [PATCH] [ADD] fiscal_epos_print: aggiunta PR https://github.com/OCA/l10n-italy/pull/4590 --- .../static/src/js/Screens/PaymentScreen/PaymentScreen.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fiscal_epos_print/static/src/js/Screens/PaymentScreen/PaymentScreen.js b/fiscal_epos_print/static/src/js/Screens/PaymentScreen/PaymentScreen.js index ea3124867728..c3aad3400dd6 100644 --- a/fiscal_epos_print/static/src/js/Screens/PaymentScreen/PaymentScreen.js +++ b/fiscal_epos_print/static/src/js/Screens/PaymentScreen/PaymentScreen.js @@ -25,7 +25,11 @@ odoo.define("fiscal_epos_print.PaymentScreen", function (require) { } async sendToFP90Printer(order) { - if (this.env.pos.config.printer_ip && !order.is_to_invoice()) { + if ( + this.env.pos.config.printer_ip && + !order.is_to_invoice() && + order.orderlines.length > 0 + ) { // TODO self.chrome does not exists // this.chrome.loading_show(); // this.chrome.loading_message(_t('Connecting to the fiscal printer'));