Skip to content
Snippets Groups Projects
  1. Mar 07, 2016
  2. Mar 04, 2016
  3. Mar 03, 2016
    • Thibault Delavallée's avatar
      [IMP] mail: gateway: CIDs · f4481ff7
      Thibault Delavallée authored
      Finally add support of CIDs in incoming emails. Inline images are recognized
      and added as attachments. Image links are updated from src=cid: to src=link
      using the /web/image controller.
      
      It has been decided to keep the image in atttachments instead of putting them
      in base64, like proposed in various PRs. Indeed we prefer to store this data
      into the attachments instead of directly putting it in the mail_message table.
      Moreover this enable the display of attachments in the chatter and record views.
      f4481ff7
    • Géry Debongnie's avatar
      [FIX] mail: only update timestamps periodically · a127a7ae
      Géry Debongnie authored
      the messages in a thread were previously rerendered every minutes to
      update their timestamps.  This commit only update the timestamps, not
      all the message.  This will allow us to keep expanded/folded state in
      messages without collapsing them every minutes.
      
      [IMP] mail: add read more/read less support client side
      
      Messages are cleaned up and tagged server sides, with a attribute
      data-o-mail-quote.  This commit replace their content with a clickable
      read more link, which toggle its display.
      a127a7ae
    • Thibault Delavallée's avatar
      [CLEAN] tools, mail: remove html_email_clean · ba74e9ff
      Thibault Delavallée authored
      Remove html_email_clean in tools. Remove shorten in mail.
      ba74e9ff
    • Thibault Delavallée's avatar
      [IMP] tools: sanitizer: quote detection · cb8c2d2b
      Thibault Delavallée authored
      Quote detection is now done in the sanitizer itself. It tags nodes that are
      inside quotes (signature, text quotes, email quotes). The purpose is to remove
      html_email_clean and have all the html cleaning / sanitizing inside a single
      function. When a node is tagged, data-o-mail-quote is set on the node.
      This attribute is added in the whitelist of valid attributes for the
      sanitizer.
      
      [REM] Support of shortening messages. The read more / read less will only
      display or hide detected quotes and signatures. Shortening messages above
      a given amount of characters is not supported anymore. Indeed it adds much
      complexity to the sanitizer without adding much value to the result. The
      primary purpose of the sanitizer is indeed to remove noise and unnecessary
      content.
      
      [TESTS] a lot of test are not necessary anymore, as read more / read less
      display will be moved in the front-end and as the shortening has been
      removed.Tests have therefore been cleaned and simplified.
      
      [DEMO] mail: small demo update to include a bit quote detection
      cb8c2d2b
    • Mansi Trivedi's avatar
      [IMP] project: Calendar view by month on project.task · 79bc3f38
      Mansi Trivedi authored
      Purpose:
      The field date_deadline is a date field (without hours:minutes:seconds)
      The customer is tempted to put the task deadline under hours, which is not
      feasible
      
      So in the calendar view for task, set the "month" view by default
      instead of the "week" view.
      79bc3f38
    • Hiral Patel's avatar
      [FIX] account: remove unused option in tooltip · e91a3346
      Hiral Patel authored
      'situation' type is no longer present, remove it's contextual help (tool-tip).
      Make the tooltip multiline.
      e91a3346
    • Xavier Morel's avatar
      [IMP] custom view validators system · a76b3caa
      Xavier Morel authored
      Add possibility for modules to add validators, getting closer to
      defining views outside of base.
      a76b3caa
    • Xavier Morel's avatar
      [IMP] view: inefficient contains check · cfbc1729
      Xavier Morel authored
      Checked that the arch tag was a *substring* of "kanban" rather than
      literally "kanban"
      cfbc1729
  4. Mar 02, 2016
    • Thibault Delavallée's avatar
      [IMP] tools: mail: parse style in sanitizer · bfe7aafa
      Thibault Delavallée authored
      Style attribute is now parsed and sanitized. Only a while list of accepted
      properties is kept. The behavior is implemented directly in the cleaner
      itself. As there is no easy possible inheritance, the styling cleaning is
      appended directly after the legacy processing in __call__.
      
      The styling sanitizer is called only if the style attribute is kept. If
      the sanitizer is called with strip_style=True, the styling is removed
      and therefore no sanitizing is performed.
      
      Tests about html fields have been updated. Indeed the styling is now sanitized
      and the test was not correct anymore, as the test html was stripped. It now
      contains styling that is kept. The strip_classes is also tested.
      bfe7aafa
    • Thibault Delavallée's avatar
      [FIX] fields: do not strip class by default · fd25fd4d
      Thibault Delavallée authored
      Do not strip class by default on html fields, this was an error. Currently
      only mail_message body field should not contain classes. Indeed as external
      content can be stored through the mail gateway we do not want to keep the
      classes.
      fd25fd4d
    • Thibault Delavallée's avatar
      [IMP] tools: sanitizer: frame tag · cf2318a7
      Thibault Delavallée authored
      Do not try to keep frames as they are already removed. Indeed tag_to_kill contain
      the frame tag. This parameter has precedence on the ``frames`` parameter of the
      cleaner. It was therefore unnecessary.
      cf2318a7
    • Thibault Delavallée's avatar
      [FIX] fields: html: strip_style / strip_classes · c9e38cae
      Thibault Delavallée authored
      Added the support of strip_classes, like the already existing strip_style
      parameter of html fields.. This parameter is missing but allow full
      customization of html fields.
      
      Also fixed the call to the sanitizer in fields. Indeed the strict mode is
      set to False. When not in strict mode the classes are never stripped whatever
      the value of strip_classes.
      
      Sanitizer is now called always in strict mode to ensure the sanitize process
      is correct and really take into account strip_style and strip_classes.
      
      This fix is done in master due to possible side effects and possible behavior
      changes that are not welcomed in stable versions.
      c9e38cae
    • Martin Trigaux's avatar
      [FIX] survey: better template for list of pages · f125b812
      Martin Trigaux authored
      opw-670279
      f125b812
    • Aaron Bohy's avatar
      [FIX] mail: followers: allow edit subtypes even if not follower · 27e92415
      Aaron Bohy authored
      Before this rev., editing the subtypes of other followers was only possible if
      the current user already opened a record of the same model of which he is
      himself follower.
      27e92415
    • Aaron Bohy's avatar
      [REF] mail: code refactoring · dc81e5f6
      Aaron Bohy authored
      - extended_chat_window feature in its own files: as it is only available in the
        backend, we don't want it in the frontend assets (which contain the 'basic'
        chat_window)
      - move followers feature in its own files
      - creation of the 'mail.utils' module in utils.js
      - creation of systray.less to define the style of the mail item and dropdown
        in the navbar
      - use of chat_manager's search_partner function in PartnerInviteDialog
      - some code linting
      dc81e5f6
    • Aaron Bohy's avatar
      [IMP] mail: follower: remove an RPC when user is follower · 1e0bc592
      Aaron Bohy authored
      When loading a form_view with the follower widgets, an RPC was performed to get
      the followers info (name, email...), and if the user is one of the followers,
      a second RPC was done to retrieve the subtypes.
      
      This rev. batches those two RPCs. Also simplifies read_subscription_data() as
      it is now always called with a follower_id.
      
      A few code refactoring as well.
      1e0bc592
    • Christophe Simonis's avatar
Loading