From 476207e9a4558e7ca892dabfd49031f3bfb5916c Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Thu, 12 Jul 2018 15:39:41 +0200 Subject: [PATCH] [FIX] point_of_sale: display traceback Since ffda02329595, the error is not 'OpenERP Server Error' but 'Odoo Server Error'. In case we change of name once again, check based on the name Avoid "traceback not available" error in PoS when there is a traceback. --- addons/point_of_sale/static/src/js/chrome.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/point_of_sale/static/src/js/chrome.js b/addons/point_of_sale/static/src/js/chrome.js index 7dfa306bcb6..8b46a4d17f4 100644 --- a/addons/point_of_sale/static/src/js/chrome.js +++ b/addons/point_of_sale/static/src/js/chrome.js @@ -612,7 +612,7 @@ var Chrome = PosBaseWidget.extend({ if(err.message === 'XmlHttpRequestError '){ title = 'Network Failure (XmlHttpRequestError)'; body = 'The Point of Sale could not be loaded due to a network problem.\n Please check your internet connection.'; - }else if(err.message === 'OpenERP Server Error'){ + }else if(err.code === 200){ title = err.data.message; body = err.data.debug; }