Commit Graph
495 Commits
Author SHA1 Message Date
Jeremy Kersten 36ae07ed15 [FIX] website_forum: don't use span with style for forum
Forum sanitize the content before to be inserted in db.
So all tags style are removed...

Disabling the option styleWithSpan, will let summernote to use <b>, <u>, <i>
to allow the end user to change the style from an answer / question.
2015-03-31 12:19:57 +02:00
Thibault Delavallée ad1870b1eb [FIX] website_forum: fixes :
- do not show the popup about sharing on twitter if the post fails
due to karma for example
- added forgotten karma_required classes on post a link / post a
topic; those are missing since the forum update has been merged
without review a few month ago.
2015-03-25 11:51:42 +01:00
Julien De Coster 0b19fd5212 [FIX] Alignment of the welcome message in website_forum 2015-03-24 10:48:27 +01:00
Jeremy Kersten 8419ed64cd [FIX] website_forum: check that sorting is valid in forum
Retro-compatibily for V8 and google links.
More than 25 000 links in google contains ?sorting=date
Since saas-6, sorting is directly used in query, so we need to
check that the sorting is still valid !
2015-03-16 21:15:02 +01:00
Olivier Dony 10b8f1c907 [FIX] forum: "Relevancy" is old-fashioned -> Relevance 2015-03-16 11:34:22 +01:00
Jaysinh Shukla be31cc299a [FIX] website_forum: fixed issue when voting the vote
area was not updated due to typo in JS.
2015-03-11 11:27:21 +01:00
Christophe Simonis 6cce8d5a55 [FIX] website_forum: remove duplicated method 2015-03-09 16:07:44 +01:00
Christophe Simonis 0894bdafe2 [MERGE] forward port of branch 8.0 up to 5e3e41b 2015-03-09 16:06:29 +01: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 13476c844d [FIX] fields.html, forum: opt-in stripping of @style attrs
For public-facing HTML content provided by the user,
`<style>` tags and `style` attributes should be stripped
automatically, as they can easily be abused to deface
pages for abusive users and spammers.
<style> tags were already stripped, the optional `strip_style`
for fields.html enables the automatic stripping of style
attributes.

This is opt-in because custom style attributes are still
desirable in trusted HTML fields.
2015-03-09 14:41:14 +01:00
Jérome Maes 2f6204aca4 [FIX] website_forum : avoid server error when sharing false url on forum. Properly display error message. 2015-03-05 16:31:18 +01:00
Thibault Delavallée 7b4a82884d [FIX] website_forum: fix crash in convert answer to comment
raised by last commits in saas-6. Browse user object as superuser
to avoid access issues.
2015-03-04 17:15:57 +01:00
Thibault Delavallée ff4bbdd356 [FIX] website_forum: crash when xml files holdign qweb content
contain a dot in the name.
2015-03-04 16:06:12 +01:00
Thibault Delavallée f12c61cb0e [FIX] website_forum: typos and wording in field labels 2015-03-02 16:35:30 +01:00
Thibault Delavallée 0e924744a5 [FIX] website_forum: added a forgotten required on post_type on the
post model. Indeed a post is a question, a link or a discussion and cannot be
something else.

