Skip to content

Commit

Permalink
[REF] pos_membership_extension : use correct syntax to overload PoS J…
Browse files Browse the repository at this point in the history
…S model. So remove eslint disabling
  • Loading branch information
legalsylvain committed Apr 22, 2024
1 parent b2b0b30 commit aa2015f
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions pos_membership_extension/static/src/js/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@ odoo.define("pos_membership_extension.models", function (require) {

var _t = core._t;

// eslint-disable-next-line no-shadow
const OverloadProduct = (Product) =>
// eslint-disable-next-line no-shadow
class OverloadProduct extends Product {
const OverloadProduct = (OriginalProduct) =>
class extends OriginalProduct {
/**
* Return if it's allowed to sell the product to the partner.
*
Expand All @@ -39,10 +37,8 @@ odoo.define("pos_membership_extension.models", function (require) {
};
Registries.Model.extend(Product, OverloadProduct);

// eslint-disable-next-line no-shadow
const OverloadOrder = (Order) =>
// eslint-disable-next-line no-shadow
class OverloadOrder extends Order {
const OverloadOrder = (OriginalOrder) =>
class extends OriginalOrder {
/**
* Overloaded function.
* Check if the product of the order lines are allowed by the
Expand Down

0 comments on commit aa2015f

Please sign in to comment.