Skip to content
Snippets Groups Projects
  1. Dec 13, 2015
  2. Dec 11, 2015
  3. Dec 10, 2015
    • Olivier Dony's avatar
      [FIX] mail.thread: optimize lookup of res.users by email · 3d32e996
      Olivier Dony authored
      Searching on res.partners with domain [('user_ids' , '!=', False)]
      will currently be translated into a huge "ID IN <...>"  query,
      with the IDs of all existing users.
      On a database with a lot of users, this can be measured
      in seconds (e.g. 3-4 seconds with 500k+ users),
      leading to significant delays in email delivery.
      
      Using a direct lookup in res.users is more direct and faster.
      3d32e996
    • Nicolas Lempereur's avatar
      [IMP] web_kanban: refresh kanban view after fail · 4432639f
      Nicolas Lempereur authored
      If a kanban tile is moved to another column, in case of failure it
      would stay in that column giving the false idea that it somewhat worked.
      
      This commit refresh the kanban view in such an instance.
      
      closes #9837
      
      first half of opw-657863
      4432639f
    • Denis Ledoux's avatar
      [FIX] mail: jinja2 code compatible with wysiwyg for notifications · 4bebbfdc
      Denis Ledoux authored
      When editing an email template with the wysiwyg,
      the `<` and `>` operators are automatically converted
      to `&lt;` and `&gt;`, even for the Jinja2 conditions,
      therefore breaking these conditions, and the render
      of the email templates.
      
      We avoid to use these operators in the email
      template, so users can customize the notification
      email template without having an advanced
      knowledge on how to edit an email template containing
      Jinja2 code.
      
      Besides, the line return at the end of the email template,
      just after the `% endif`,
      is done on purpose as well: the wysiwyg adds automatically,
      at the time of this revision,
      `<p></p>` at the end of the email template source, but
      this cannot be added on the same line than `% endif`,
      otherwise this is considered as Jinja2 code, and it's not.
      
      opw-659113
      4bebbfdc
    • Nicolas Lempereur's avatar
      [FIX] web_editor: keep inline editor line spacing · 893fbc05
      Nicolas Lempereur authored
      opw-657955
      893fbc05
    • Xavier Morel's avatar
      [FIX] event header date on website · 87090c1b
      Xavier Morel authored
      t-field expects a UTC datetime which it then localizes to the current
      viewer's timezone (using context tz from the browser), but goal here was
      to display the event's own local time, so t-field was provided an
      already localized datetime and would parse it as UTC then re-offset it
      based on the user's timezone, resulting in a completely nonsensical
      displayed datetime.
      
      Just display the localized datetime without reprocessing it (save to
      slice off the seconds count)
      87090c1b
    • Christophe Matthieu's avatar
      [FIX] web_editor: enter in a p tag empty (when user change with code view) can... · 3c64ee45
      Christophe Matthieu authored
      [FIX] web_editor: enter in a p tag empty (when user change with code view) can be raise an exception
      3c64ee45
Loading