Added constraints to avoid having posts that do not match the accepted types
on the forum; and to avoid having forums having a default post type not
matching the accepted ones.
2015-03-02 16:35:30 +01:00
Jeremy Kersten fcbb825cd0 [IMP] website_forum: replace 'My Profile' by user karma and remove useless code 2015-02-25 18:50:42 +01:00
Christophe Simonis aec02cb493 [MERGE] forward port of branch 8.0 up to d350f5b 2015-02-20 18:16:01 +01:00
Christophe Simonis a5735e7891 [FIX] website_forum{,_doc}: noupdate for website.menu 2015-02-20 14:55:07 +01:00
Olivier Dony 91d4b947f6 [I18N] Update translations from Launchpad 8.0 branches 2015-02-18 11:51:07 +01:00
Thibault Delavallée ff06fe7fad [IMP] website_forum: len(search) -> search_count 2015-02-11 13:02:37 +01:00
Christophe Simonis ff6bf5bb2f [FIX] website_forum: handle plaintext of empty posts 2015-02-09 15:40:01 +01:00
Christophe Simonis fa75094e6f [MERGE] forward port of branch 8.0 up to 4af53de
ignore .po and .pot changes
2015-02-03 18:47:42 +01:00
Thibault Delavallée 2a2cbfc5ae [FIX] website_forum: comment deletion now working by calling the right url 2015-02-03 12:26:33 +01:00
Thibault Delavallée 7a10df6e56 [IMP] website_forum: small usability improvements:
- edit is the first tool-link displayed on question, like answers (edit / close / delete)
- missing space before Share link
- wording: renamed Undelete to Reactivate
2015-02-03 11:53:16 +01:00
Thibault Delavallée 15faf3be4a [FIX] website_forum: hiding intro was not dismissing the right
div, leaving a green container. Using id allow to explicitely tell which
parent to close instead of the first parent.
2015-02-03 10:33:23 +01:00
Jaysinh Shukla 044851d8d9 [FIX] website_forum: Fixing bug of forum which displays picture of login user instead of user who has posted the answer on the post. 2015-02-02 12:20:45 +01:00
Olivier Dony 8e03852fd4 [I18N] Update translations from Launchpad 8.0 branches 2015-01-26 16:36:51 +01:00
Christophe Simonis 6f841038f3 [MERGE] forward port of branch 8.0 up to 3735394 2015-01-22 18:47:13 +01:00
Jaysinh Shukla 5f987f8745 [IMP] website_forum: added social sharing on questions.
A widget based on website share widget has been added that allows to share
questions and answers on social networks. Old posts can also be bumped
through sharing.

New fields have been added on forum model allowing to disable the old
question bump and social sharing modals.

Courtesy of RD India: Ajay Patel (apa@odoo.com), Jaysinh Shukla
(jsh@odoo.com)
Courtesy of use Merge: Damien Bouvy (dbo@odoo.com)
2015-01-22 17:02:17 +01:00
Olivier Dony 39f00b3637 [I18N] Update translation templates with latest terms
Total new terms: 270
Total deleted terms: 82
Total identical terms: 19653
Old total number of terms: 19735
New total number of terms: 19923
2015-01-21 15:31:22 +01:00
Thibault Delavallée 9135d677e8 [FIX] website_forum: res.users inheritance: fixed call to super in
get_serialised_gamification_summary, parameter was forgotten. Regression probably
added in the migration to the new API.
2015-01-20 17:34:33 +01:00
David Monjoie 28c79ec7d0 [IMP][REF] website_forum: added the published mixin. A hook on res.users
has also been added, because the action open_website_url linked to the publish
button is not defined on res.users model (but on its inherited partner).
It now has the method that is routed on its partner.
2015-01-20 17:34:33 +01:00
Olivier Dony 025a81225b [FIX] website_forum: bad conflict resolution during last forward-port
kdiff3 use should be forbidden :-)
2015-01-20 10:33:04 +01:00
Christophe Simonis 8f30139b65 [MERGE] forward port of branch 8.0 up to edbb141 2015-01-19 20:32:56 +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 Simonis 18e22be138 [MERGE] forward port of branch 8.0 up to 0aab81c 2015-01-19 17:15:56 +01:00
Ajay javiya f6e5bf847b [IMP] website_forum: provide reply link on question
that jump to the answer.
2015-01-19 16:50:09 +01:00
Goffin Simon 0fd773a486 [IMP] Cleanup and refactoring of exception handling
Unify and refactor exception handling in framework and addons.

