[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>
This commit is contained in:
Florimond Husquinet (fhu)
2020-08-21 07:34:27 +00:00
parent 379e4f0a72
commit f25b730b2f
+1 -1
View File
@@ -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',