Skip to content

Commit

Permalink
[IMP] avoid variable shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
legalsylvain authored and huguesdk committed Nov 1, 2024
1 parent 32900a4 commit 0a50268
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pos_auto_invoice/static/src/js/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ odoo.define("pos_auto_invoice.models", function (require) {
const {Order} = require("point_of_sale.models");
const Registries = require("point_of_sale.Registries");

// eslint-disable-next-line no-shadow
const AutoInvoiceOrder = (Order) =>
// eslint-disable-next-line no-shadow
class AutoInvoiceOrder extends Order {
const AutoInvoiceOrder = (OriginalOrder) =>
class extends OriginalOrder {
constructor() {
super(...arguments);
if (this.pos.config.invoice_by_default) {
Expand Down

0 comments on commit 0a50268

Please sign in to comment.