[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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user