summaryrefslogtreecommitdiff
path: root/addons/iap
diff options
context:
space:
mode:
authorFlorimond Husquinet (fhu) <fhu@odoo.com>2020-08-21 07:25:21 +0000
committerFlorimond Husquinet (fhu) <fhu@odoo.com>2020-08-21 07:34:27 +0000
commitf25b730b2f548616d62cf8f30907103116e8c0fd (patch)
tree76edf94882860d4e875565ba3dcc923c2d0c9990 /addons/iap
parent379e4f0a72bc95798068735c0c7a8662d3a48b3b (diff)
[FIX] iap: take into account the new path of InsufficientCreditError
in the `crash_manager.js` of the iap module. closes odoo/odoo#56262 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/iap')
-rw-r--r--addons/iap/static/src/js/crash_manager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/iap/static/src/js/crash_manager.js b/addons/iap/static/src/js/crash_manager.js
index 6ec0647b625..11324fb68a2 100644
--- a/addons/iap/static/src/js/crash_manager.js
+++ b/addons/iap/static/src/js/crash_manager.js
@@ -27,7 +27,7 @@ CrashManager.include({
*/
rpc_error: function (error) {
var self = this;
- if (error.data.name === "odoo.addons.iap.models.iap.InsufficientCreditError") {
+ if (error.data.name === "odoo.addons.iap.tools.iap_tools.InsufficientCreditError") {
var error_data = JSON.parse(error.data.message);
ajax.jsonRpc('/web/dataset/call_kw', 'call', {
model: 'iap.account',