Commit Graph

433 Commits

Author SHA1 Message Date
Jeremy Kersten c41109f2f0 [FIX] website_forum:
Remove useless document ready
   Add select2 to frontend to allow public user to use tags
2014-11-18 16:20:58 +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 86a6619dc8 [FIX] website_forum: add fake tour for people waiting the tour. To remove in master. Without it, localstorage loop to search this unexisting tour after the install... 2014-11-17 16:50:52 +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 b8efdbdf39 [FIX] website_forum: avoid access error when closing spam/abuse questions
Logging the user login is not necessary, but
accessing it might cause access errors. Logging
the UID is equivalent anyway, so let's not bother.
2014-11-10 16:20:23 +01:00
Christophe Simonis c825d0552d [MERGE] forward port of branch saas-3 up to ec27773 2014-11-05 21:46:42 +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 207fc4bd75 [FIX] website_forum: safer conditions in UI for blockng post buttons 2014-10-22 13:48:19 +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
Olivier Dony 7439421ad2 [I18N] Update translations from Launchpad 8.0 branches 2014-10-08 17:52:25 +02:00
Olivier Dony b74d830eb2 [I18N] Update translation templates with latest term changes 2014-09-23 19:13:50 +02:00
Olivier Dony 1c5b5e4290 [I18N] Update translations from Launchpad 8.0 branches
server: rev. 26 rev-id launchpad_translations_on_behalf_of_openerp-20140923072744-tkfs0yinu8msjh09
addons: rev. 39 rev-id launchpad_translations_on_behalf_of_openerp-20140923072715-5j7qvnuvmmb1zzy1
web: rev. 23 rev-id launchpad_translations_on_behalf_of_openerp-20140923072757-jvh9l6r2x0vfcyhb
2014-09-23 13:42:05 +02:00
Olivier Dony 53aa92d3c9 [I18N] Update translations from Launchpad branches 2014-09-18 11:47:16 +02:00
Simon Lejeune c240b4a4e8 [FIX] website_forum: moved editor-related js files into the editor asset 2014-09-11 14:09:11 +02:00
Simon Lejeune 378d41551a [FIX] website_forum: header template: double display of questions
The <t t-raw='0'/> is already defined lower in the view (line 101)
2014-09-11 11:56:12 +02:00
Olivier Dony fac96241df [I18N] Update 8.0 translations with latest changes from Launchpad 2014-09-08 19:04:25 +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
Denis Ledoux a8d667eeb7 [FIX] website_forum: convert answer to comment, use superuser
To browse the forum post, as the partner of the create_uid of the post is needed, which can't be read by portal users.
2014-08-29 14:18:36 +02:00
Jeremy Kersten a062d3b0ee [FIX] website_forum: fix asset. 2014-08-28 17:04:01 +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
Jeremy Kersten 287ea2fb17 [IMP] website_*forum,blog,instantclick,...: Move Js in assets 2014-08-28 12:21:47 +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
Fabien Pinckaers 8aca457e34 [IMP] Updated website urls on modules and info page 2014-08-26 21:40:18 +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
Christophe Simonis 5dff035878 [MERGE] forward port of branch saas-5 up to 39bee35 2014-08-20 20:33:17 +02:00
Denis Ledoux 3cc9a844db [FIX] website_forum: portal user are allowed to delete forum post
If a portal user has engouh karma, this is possible for him, at least graphically, to delete forum posts, even if is not the author of it.
So, he should be allowed to delete forum posts in the ACL
2014-08-20 16:14:09 +02:00
Fabien Pinckaers a6de99990d [FIX] missing row CSS 2014-08-20 12:21:38 +02:00
Fabien Pinckaers a8fc1a3e4f [FIX] HTML Questions 2014-08-19 16:33:25 +02:00
Fabien Pinckaers 31b6a6378a [FIX] HTML Questions 2014-08-19 16:30:55 +02:00
Olivier Dony 50ef63881a [I18N] Update 8.0 translation with latest source code 2014-08-14 17:01:54 +02:00
watermelonjuice 0aef6fac10 [FIX] website_forum: Minor grammar error 2014-08-11 08:52:23 +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
rlu-odoo 8b67a7202d [REF] OpenERP --> Odoo in various UI texts
Rebranding has been done in:
- data/demo files
- html templates
- help notices
- comments
- logger messages
- and other various messages

