Commit Graph

187 Commits

Author SHA1 Message Date
Nicolas Lempereur 3f1e99c4b9 [FIX] web, website_form_website_sale: form and login
Partial backport of commit 093e39bd.

When a flow is stopped by a login redirection, some data (e.g: a product
comment being posted) could be lost. This commit in this case convert
POST request data to GET data (so it is possible to add a GET controller
which after login will terminate the action).

closes #7100
opw-642350
2015-06-17 11:33:20 +02:00
Olivier Dony 64da3c5e17 [FIX] website_forum: hide questions coming from abusive users
When a user's karma is driven to a negative value
due to repeated abuse or the posting of spam,
automatically hide all their posts from public
view.
This will reduce the effectiveness of their abuse,
and simplify moderation and cleanup.
2015-03-09 14:41:14 +01:00
Olivier Dony 809af8ba09 [FIX] website_forum: no limit on user post list for moderators
The limit on the list of answers and questions posted by
a given forum user is purposely limited to reduce the
performance penalty for displaying them all.
(see 78fa861936)

However seeing the full list is useful for forum moderators
(e.g. when tracking down abuse), and there are only a few
such users with high karma, so enabling it for them is
negligible performance-wise.

Fixes #3955
2015-01-19 17:34:59 +01:00
Christophe Matthieu 6471fa6ddb [FIX] website_sale: Discussion not working on product and gives '500: Internal Server Error' if public user try to comment on product (without login). Need to redirect to the login page (all user who want to write a comment have already buy the product and can use the portal login) 2015-01-05 13:30:36 +01:00
Jeremy Kersten ad1ca233ca [FIX] website_forum: fix error 500 when editing an answer
Was caused by missing tags.
Also fix also backwards-compatibility for textext selection method.
2014-12-01 20:02:06 +01:00
Olivier Dony 0ddee644d6 [FIX] website_forum: allow moderators to see misbehaving user profiles
This is to help forum moderators to fight against
spammers. It was previously difficult as the spammer
profile became unreachable as soon as their karma
went below 1, even if they had other questions
or answers still published.
2014-12-01 19:30:57 +01:00
Jeremy Kersten 0313218123 [FIX] website_forum: Forum, use old API in v8. forum was not a browse record, so we need to re-browse. Tags: Force to delete tag. Before old tag deleted was not removed from relation, Now we use a 6 to force the update, followed by 0 to create. 2014-11-26 17:44:52 +01:00
Jeremy Kersten 3288f07eaa [FIX] website_forum:
Use if_dom_contains to check if we need to load js
   Fix bug where _tag_to_write_vals was called like old API but model converter was new api
   Move IsKarmaValid and Load CKE only in website_forum context
2014-11-18 14:31:36 +01:00
Jeremy Kersten fc329b6eeb [FIX] website_forum: use common method to compute tags for orm 2014-11-18 11:27:09 +01:00
Jeremy Kersten 90b88e33cb [FIX] website_forum - replace texttext by select2 for the tags fields 2014-11-17 16:50:34 +01:00
Olivier Dony 6c55dab261 [FIX] forum: closing spam/offensive questions should give author karma penalty
This is a partial patch for issue #3460, pending more
improvements and refinements in master.

