hello
i want to change the behaivior of the function in Pos
inside
odoo/addons/point_of_sale/static/src/js/Misc/AbstractReceiptScreen.js
the function logic is
async _printWeb() {
try {
window.print();
return true;
} catch (_err) {
await this.showPopup('ErrorPopup', {
title: this.env._t('Printing is not supported on some browsers'),
body: this.env._t(
'Printing is not supported on some browsers due to no default printing protocol ' +
'is available. It is possible to print your tickets by making use of an IoT Box.'
),
});
return false;
}
}
if this is can be done using some sort of inheritance or anything
thank you in advance