Commit Graph
623 Commits
Author SHA1 Message Date
Martin Trigaux bb56e484b7 [FIX] all: construction of translations lookup
When evaluated, the translation function never finds a match if a variable is
integrated into the untranslated text.

SHAME! 🔔 🙋
2016-01-13 14:46:30 +01:00
Martin Trigaux 2ace8f0270 [FIX] forum: duplicated method
Identical method, written another way.
Properly check the translated error.
2016-01-13 13:48:03 +01:00
Jeremy Kersten e2925909b2 [FIX] website_forum: escape search by tag, quote char to search, don't create empty tag, only display alphanum first char in pager of tags, ... 2016-01-08 19:14:31 +01:00
Jeremy Kersten aabe0cb8fe [FIX] website_forum: be sure to have a tag name before to substract the first letter
If a tag with an empty name was existing in database, the controller /forum/forum_id/tag
return a server 500 because tag.name[0] from an empty string raise a traceback.
2016-01-08 19:14:31 +01:00
Martin Trigaux 77aee2d78f [FIX] website_forum: escape link content
The links present in forum messages are parsed to integrate "nofollow"
attribuate in it.
In case the content of the link contains some special char (e.g. <a>foo)bar</a>)
the regex fails as it interprates the content as an invalid expression.
2016-01-05 12:34:31 +01:00
Odoo Translation Bot 4dac9f2b73 [I18N] Update translation terms from Transifex 2016-01-03 01:24:45 +01:00
Martin Trigaux ddeb90d46e [I18N] Update translation terms from Transifex 2015-12-29 17:40:57 +01:00
Odoo Translation Bot e6a92e523f [I18N] Update translation terms from Transifex 2015-12-27 01:25:25 +01:00
Martin Trigaux ef762f4335 [FIX] wrongly translated planners
breaking the rendering
2015-12-24 16:09:06 +01:00
Martin Trigaux 4be1a8cc7d [I18N] Update French translation terms from Transifex
Some planners were incorrectly translated, breaking at rendering
Fixes #10190
2015-12-24 10:42:03 +01:00
Denis Ledoux 9c2836090f [FIX] website_forum: set a name for answers
When replying to a question,
there is no possibility to set a title (`name`)
in the answer form, there is no input for the title,
even if the controller `/reply` would accept it.

This revision sets a title for answers so:
 - The answers doesn't appear as `False` in the breadcrumb
 - The subject of the mail notifications sent
   for these answers are set with a meaningful title

opw-659279
2015-12-23 14:35:07 +01:00
Odoo Translation Bot 9e211ef127 [I18N] Update translation terms from Transifex 2015-12-20 01:26:02 +01:00
Odoo Translation Bot 5254e31a46 [I18N] Update translation terms from Transifex 2015-12-13 01:27:04 +01:00
Odoo Translation Bot 8e7417ffa6 [I18N] Update translation terms from Transifex 2015-12-06 01:28:23 +01:00
Nicolas Lempereur 09411a4a50 [FIX] website_forum: add summernote for non designer
In saas-6 the editor assets were always included, in 9.0 only for
designer but if website_forum is installed it should also be included.

fixes #9402
closes #9852

note: should not be forward ported after saas-8
2015-12-04 11:47:26 +01:00
Martin Trigaux 463044a8db [I18N] Update translation terms from Transifex
Manual sync to fix errors due to bad translation of &lt;!DOCTYPE html&gt;
making it impossible to use Odoo
2015-12-04 09:08:30 +01:00
eLBati 44ad6f37b1 [FIX] website_forum: Use sudo to send new question notification
Otherwise portal users can not access to some partners subscribed to the forum.
Closes #9855
2015-12-03 11:58:54 +01:00
Martin Trigaux a9ec2894de [MERGE] forward port of branch saas-6 up to 19fe77b 2015-12-01 08:41:52 +01:00
Thibault Delavallée fa015c4c2e [FIX] website_forum: edit post with tags
Tags are lost when editing a post as we handle the wrong parameter.
Editing a post should not erase its tags anymore.
2015-11-26 17:00:41 +01:00
Martin Trigaux dd8052a7ce [I18N] website_forum: reexport source terms
Remove incorrect term from calendar and add missing sentence
2015-11-26 15:12:31 +01:00
Nicolas Lempereur 971ea77a44 [FIX] website_forum: typo, entity need double escaping 2015-11-26 15:05:04 +01:00
Martin Trigaux e8e5405d0c [I18N] Update French translation terms from Transifex
Fixes #9712
2015-11-25 17:22:26 +01:00
Thibault Delavallée 007e217c54 [FIX] website_forum: new mail api
set_message_read has been removed from the mail api. It is replaced by
set_message_done. Thanks Lorenzo Battistini.
2015-11-23 11:01:57 +01:00
Odoo Translation Bot 3180f80bf9 [I18N] Update translation terms from Transifex 2015-11-22 01:30:36 +01:00
Thibault Delavallée f6fdb0b6b3 [FIX] website_forum: new post notifications
Better message management, linked to the validation feature added in v9

 - post a "new post to see" message only when the post is validated
 - post a "new post to validate" message when the post has to be validated.
   This message is sent only to followers having sufficient karma.
