Commit Graph

390 Commits

Author SHA1 Message Date
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
Xavier Morel f4d78ae738 Merge branch 'server-trunk'
Conflicts:
	addons/mass_mailing/controllers/main.py
2014-05-14 15:13:04 +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
Xavier Morel eed75b620d [FIX] website_forum: replace deprecated country by country_id 2014-05-13 12:15:23 +02:00
Xavier Morel 023aa7acdf [FIX] website_forum links which should not be, post-install crawler
* move URLs of purely-JS-hook <a> to data-href so the crawler does not try to
  access them (they're JSON-RPC endpoints...)
* replace side-effecting links (...) by styled buttons
* fix crawler to not take fragments in account when deduplicating and
  navigating URLs
2014-05-12 18:34:55 +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
Martin Trigaux 555d4879c8 Forward-port of latest saas-4, up to revision 9416 (rev-id fme@openerp.com-20140509164338-gnz7p3qxt8etrh5w)
bzr revid: mat@openerp.com-20140512072331-0lidgqb6x7fregdj
2014-05-12 09:23:31 +02:00
Fabien Pinckaers 105618443f [IMP] Sitemap
bzr revid: fp@tinyerp.com-20140511134037-84vnn1b4zfzk8som
2014-05-11 15:40:37 +02:00
Fabien Pinckaers 54d30d5194 [IMP] clean sitemap, enumerate pages + fixes
bzr revid: fp@tinyerp.com-20140511115231-g8ke14r9iepyypv4
2014-05-11 13:52:31 +02:00
Martin Trigaux dab3557253 [FIX] website_forum: correct the 'Editor' goal definition, the field author_id on a mail_message is a m2o to res.partner and not res.users
bzr revid: mat@openerp.com-20140509134434-6u2ft2gyv0hcryxq
2014-05-09 15:44:34 +02:00
Christophe Simonis b8089a1521 [MERGE] forward port of branch saas-4 up to revid 9410 chs@openerp.com-20140507164207-kmme4tsrd4w1m7l1
bzr revid: chs@openerp.com-20140507170112-bjeltv2b0coy60am
2014-05-07 19:01:12 +02:00
Christophe Simonis 643871c20f [FIX] website_forum: set config parameter via dedicated function
bzr revid: chs@openerp.com-20140507134127-xmp9kza1mvy37jf1
2014-05-07 15:41:27 +02:00
Thibault Delavallée 69ec02b2d4 [FIX] website_forum: more fixes :
- display tag name in 'filter' bar when filtering on a tag
- display active tag in a blue color
- order answers: correct first, then most upvoted

bzr revid: tde@openerp.com-20140506123001-fz5gt6i9zw6ondcu
2014-05-06 14:30:01 +02:00
Thibault Delavallée 55479a4cc2 [FIX] website_forum: new batch of fixes :
- fixed reopen link that was broken (python code appearing)
- fixed close link that was leading to a 500 error due to post -> question
- fixed link to question author, was redirecting to the current user
- fixed displayed number of questions in the forum, now displaying actual question
number, not number of displayed questions in the page
- improved guidelines: added link back to the forum
- fixed tags display: now by posts_count desc, unused tags are not shown
- users are now displayed by desc karma
- converting a comment as an answer does not allow to create a new answer if another
one by uid is already present, it just moves the comment

bzr revid: tde@openerp.com-20140505154523-6dld9sfm0nc0oulu
2014-05-05 17:45:23 +02:00
Fabien Meghazi b0cbaf330a [IMP] website: load website.xml templates only in editable mode
bzr revid: fme@openerp.com-20140505113800-wv5vh802us270oez
2014-05-05 13:38:00 +02:00
Antony Lesuisse 7e25b9ae55 [MERGE] saas-4 report_webkit missing dependency on report
bzr revid: al@openerp.com-20140501152604-4cobh5ui47dt4pem
bzr revid: al@openerp.com-20140501155633-gefnc3zqcsr2rhaz
bzr revid: al@openerp.com-20140501161156-4wbsvhh8gz4r22h3
2014-05-01 18:11:56 +02:00
Fabien Meghazi b7003a382a [MERGE] upstream
bzr revid: fme@openerp.com-20140429154104-csm3jq6uxy9tk1ea
2014-04-29 17:41:04 +02:00
Thibault Delavallée 7f236edcdd [FIX] website_forum: fixed link of answer's author, was redirecting
to the current users instead of the post's author;

bzr revid: tde@openerp.com-20140425124911-z4dqhm64yabq214t
2014-04-25 14:49:11 +02:00
Fabien Meghazi 1c4e2cfd22 [IMP] bundlify addons (except website)
bzr revid: fme@openerp.com-20140424172129-ze74eaz2eaidmxhm
2014-04-24 19:21:29 +02:00
Thibault Delavallée 252be1b9ab [FIX] website_forum: various fixes and usability improvements
- question title is now a link
- fixed a crash when trying to see badges in the 'new badge' notification
- improved the tags manager: manage tag at blur event (otherwise the last tag
was ften not created) + manage already-existing tags

bzr revid: tde@openerp.com-20140423142034-5si58h4jgd1jyyem
2014-04-23 16:20:34 +02:00
Christophe Simonis 058427d88b [FIX] website_forum: correct view xml (introduce by previous commit)
bzr revid: chs@openerp.com-20140422151111-2yfs704yk2qbiy89
2014-04-22 17:11:11 +02:00
Christophe Simonis 618fbde36f [MERGE] forward port of branch saas-4 up to revid 9365 chs@openerp.com-20140422143249-3cfh18tenn3a5ry1
bzr revid: chs@openerp.com-20140422144651-840zze7p5549k88s
bzr revid: chs@openerp.com-20140422144933-0su8g7pgrcloijco
2014-04-22 16:49:33 +02:00
Christophe Simonis 12beacda08 [MERGE] backport of trunk revisions:
9362 fp@tinyerp.com-20140421205739-rki3bctinjy3amzy [MERGE] new module: website_forum_doc + small fixes (close) in forum
9363 fp@tinyerp.com-20140421213850-19gk3hfz8qxa6fw3 [IMP] improved form view for posts

bzr revid: chs@openerp.com-20140422143249-3cfh18tenn3a5ry1
2014-04-22 16:32:49 +02:00
Martin Trigaux f756fa671e [FIX] gamification: remove wrong double quote in xml
website_forum: restrict granting rights on forum badges

bzr revid: mat@openerp.com-20140422090937-l2mxc828hof9u8pi
2014-04-22 11:09:37 +02:00
Martin Trigaux bb91b146dd [MERGE] [FIX] gamification and website_forum
- add noupdate tag
- domain are evaluated at loading
- better user subscription and computation of domain
- batch creation of users

bzr revid: mat@openerp.com-20140422083856-3dffeml5qt0w0dt4
2014-04-22 10:38:56 +02:00
Fabien Pinckaers c1b9748947 [IMP] improved form view for posts
bzr revid: fp@tinyerp.com-20140421213850-19gk3hfz8qxa6fw3
2014-04-21 23:38:50 +02:00
Fabien Pinckaers 261204c98d [MERGE] new module: website_forum_doc + small fixes (close) in forum
bzr revid: fp@tinyerp.com-20140421205739-rki3bctinjy3amzy
2014-04-21 22:57:39 +02:00
Fabien Pinckaers 1a09a703e4 [IMP] SEO tags
bzr revid: fp@tinyerp.com-20140421202518-vqa8l0gtaemzoc32
2014-04-21 22:25:18 +02:00
Fabien Pinckaers c550fcb3d0 [FIX] Promote to doc flow
bzr revid: fp@tinyerp.com-20140421202350-n6uzooo9mvty07i7
2014-04-21 22:23:50 +02:00
Fabien Pinckaers 19da27c191 [FIX] close and reopen questions
bzr revid: fp@tinyerp.com-20140421184347-c86uyuw8l61dxl5o
2014-04-21 20:43:47 +02:00
Fabien Pinckaers 64c7152e11 [IMP] better css
bzr revid: fp@tinyerp.com-20140421181228-w92l1ibo34o2xqya
2014-04-21 20:12:28 +02:00
Fabien Pinckaers cf78b6d9a0 [IMP] Forum + SEO
bzr revid: fp@tinyerp.com-20140421172330-gktockbm11emgsos
2014-04-21 19:23:30 +02:00
Fabien Pinckaers cbf071a62c [IMP] better layout for documentation
bzr revid: fp@tinyerp.com-20140421144510-9qo1whru5u5ec721
2014-04-21 16:45:10 +02:00
Thibault Delavallée bf6cd98083 [FIX] message author link, now working
bzr revid: tde@openerp.com-20140418153217-qdbslziaiz832xvz
2014-04-18 17:32:17 +02:00
Thibault Delavallée 018624ea43 [IMP] website_forum: better error messages about karma
bzr revid: tde@openerp.com-20140418151608-0pb3ui97aksb9en1
2014-04-18 17:16:08 +02:00
Thibault Delavallée 35a3f7fbd0 [CLEAN] website_forum: removed a forgotten print statement
bzr revid: tde@openerp.com-20140418144854-cxl30gibxw43r5th
2014-04-18 16:48:54 +02:00
Thibault Delavallée aa8bdfc740 [IMP] website_forum: controllers now check the karma in addition to the viewé
bzr revid: tde@openerp.com-20140418144722-k2g2gespb3dwpio4
2014-04-18 16:47:22 +02:00
Thibault Delavallée b153fcd35e [IMP] [FIX] website_forum: better control of actions based on karma; those
actions are calculated in the controller, based on forum.forum values instead of values hardcoded
in the view.

bzr revid: tde@openerp.com-20140418135724-k64yey6hhrki0b6h
2014-04-18 15:57:24 +02:00
Thibault Delavallée a6103a08be [IMP] [FIX] website_forum: better karma management for votes
and answers. Also some fixes in answer tagging and edition closing.

bzr revid: tde@openerp.com-20140418132905-ja2rqcc2edqzu3jv
2014-04-18 15:29:05 +02:00
Martin Trigaux bb8e24d951 [FIX] website_forum: set badges and challenges in noupdate
bzr revid: mat@openerp.com-20140418124112-m97idrklxq8y3e3f
2014-04-18 14:41:12 +02:00
Turkesh Patel (Open ERP) 88600a6ee5 [MRG] merge with lp:openobject-addons
bzr revid: tpa@tinyerp.com-20140417112956-590gdsus7485mkqk
2014-04-17 16:59:56 +05:30