From f25b730b2f548616d62cf8f30907103116e8c0fd Mon Sep 17 00:00:00 2001 From: "Florimond Husquinet (fhu)" Date: Fri, 21 Aug 2020 07:25:21 +0000 Subject: [PATCH] [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) --- addons/iap/static/src/js/crash_manager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',