summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/fields/relational_fields.js
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2017-12-26 14:49:21 +0100
committerNicolas Martinelli <nim-odoo@users.noreply.github.com>2018-01-03 08:39:28 +0100
commit864ca5075f4b1054f984cd4a85307ff0c62091b0 (patch)
tree45c61debe0f4be4074cfce3b4a5a128c50319d3a /addons/web/static/src/js/fields/relational_fields.js
parent3fe94628f61f89b974d10576fea77b2dbdcd085d (diff)
[FIX] authorize: add error-checking
Previous to this commit, if a user hadn't properly set up his Authorize.net credentials, when getting a response from Authorize.net's servers, we would expect some attributes to be in the response's body, but this is not the case if the credentials are wrong, thus we would have an unexpected error like "NoneType object has no attribute text" which is only a sympton of the real error (bad credentials and no error-checking). This is fixed by checking if the response body contains an error message, if it is the case we raise an UserError with the error code and the error message (which is only shown if debug mode is activated). OPW 788261
Diffstat (limited to 'addons/web/static/src/js/fields/relational_fields.js')
0 files changed, 0 insertions, 0 deletions