[IMP] point_of_sale: error handling blackbox

This commit remove the logic of error handling of the black boxes.
It'll be done in the specific module.

Part-of: odoo/odoo#133654
This commit is contained in:
rhe-odoo
2023-10-30 16:41:34 +00:00
parent bd5601cf59
commit 97f1f80da0
@@ -43,26 +43,6 @@ export function useErrorHandlers() {
error.data.debug ||
_t("The server encountered an error while receiving your order."),
});
} else if (error.code === 700) {
// Sweden Fiscal module errors
await popup.add(ErrorPopup, {
title: _t("Fiscal data module error"),
body:
error.data.error.status ||
_t("The fiscal data module encountered an error while receiving your order."),
});
} else if (error.code === 701) {
// Belgian Fiscal module errors
let bodyMessage = "";
if (error.error.errorCode) {
bodyMessage = "'" + error.error.errorCode + "': " + error.error.errorMessage;
} else {
bodyMessage = "Fiscal data module is not on.";
}
await popup.add(ErrorPopup, {
title: _t("Fiscal data module error"),
body: bodyMessage,
});
} else {
// ???
await popup.add(ErrorPopup, {