summaryrefslogtreecommitdiff
path: root/addons/gamification/models
diff options
context:
space:
mode:
authorfja-odoo <fja@odoo.com>2019-09-10 16:30:45 +0000
committerfja-odoo <fja@odoo.com>2019-09-12 13:49:02 +0000
commit424adb63e3ecd9ce6888c3246633a6414215f34d (patch)
treea32eb4add8daff0caf8a8ae1aecc7c138c85a965 /addons/gamification/models
parent5a273e74f0fff18df5ab6cb240c9e260be4bb7ff (diff)
[IMP] gamification, *: remove KarmaError
* = stock, test_website, web, website_forum, website_slides, base Replace KarmaError with AccessError and remove the related override made on crash_manager and ir_http. task-2069890 closes odoo/odoo#36655 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/gamification/models')
-rw-r--r--addons/gamification/models/gamification_karma_rank.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/addons/gamification/models/gamification_karma_rank.py b/addons/gamification/models/gamification_karma_rank.py
index 65b0d8d2177..fc50218148e 100644
--- a/addons/gamification/models/gamification_karma_rank.py
+++ b/addons/gamification/models/gamification_karma_rank.py
@@ -3,24 +3,6 @@
from odoo import api, fields, models, exceptions
from odoo.tools.translate import html_translate
-
-class KarmaError(exceptions.except_orm):
- """ Karma-related error, used for forum and posts. """
- def __init__(self, msg):
- super(KarmaError, self).__init__(msg)
-
-
-class Http(models.AbstractModel):
- _inherit = 'ir.http'
-
- @classmethod
- def serialize_exception(self, e):
- res = super(Http, self).serialize_exception(e)
- if isinstance(e, KarmaError):
- res["exception_type"] = "karma_error"
- return res
-
-
class KarmaRank(models.Model):
_name = 'gamification.karma.rank'
_description = 'Rank based on karma'