summaryrefslogtreecommitdiff
path: root/addons/website_customer
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2019-04-23 07:07:57 +0000
committerSébastien Theys <seb@odoo.com>2019-04-23 07:07:57 +0000
commitaf02d1da58db9805eb63d495c8ff1eb8e5d6f902 (patch)
tree87fddd7fc466945c513907da4232eb08d109661a /addons/website_customer
parentb09d20ab29a13e1b6c851b67beb81bcf0dbd7d42 (diff)
[FIX] website_forum: remove unnecessary slow code
Since commit 56645335b7bae0415242ec51193e493119a58879 the subtype `gamification.mt_badge_granted` is not used anymore. Therefore this method will never return anything. However, it is very costly on performance, and it is run on every page of the forum! The problematic performance point is that `needaction` is a computed field, which implies all existing `mail.message` having the target subtype have to be fetched to compute this field, which obviously does not scale well at all. closes odoo/odoo#32861 Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
Diffstat (limited to 'addons/website_customer')
0 files changed, 0 insertions, 0 deletions