summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/services
diff options
context:
space:
mode:
authorfja-odoo <fja@odoo.com>2019-06-11 12:26:55 +0000
committerfja-odoo <fja@odoo.com>2019-06-28 08:53:53 +0000
commit0d1407a715901ea06e9a7211c0e3dbe09fadb785 (patch)
treed7d3a6cf49a358298b8caa2da8cd025be017c309 /addons/web/static/src/js/services
parent90818fd083774988c331d741d34181a5af5ecd3a (diff)
[IMP] base, web, *: make KarmaError an except_orm
* = gamification, test_website, stock - KarmaError is now handled as a 400 exception. - test_website has been updated. - NO_POSTMORTEM is now clean it was referencing duplicates as most the exceptions inherit from except_orm. - serialize_exception from http.py has been moved to ir_http to take advantage of the odoo inheritance system. We can then extend ir_http serialize_exception method to add the KarmaError logic if and only if gamification is installed. Places where serialize_exception was previously used are updated. Part of https://github.com/odoo/odoo/pull/32132 task-1894820
Diffstat (limited to 'addons/web/static/src/js/services')
-rw-r--r--addons/web/static/src/js/services/crash_manager.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/services/crash_manager.js b/addons/web/static/src/js/services/crash_manager.js
index 8681a869aba..a8fafa4b897 100644
--- a/addons/web/static/src/js/services/crash_manager.js
+++ b/addons/web/static/src/js/services/crash_manager.js
@@ -17,6 +17,7 @@ var map_title ={
validation_error: _lt("Validation Error"),
except_orm: _lt("Global Business Error"),
access_denied: _lt("Access Denied"),
+ karma_error: _lt("Karma Error"),
};
/**