Skip to content

Commit

Permalink
[FIX] wrong regex on qrcode.js lib
Browse files Browse the repository at this point in the history
  • Loading branch information
felipezago committed Jun 12, 2023
1 parent dc04b16 commit fbce027
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 76 deletions.
2 changes: 1 addition & 1 deletion l10n_br_pos/static/lib/qrcode.min.js

Large diffs are not rendered by default.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,12 @@ odoo.define("l10n_br_pos_cfe.OrderFooterReceipt", function (require) {
});
}

async _generateQRCode() {
_generateQRCode() {
// eslint-disable-next-line
return await new QRCode(document.getElementById("footer__qrcode"), {
return new QRCode(document.getElementById("footer__qrcode"), {
text: this.getTextForQRCode(),
width: 275,
height: 275,
colorDark: "#000000",
colorLight: "#ffffff",
// eslint-disable-next-line
correctLevel: QRCode.CorrectLevel.L,
});
Expand Down Expand Up @@ -86,14 +84,12 @@ odoo.define("l10n_br_pos_cfe.OrderFooterReceipt", function (require) {
.replaceAll("T", "");
}

async _generateQRCodeCancel() {
_generateQRCodeCancel() {
// eslint-disable-next-line
return await new QRCode(document.getElementById("footer__qrcode-cancel"), {
return new QRCode(document.getElementById("footer__qrcode-cancel"), {
text: this.getTextForQRCodeCancel(),
width: 275,
height: 275,
colorDark: "#000000",
colorLight: "#ffffff",
// eslint-disable-next-line
correctLevel: QRCode.CorrectLevel.L,
});
Expand Down
34 changes: 0 additions & 34 deletions l10n_br_pos_cfe/static/src/js/ReceiptScreen/ReceiptScreen.js

This file was deleted.

8 changes: 0 additions & 8 deletions l10n_br_pos_cfe/views/pos_template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@
<script
src="/l10n_br_pos_cfe/static/src/js/ReceiptScreen/SatOrderReceipt.js"
type="text/javascript"
/>
<script
src="/l10n_br_pos_cfe/static/src/js/ReceiptScreen/ReceiptScreen.js"
type="text/javascript"
/>
<script
src="/l10n_br_pos_cfe/static/src/js/OrderManagementScreen/ReprintReceiptScreen.js"
type="text/javascript"
/>
</xpath>

Expand Down

0 comments on commit fbce027

Please sign in to comment.