2015-11-20 11:51:53 +01:00
Thibault Delavallée a6b6d02007 [FIX] website_forum: do the todo
We have a tunable parameter for flagged / offensive questions. So let us use
it instead of some other parameter * 5.
2015-11-20 11:51:49 +01:00
Thibault Delavallée feb86ae38c [FIX] website_forum: no auto subscription
Remove forum creator as follower of the forum. Indeed this means that generally
the website admin will be follower of all posts of this forum. Which is
probably not really necessary.
2015-11-20 11:25:17 +01:00
Odoo Translation Bot 3d7ae73305 [I18N] Update translation terms from Transifex 2015-11-15 01:35:06 +01:00
Martin Trigaux 345809b993 [I18N] Update french translation terms from Transifex
Mostly to fix the '%.' in mail breaking the rendering of Odoo in French
2015-11-09 14:58:50 +01:00
Odoo Translation Bot 14799a9006 [I18N] Update translation terms from Transifex 2015-11-08 01:32:40 +01:00
Odoo Translation Bot e3287faee6 [I18N] Update translation terms from Transifex 2015-11-01 01:32:05 +01:00
Thibault Delavallée 6dfcc5f9c8 [FIX] various: get_access_action form one to multi
As this method is overided in several modules, the mix of new and
old API makes it difficult to handle. Indeed in some cases we
receive the expected dictionary, sometimes in a list, sometimes
in a list of list, due to api.one decorator.

This is a change in the method API, however it is currently completely
buggy. Moreover this method is used internally and should not be
used as an external API. Lastly, this method is new from v9.
2015-10-30 15:44:15 +01:00
Christophe Simonis c0066c600e [FIX] website_forum: tags should be unique per forum 2015-10-28 11:55:53 +01:00
Denis Ledoux 34e90a44f8 [MERGE] forward port of branch saas-6 up to 20dba161d0 2015-10-26 19:17:21 +01:00
Odoo Translation Bot 265b789e38 [I18N] Update translation terms from Transifex 2015-10-25 01:34:24 +02:00
Odoo Translation Bot 7592d85b1f [I18N] Update translation terms from Transifex 2015-10-18 01:35:07 +02:00
Martin Trigaux d6b3924247 [I18N] export source terms
Hopefully one last time and not one more time...
2015-10-09 13:56:03 +02:00
Xavier Morel 9dffd17bd5 [IMP] website_forum: users page performances
The read_group collating user badge counts is extremely slow when
there's a large number of users (possibly even slower than 8.0's naive
approach), replace the whole thing by a single SQL query seems to yield
pretty significant (~2 orders of magnitude) performance improvements on
the computing function resulting in ~1 order of magnitude improvement
for the page as a whole.
2015-10-06 10:33:11 +02:00
Christophe Simonis 7636b510a2 [ADD] *: CSRF protection in forms and routes
* make CSRF protection the default on all non-SAFE methods
  note: there currently is no way to call a CSRF-protected endpoint
  without a form-encoded entity-body as that's the only place we get the
  CSRF token from.
* simple CSRF token generation: just use the HMAC'd session id, no
  generating a new random token per session then HMAC it
* use constant-time equal function to avoid timing attacks
* assert that a database secret is configured before hashing/validating
  the CSRF token
* opt-out database manager from CSRF: The super-admin password serves
  the purpose of a CSRF token in the database manager screens.
  There is no request database to obtain the
  secret and generate a CSRF token.
2015-10-01 01:36:50 +02:00
Miku Laitinen c9163c5403 [FIX] gamification: Made gamification badge descriptions translatable
The badge name is already translatable but the description was not,
Regenerate .pot file for these modules.

Closes #8399
2015-09-30 14:44:35 +02:00
Nicolas Martinelli d222db65e9 [FIX] website_forum: call open_website_url
Introduced by a304194
2015-09-30 12:35:07 +02:00
Martin Trigaux 2f2ec60854 [IMP] website_forum: rephrase label can_display_biography 2015-09-30 12:00:18 +02:00
Martin Trigaux e0eaaee2db [I18N] add l10n_sa and pos_cache terms + reexport
One last export before v9!
2015-09-29 14:40:59 +02:00
Leonardo Rochael Almeida 60af7cac02 [IMP] replace simplejson with stdlib json
The stdlib version of the json library is more recent than the 3.5.3
version we are pinning in `requirements.txt`

There is no reason to use it.

Closes #6940
2015-09-28 10:53:32 +02:00
Martin Trigaux 0a57d37b35 [FIX] website_forum: help messages
missing spaces or unclear help messages
2015-09-24 12:06:57 +02:00
Martin Trigaux a8c74c8bfd [FIX] website_forum: field label 2015-09-22 10:06:07 +02:00
Martin Trigaux 1a48daa4ce [I18N] export source terms 2015-09-21 11:46:35 +02:00
Martin Trigaux 387ff476dc [I18N] all: reexport translatable source terms 2015-09-18 10:40:52 +02:00
Martin Trigaux 2e8996ce0b [I18N] add missing translations
Fetching was stopped at sale, because reasons
2015-09-15 09:30:37 +02:00
Martin Trigaux 1348fee217 [I18N] all: regenerate .pot and pull .po
How great is it to get Odoo (almost) 9.0 (almost) translated?

Clean .tx/config file
Regenerate .pot files
Fetch current translations from Transifex (10% completion)
2015-09-14 17:53:37 +02:00