The generic `except_osv` is now deprecated, and replaced by more specialized exception subtypes:
 - `UserError` (renamed from Warning, as it conflicts with the built-in `Warning`) raised when a non-technical error occurs during a business operation. It could be a missing information in the data provided by the user, or a misconfiguration.
 - `AccessError`: raised when any operation is denied because the user conducting it does not have the required access rights.
 - `AccessDenied`: raised when an operation that requires authenticated access is attempted via an unauthenticated request.
 - `MissingError`: raised when an operation is attempted on a record that does not exist.
 - `ValidationError`: raised when an operation violates a SQL or Python constraint.
 - All other exceptions are internal errors due to a system problem or bug, and raised untouched to the client-side, which should display a traceback.

All exceptions take a single message argument.

The `test_exceptions` module has been updated to showcase both new and old (deprecated) exceptions.

A great many old `except_osv` had a useless title with "Error!" or "Warning", those have been removed, as this is handled by the client-side widget that displays the messages.

This commit introduces a more consistent policy for logging errors and warnings:
 - All messages that do not require administrator attention should be logged at INFO level or lower. This includes all errors that are notified to the user in a friendly manner, even for access right problems or validation errors during business operations.
 - All messages that indicate a likely misconfiguration or malicious use by the users should be logged at WARNING level, as they typically require administrator attention.
 - All other unhandled internal errors cannot typically be handled by the user and should be logged at ERROR or higher level, as they require immediate administrator attention.
2015-01-16 17:15:18 +01:00
Martin Trigaux fc9ce0bcff [FIX] website_forum: description not translated
Make the field description on a forum translatable and add it in the forum view. opw 619786
2015-01-15 15:37:31 +01:00
qsm-odoo b81b03c82d [FIX] website_forum: do not display the answer postarea on closed
questions. Also remove the group_user limitation, because posting should be displayed
for public users, redirecting to the login page.
2015-01-15 12:43:28 +01:00
Jeremy Kersten df2ddd8951 [FIX] website_forum: Manual forward port from 30a6be0 and 0de1d89
Code has been refactored since 8.0
2015-01-12 17:57:19 +01:00
Jeremy Kersten 30a6be00dd [IMP] website_forum: add direct link to the answer. #4364 2015-01-12 15:27:32 +01:00
Jeremy Kersten 0de1d89648 [FIX] website_forum: add name get on forum.post #4364
When comment is created, emails are sent with subject: "Re: False" and footer: "About Forum False".
Now, when the post is a comment, we fallback to the name of the parent (the main forum post).
2015-01-12 15:27:32 +01:00
Fabien Pinckaers a40e02f8f6 [IMP] wording on forum replies 2015-01-07 19:28:00 +01:00
Julien De Coster d88c34d11e [IMP] Mass mailings send in cron
1. The merge of the "email_template" module into the "mail" module.
2. The send action of the mass mailing has been moved from the frontend to a cron, because it was too slow to send over 10,000 mails (the user's browser was blocked for 15 - 20 minutes). Mass mailings have now their own process in the kanban view.
3. Mails sent from the mail form are sent immediatly instead of from the mail queue (for instance, when you go to sales > customers > list view > select 2 -3 customers > More > Partner Mass Mailing).
4. Users have now the choice from which mailing list they want to unsubscribe when they click on the unsubscribe link at the bottom of the mail.
5. Mass mailings inherit from their campaign UTMs and mass mailing campaigns are linked to an UTM campaign.
6. Many little improvements
2015-01-07 18:01:58 +01:00
Christophe Simonis fab4d6d442 [MERGE] forward port of branch 8.0 up to ea54d4a 2015-01-06 11:49:04 +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
Christophe Matthieu 9069d0127c [IMP] website: use the new summernote editor 2015-01-05 10:59:42 +01:00
Binjal Desai a8c44dd743 [FIX] website_forum: post: if no create_date, relevancy is 0.
Fix a crash when creating a post in backend without create_date being set.
2014-12-26 15:52:33 +01:00
Thibault Delavallée 1840acf185 [FIX] website_forum: tags were not displayed when editing a post. 2014-12-26 11:53:11 +01:00