Skip to content

Commit

Permalink
[FIX] update html2canvas version
Browse files Browse the repository at this point in the history
  • Loading branch information
felipezago committed Jun 8, 2023
1 parent ea6d44b commit a40b51f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
20 changes: 20 additions & 0 deletions l10n_br_pos/static/lib/html2canvas.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions l10n_br_pos/views/pos_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
name="pos_l10n_br_assets_backend"
inherit_id="point_of_sale.assets"
>

<xpath expr="script[@src='/point_of_sale/static/lib/html2canvas.js']" position="replace">
<script src="/l10n_br_pos/static/lib/html2canvas.min.js" type="text/javascript" />
</xpath>

<xpath expr="." position="inside">

<script
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ odoo.define("l10n_br_pos_cfe.ReceiptScreen", function (require) {

async _printReceipt() {
console.log("🚀 ~ file: ReceiptScreen.js:45 ~ extends ~ _printReceipt ~ this.orderReceipt.el.outerHTML: ", this.orderReceipt.el.outerHTML)
console.log("🚀 ~ file: ReceiptScreen.js:46 ~ extends ~ _printReceipt ~ receipt jquery: ", $(".pos-receipt").outerHTML);
console.log("🚀 ~ file: ReceiptScreen.js:46 ~ extends ~ _printReceipt ~ receipt jquery: ", $(".pos-receipt")[0].outerHTML);
console.log("🚀 ~ file: ReceiptScreen.js:47 ~ extends ~ _printReceipt ~ user agent: ", window.navigator.userAgent);
return await ReceiptScreen.prototype._printReceipt.call(this);
}
Expand Down

0 comments on commit a40b51f

Please sign in to comment.