(Commit taken from odoo-dev:8.0-improve-openerp-odoo-rlu at rev 7deaa08)

Closes #1260
2014-07-18 13:45:41 +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 9955624029 website_forum: fixed issue when voting. The method should work in batch. Previously to this implementation having one post with a vote bypassed the other posts without vote when called with several ids. 2014-07-16 10:39:38 +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
Christophe Simonis e0759c1350 [MERGE] forward port of branch saas-4 up to de696f1 2014-07-15 10:39:08 +02:00
Thibault Delavallée 59320c4ab6 [FIX] website_forum: fixed karma computation, on first vote the karma was wrongly calculated (when creating a vote, not when updating it). 2014-07-11 16:46:39 +02:00
Christophe Simonis f654a7719b [MERGE] forward port of branch saas-5 up to 73d39a0 2014-07-10 22:49:53 +02:00
Thibault Delavallée abbe4ef76c [FIX] website_forum: fixed issue with user vote badly taken into account when upvoting / downvoting + crash due to wrong field name. Backport of Leonardo Donelli PR for master. 2014-07-10 09:03:53 +02:00
Hitesh Trivedi ea470b67bf [FIX]Display answers in order by posted date in descending (latest to old) 2014-07-07 12:00:19 +05:30
Thibault Delavallée 7785a3bc83 [FIX] website_forum: fixed last merge done a bit quickly: addd can_answer functional field, fixed edit_answer and edit link / route. 2014-07-01 14:07:53 +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
Simon Lejeune 195fa93168 [MERGE] backend front end integration
Render the top-menu (backend menu or frontend editbar) server-side.
Use Fontawesome icons (mail, timezone, chat).
Refactor website widgets, split Website.editorBarin editorbar, ace, editorbar- content, editorbarCustomize.
2014-06-27 11:03:34 +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
Jaydeep Barot 026e38b48f [REM] Unnecessary `size` parameters on char fields 2014-06-25 17:13:43 +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
Niels Huylebroeck e59077b0f9 Fix displaying of minKarma requirements 2014-06-19 15:23:54 +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
ged-odoo 74168c4e9d Merge pull request #272 from odoo-dev/master-inline-searchview-ged
[MERGP] Inline Searchview

This task split the searchview in two parts: SearchView and SearchViewDrawer. The drawer is displayed inside the main view and the searchview stays in place.  It also changes the scrolling behavior of the web client: the main view area can scroll without affecting the UI (so the various menus stays in place)

Because of this, other large changes have been made:

the drawer has been redesigned,
the Custom Filter widget has been split in two (Custom Report and SaveCurrentFilter),
the main view is now scrollable, so the UI stays in place and only the view can change
The text 'Group By...' has been changed into 'Group By' (most addons had to be modified)
bootstrap classes are used when it makes sense (for example, badge)
the left menu is also scrollable (separately from the main view)

It is likely that some stupid bugs have been introduced.  Please don't hurt me.
2014-06-12 16:27:11 +02:00
Thibault Delavallée 88205e292a [FIX] [IMP] website_forum: usability fix: moved answers / votes column below the text on mobile displays, because it takes too much place and restrict the place left for the text. By the way some custom css has been removed, replaced by bootstrap css. 2014-06-12 15:01:41 +02:00
Fabien Meghazi faa09da325 Removed version="7.0" from form views 2014-06-12 09:09:59 +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
Géry Debongnie 8202561511 Merge remote-tracking branch 'odoo/master' into master-inline-searchview-ged 2014-06-10 11:43:17 +02:00
Richard Mathot bd2473f8dc [FIX] stupid typo 2014-06-02 17:01:44 +02:00
Richard Mathot 8dc0503aa5 [FIX] website*: make custom footer independant of main layout 2014-06-02 16:56:36 +02:00
Géry Debongnie 52a8c4cf9a [MERGE] merge from master 2014-05-30 20:21:03 +02:00
Xavier Morel 46712acaec [FIX] bunch of changes lost in incorrect merge f4d78ae738 2014-05-30 17:00:52 +02:00
Xavier Morel d325c0caef [REV] attempt to revert incorrect removals in f4d78ae738 2014-05-30 16:00:28 +02:00
Géry Debongnie 5cc8f9ca42 Merge remote-tracking branch 'odoo/master' into master-inline-searchview-ged 2014-05-28 10:37:16 +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
Géry Debongnie 62900fe01b Merge remote-tracking branch 'odoo/master' into master-inline-searchview-ged
Conflicts:
	addons/crm/crm_case_section_view.xml
