[IMP] website_forum: performance improvements
authorMartin Trigaux <mat@openerp.com>
Tue, 2 Sep 2014 14:24:26 +0000 (16:24 +0200)
committerMartin Trigaux <mat@openerp.com>
Wed, 3 Sep 2014 06:44:48 +0000 (08:44 +0200)
commit78fa86193612e6831453bba003a8045a7d3b7c6c
tree69eb3f363789b5cfafbabaa39e80ccec6c8e344a
parent8d23a3a86c3fc09e0b9f6275641639106657b2e7
[IMP] website_forum: performance improvements

- avoid to browse on every question/answer, only the 20 most recent ones (need to manually update the view to see the real number of q&a)
- do not render hidden tabs (leakage of information and useless rendering)
- add related fields to speed up vote search (need to be stored to be efficient)
addons/website_forum/controllers/main.py
addons/website_forum/models/forum.py
addons/website_forum/views/website_forum.xml