Skip to content
Snippets Groups Projects
  1. Dec 14, 2015
    • Olivier Dony's avatar
      [FIX] res.lang: do not leak `load_language` global · dde3432f
      Olivier Dony authored
      During database creation via the database manager,
      or when using the startup option `--load-language`,
      the selected language(s) will be installed as soon
      as either:
       - the base module is installed/updated (because
      base_data.xml includes a call to res.lang.install_lang()
       - the registry is loaded (after loading `base`,
      the system installs the requested languages, even
      if the server is not in update/install mode)
      
      This is implemented by passing a global config
      option `load_lang
      
      This behavior was modified as of saas-7 by PR
      for the command-line and for the database manager.
      
      In both cases, we don't want the installation
      to be repeated the next time either of these
      event occur. Essentially the `load_language`
      dde3432f
    • Olivier Dony's avatar
      [FIX] registry: explicitly log registry loading errors · e62b9e7c
      Olivier Dony authored
      In case the caller happens to silently catch
      the exception, leading to hard-to-diagnose
      registry/routing problems.
      e62b9e7c
  2. Dec 13, 2015
  3. Dec 11, 2015
  4. 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
Loading