projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdcd76b
)
[IMP] cleaning
author
Fabien Pinckaers
<fp@openerp.com>
Sun, 5 Oct 2014 15:12:06 +0000
(17:12 +0200)
committer
Fabien Pinckaers
<fp@openerp.com>
Sun, 5 Oct 2014 15:12:06 +0000
(17:12 +0200)
addons/website_forum/controllers/main.py
patch
|
blob
|
history
diff --git
a/addons/website_forum/controllers/main.py
b/addons/website_forum/controllers/main.py
index
00311eb
..
d86230d
100644
(file)
--- a/
addons/website_forum/controllers/main.py
+++ b/
addons/website_forum/controllers/main.py
@@
-96,13
+96,8
@@
class WebsiteForum(http.Controller):
else:
filters = 'all'
- if post_type == 'link':
- domain += [('type', '=', 'link')]
- elif post_type == 'question':
- domain += [('type', '=', 'question')]
- elif post_type == 'discussion':
- domain += [('type', '=', 'discussion')]
-
+ if post_type:
+ domain += [('type', '=', post_type)]
if not sorting:
sorting = forum.default_order