diff --git a/addons/point_of_sale/static/src/js/Screens/TicketScreen/ControlButtons/InvoiceButton.js b/addons/point_of_sale/static/src/js/Screens/TicketScreen/ControlButtons/InvoiceButton.js index 89e7860006a..3883718bd86 100644 --- a/addons/point_of_sale/static/src/js/Screens/TicketScreen/ControlButtons/InvoiceButton.js +++ b/addons/point_of_sale/static/src/js/Screens/TicketScreen/ControlButtons/InvoiceButton.js @@ -117,6 +117,7 @@ odoo.define('point_of_sale.InvoiceButton', function (require) { } async _onClick() { try { + this.el.style.pointerEvents = 'none'; await this._invoiceOrder(); } catch (error) { if (isConnectionError(error)) { @@ -127,6 +128,8 @@ odoo.define('point_of_sale.InvoiceButton', function (require) { } else { throw error; } + } finally { + this.el.style.pointerEvents = 'auto'; } } }