diff options
Diffstat (limited to 'addons/pos_restaurant/static/src/js')
| -rw-r--r-- | addons/pos_restaurant/static/src/js/Screens/TipScreen.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/pos_restaurant/static/src/js/Screens/TipScreen.js b/addons/pos_restaurant/static/src/js/Screens/TipScreen.js index e80a157bb54..bb6e17a21bb 100644 --- a/addons/pos_restaurant/static/src/js/Screens/TipScreen.js +++ b/addons/pos_restaurant/static/src/js/Screens/TipScreen.js @@ -136,8 +136,7 @@ odoo.define('pos_restaurant.TipScreen', function (require) { async _printWeb(receipt) { try { $(this.el).find('.pos-receipt-container').html(receipt); - const isPrinted = document.execCommand('print', false, null); - if (!isPrinted) window.print(); + window.print(); } catch (err) { await this.showPopup('ErrorPopup', { title: this.env._t('Printing is not supported on some browsers'), |