Currently the karma penalty is hardcoded to 5*downvote penalty,
which may or may not be sufficient to prevent posting, depending
on the other karma levels.
2014-11-05 17:09:10 +01:00
ssh-odoo ef8099424d [IMP] [TEST] website_forum: security fixes + tests
- fixed voting, karma check could be avoided
- fixed posting comments, now correctly checking karma (not for
notifications)
- fixed bootstraping of users, now not allowed to ask questions by default;
added validation email that gives the first karma points required to
participate
- added tests
2014-10-23 11:36:03 +02:00
Olivier Dony b9953acb0f [FIX] website_forum: respect karma when posting questions/answers/comments + more user-friendly errors
While posting new questions and answers the check
for karma limit was bypassed because it was using
super-user mode: use regular user instead.
Also improve the user feedback when karma level is
too low to perform some actions: post comment,
post question, post answer.
The usability in these cases still needs to be
improved.
2014-10-21 01:23:28 +02:00
Martin Trigaux 78fa861936 [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)
2014-09-03 08:44:48 +02:00
Thibault Delavallée 4a731b2b22 [FIX] website_forum: fixed (un)publish management on the profile. Partners are now also published by default. Better protection of displayed profile: only publis profiles with karma >= 1 are displayed on the forum, to avoid allowing external users to browse the user lists. Some cleaning / improvements in the bio edit form that was a bit buggy. 2014-08-28 12:42:09 +02:00
Thibault Delavallée 1e402cb084 [FIX] website_forum: fixed comment unlink action :
- fixed call to a wrong method
- fixed button display, now based on the standard way of managing karma (popup when
not having the required karma)
- fixed button display karma computation
- some css tweaking for this button
2014-08-27 11:41:51 +02:00
Thibault Delavallée 93e7a6283f [FIX] website_forum: second part of the fix introduced at revision fd5516ade8. Wrong commit was added to 8.0, missing code cleaning. 2014-08-26 14:12:11 +02:00
Gaurav Panchal fd5516ade8 [FIX] website_forum: issue in biography (unnecessary tags added by editor) + menu control (Users / My Profile) 2014-08-26 13:25:31 +02:00
Thibault Delavallée 10741e2799 [FIX] website_forum: fixed setting an answer as valid / invalid. The change
in the behavior of browse records due to the new API introduced a wrong
behavior, now fixed.
2014-08-26 13:25:31 +02:00
Jay Patel f274572c30 [FIX] website_forum: when a user posting a new answer or question does not have a valid email address, redirect to the user's profile instead of crashing when trying to send notifications. 2014-08-05 10:05:49 +02:00
Olivier Dony ef53a831c6 [MERGE] Forward-port saas-5 up to a5f7891 2014-07-23 16:58:00 +02:00
Denis Ledoux a5f7891b68 [MERGE] forward port of branch saas-4 up to 5739aebfb1 2014-07-23 13:18:30 +02:00
Bhumi Patel a5efa93b93 [FIX] website_forum: prevent crash when no country
Closes #1171
2014-07-18 09:38:39 +02:00
Thibault Delavallée c959f49179 [FIX] website_forum: fixed controller creating a new forum tha was crashing. 2014-07-15 12:13:06 +02:00
Thibault Delavallée 2a4ec367a9 [IMP] [FIX] website_forum: cleaned and improved the management of available actions based on the user's karma. The karma levels are now stored on the forum itself, allowing customization. The various check of karma are done at model level and not at controller level anymore, leading to a more secure and easier to inherit behavior. 2014-07-01 10:29:37 +02:00
Olivier Dony 668b8c2b2d [FIX] Forward-port of saas-5 up to 0d330ca 2014-06-25 18:58:19 +02:00
Olivier Dony 0d330ca25c [MERGE] Forward-port of saas-4 up to fa739ac 2014-06-25 18:44:51 +02:00
Jeremy Kersten 01f70115cd [FIX] Forum - Redirect permanently to the question, if post_id in url is not an answer. 2014-06-25 13:45:03 +02:00
Jeremy Kersten c1378cc199 [FIX] Forum / Sitemap - Restrcit the domain from controller, else the sitemap fetch response without the question 2014-06-25 13:41:35 +02:00
Christophe Simonis eef6330c55 [MERGE] forward port of branch saas-5 up to adf07a9 2014-06-19 16:23:32 +02:00
Christophe Simonis adf07a9490 [MERGE] forward port of branch saas-4 up to 5087612 2014-06-19 16:13:35 +02:00
Denis Ledoux eb42616b98 [FIX] website_forum: tag pager url
When browsing a tag, the pager url was not matching the route of the controller
2014-06-13 18:07:57 +02:00
Olivier Dony 0f01df42ea [MERGE] Forward-port saas-5 up to f15cbd6 2014-06-12 18:59:15 +02:00
Thibault Delavallée a3cfed1809 [IMP] website_forum: added management and support of private profile (unpublished partners). 2014-06-12 16:33:33 +02:00
Thibault Delavallée 907862655a [FIX] website_forum: people having enough karma can accepts answers on every question, not just their own. Fixed the condition computation. 2014-06-11 13:56:23 +02:00
Olivier Dony 04211015fc [MERGE] Forward-port of latest saas-4 fixes, up to 0452851 2014-05-27 20:49:49 +02:00
Martin Trigaux dcb4b610e2 [FIX] website_forum: display the users as a table in block of 3 cols 2014-05-26 13:37:58 +02:00
Denis Ledoux 1e84f72899 [FIX] website_forum: do not check if the user has the group comment
This access rights checks is meaningful for website_blog only
2014-05-26 11:49:26 +02:00
Christophe Simonis a756b82372 [MERGE] forward port of branch saas-4 up to revid bb26dea 2014-05-20 20:19:55 +02:00
Martin Trigaux c786ceb760 [FIX] the badges should be ordered by most popular first 2014-05-20 14:32:21 +02:00
Olivier Dony c1a0d23422 [FIX] website_forum: country_id is an integer field 2014-05-20 10:24:33 +02:00
Thibault Delavallée 0828545090 [IMP] website_forum: display only the 100 last
activities + order by date desc
2014-05-19 14:40:24 +02:00
Thibault Delavallée e7ea924697 [FIX] website_forum: do not display closed of offensive questions in searches.
Users can still go on the question using their direct link.
2014-05-19 13:50:51 +02:00
Martin Trigaux a2edf9520b [ADD] website_forum: adding the 'Newest' filter on the forum to sort by create date 2014-05-15 11:23:11 +02:00
Olivier Dony 230a9c34b1 [FIX] website_forum: fix controllers losing paging and query params, allow to see own profile even without karma, add avatar controller to make the images public 2014-05-14 16:32:54 +02:00
Fabien Meghazi 0d49bbb8e0 [MERGE] upstream 2014-05-14 09:27:20 +02:00
Xavier Morel 6369400f5b [FIX] website_forum: restrict a bunch of controllers to POST-only, convert a few more links to buttons 2014-05-13 16:57:12 +02:00
Fabien Meghazi c3cfc4bc32 [MERGE] sitemap backport, merge trunk from 9438 til 9440
merge from 9438 revid:fp@tinyerp.com-20140511115231-g8ke14r9iepyypv4 til 9440 revid:fp@tinyerp.com-20140511143314-nzn1239l00arbxjq
2014-05-13 16:38:31 +02:00
Fabien Meghazi 8eed143112 [IMP] Invert multilang logic in route decorator. True by default, can be set to False explicitlty 2014-05-13 11:35:45 +02:00
Olivier Dony 4cecbd919f [FIX] mass_mailing,website*,survey: leftover calls to website.get_public_user()
This method was (partially) removed at rev.9421 
rev-id al@openerp.com-20140507153223-q73u5lhyrfw98o3a

bzr revid: odo@openerp.com-20140512103935-o0ue9wzenm5wjejq
2014-05-12 12:39:35 +02:00