From 97f1f80da033a51e8537b9f460b507afabf7d0fa Mon Sep 17 00:00:00 2001 From: rhe-odoo Date: Tue, 5 Sep 2023 15:18:46 +0200 Subject: [PATCH] [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 --- .../static/src/app/utils/hooks.js | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/addons/point_of_sale/static/src/app/utils/hooks.js b/addons/point_of_sale/static/src/app/utils/hooks.js index b94c5112183..42323d05f3f 100644 --- a/addons/point_of_sale/static/src/app/utils/hooks.js +++ b/addons/point_of_sale/static/src/app/utils/hooks.js @@ -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, {