diff --git a/fiscal_epos_print/static/src/js/ChromeWidgets/EpsonFP81IIComponent.js b/fiscal_epos_print/static/src/js/ChromeWidgets/EpsonFP81IIComponent.js index 7128bf48459..1d2b9d6b05d 100644 --- a/fiscal_epos_print/static/src/js/ChromeWidgets/EpsonFP81IIComponent.js +++ b/fiscal_epos_print/static/src/js/ChromeWidgets/EpsonFP81IIComponent.js @@ -134,7 +134,7 @@ odoo.define("fiscal_epos_print.EpsonFP81IIComponent", function (require) { }); if (confirmed) { fp90.printFiscalReprintLast( - this.env.pos.cashier.fiscal_operator_number || "1" + this.env.pos.get_cashier() || "1" ); } else { // TODO not exist @@ -166,8 +166,8 @@ odoo.define("fiscal_epos_print.EpsonFP81IIComponent", function (require) { }); if (confirmed) { // Fp90.printFiscalReport(); - fp90.printFiscalXZReport( - this.env.pos.cashier.fiscal_operator_number || "1" + fp90.printFiscalReport( + this.env.pos.get_cashier() || "1" ); } else { // TODO not exist @@ -191,7 +191,7 @@ odoo.define("fiscal_epos_print.EpsonFP81IIComponent", function (require) { }); if (confirmed) { fp90.printFiscalXReport( - this.env.pos.cashier.fiscal_operator_number || "1" + this.env.pos.get_cashier() || "1" ); } else { // TODO not exist diff --git a/fiscal_epos_print/static/src/js/epson_epos_print.js b/fiscal_epos_print/static/src/js/epson_epos_print.js index b1f6911a2b0..8bb6e48d2d9 100644 --- a/fiscal_epos_print/static/src/js/epson_epos_print.js +++ b/fiscal_epos_print/static/src/js/epson_epos_print.js @@ -765,9 +765,6 @@ odoo.define("fiscal_epos_print.epson_epos_print", function (require) { console.log(xml); }, - /* - DON'T USE, this fiscal closure is forbid by Epson by default - */ printFiscalReport: function (f_op) { var xml = ""; xml += '';