/** @odoo-module */
import { DiscountButton } from "@pos_discount/overrides/components/discount_button/discount_button";
import { ErrorPopup } from "@point_of_sale/app/errors/popups/error_popup";
import { patch } from "@web/core/utils/patch";
import { _t } from "@web/core/l10n/translation";
patch(DiscountButton.prototype, {
async apply_discount(pc) {
console.log("test")
await super.apply_discount(arguments);
},
});
this code didn't work
can anyone help me with this ?
thank you so much