diff options
| author | Martin Trigaux <mat@odoo.com> | 2018-07-12 15:39:41 +0200 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2018-07-12 15:47:47 +0200 |
| commit | 476207e9a4558e7ca892dabfd49031f3bfb5916c (patch) | |
| tree | b4a075f31eca29b46e970b8cffa589cc2a388dd8 /addons | |
| parent | 189e0088e08109f0374d4b2518f8928b7010611c (diff) | |
[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.
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/point_of_sale/static/src/js/chrome.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