2014-05-26 10:06:31 +02:00
Fabien Pinckaers 143615ddc1 Merge branch 'master-remove-html-fields-backend-ypa' of https://github.com/odoo-dev/odoo into odoo-dev-master-remove-html-fields-backend-ypa 2014-05-23 09:24:16 +02:00
--global 2649beba97 [IMP] website_forum: make forum;forum inherit from mail.thread. This way we
add the possibility to users to follow a forum and be automatically followers of new
questions, using some new subtypes on the forum.forum model that do the auto subscription.

Also added a profile link on the forum, when logged.

Also added a subscribe button on the forum.
2014-05-22 13:49:41 +02:00
Yogesh Parekh a79ffefd87 Remove description html field in website_forum module 2014-05-22 15:26:10 +05:30
Géry Debongnie 555677f14d [IMP] replace all 'Group By...' by 'Group By'
in all searchview, the 'Group By...' looks weird, next to the Custom
Reports and Filters.  This change was requested by the upper management
2014-05-22 11:44:35 +02:00
Christophe Simonis a756b82372 [MERGE] forward port of branch saas-4 up to revid bb26dea 2014-05-20 20:19:55 +02:00
Christophe Simonis 040c93026a [MERGE] merge bzr trunk addons branch 2014-05-20 18:10:36 +02:00
Martin Trigaux a558a84630 [IMP] display the createion date of the question the same way we display the answer fate 2014-05-20 15:05:27 +02:00
Martin Trigaux 4d9aa300a7 [IMP] as the closing reason is not required, do not display it if none is present 2014-05-20 14:50:51 +02:00
Martin Trigaux 70d3652c27 [FIX] remove closing reason 'an answer was accepted', the questions should be left as open to be possible to improve the answer afterward 2014-05-20 14:41:56 +02:00
Martin Trigaux c786ceb760 [FIX] the badges should be ordered by most popular first 2014-05-20 14:32:21 +02:00
Martin Trigaux 8da2cb6d4a [FIX] definition of badges 2014-05-20 14:31:55 +02:00
Martin Trigaux 4c822b1a3b [FIX] website_forum: when sending emails about forum post, use the public url instead of the private 2014-05-20 13:10:44 +02:00
Olivier Dony c1a0d23422 [FIX] website_forum: country_id is an integer field 2014-05-20 10:24:33 +02:00
Olivier Dony c97d0ccf8f [FIX] website_forum: allow users to save their edited bio 2014-05-20 10:24:01 +02:00
Thibault Delavallée 844cf8d565 [FIX] website_forum: fixed crash when displaying a closed question for public
users; indeed partner data was displayed without using the contact widget.
2014-05-19 14:40:55 +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
Martin Trigaux f0c1eb1786 [FIX] website_forum: execute the change of number of views in SQL instead of using the orm
Using sql will be faster (doing a write in a read is never a good idea for performances) and will not update the write_date (which is used for the last activity filter)
2014-05-15 10:57:51 +02:00
Thibault Delavallée 1fbc5c1cfb [FIX] website_forum: fixed issues with images in question / answers, now limited
in width + auto height. Improved rule for img-avatar to avoid being overriden
by the default img rule.
2014-05-15 11:38:00 +02:00
Thibault Delavallée 70f29d7748 [FIX] website_forum: fixed link to edit a question 2014-05-15 11:27:14 +02:00
Thibault Delavallée f38161608b [FIX] website_forum: fixed commit 9426: values were badly computed for the link_button template
leading to most buttons being buggy on the forum.
2014-05-14 18:36:58 +02:00
Martin Trigaux 4e2fe7998e [FIX] website_forum: display it as some kind of table for better display 2014-05-14 18:31:16 +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