Skip to content

Commit 9fe2b84

Browse files
eLBatiOCA-git-bot
authored andcommitted
[IMP] l10n_it_fiscal_epos_print: show XML in javascript console, whene in debug assets mode
1 parent fd7106e commit 9fe2b84

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

l10n_it_fiscal_epos_print/static/src/js/epson_epos_print.esm.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,10 @@ export class EpsonEposPrint {
326326
xml += `<endFiscalReceipt operator="${fiscalOperator}" /></printerFiscalReceipt>`;
327327

328328
this.order.fp_xml = xml;
329+
if (odoo.debug) {
330+
// eslint-disable-next-line no-undef
331+
console.log("Fiscal Printer XML:", xml);
332+
}
329333
this.fiscalPrinter.send(this.url, xml, 0, "sync");
330334
// Debug: xml
331335
}

0 commit comments

Comments
 (0)