Skip to content
Snippets Groups Projects
  1. Sep 01, 2016
    • Thibault Delavallée's avatar
    • Thibault Delavallée's avatar
      [IMP] base: rename res_patner_category.name from Category Name to Tag Name · 18b671c0
      Thibault Delavallée authored
      Even if the model is called res partner category, it is now used like tags
      and should be labelled as such.
      18b671c0
    • Thibault Delavallée's avatar
      [IMP] crm: unfold Won stage by default. · 9c315ac1
      Thibault Delavallée authored
      You probably want to know what you won over the month.
      9c315ac1
    • Martin Geubelle's avatar
      [IMP] base: allow quick create on ir.model · b6b26cc8
      Martin Geubelle authored
      This option implies 3 changes:
       * a default char field x_name on the new model
       * be able to infer the `model` of the ir.model in name_create
         from its `name`
       * avoid deleting the registry when unlinking *nothing* ; the default
         field_id or ir.model ([(0, 0, ...)]) implies an unlink ([(5,), (0, 0)])
         that delete the current registry
      
      Courtesy of @rco-odoo
      b6b26cc8
    • Martin Geubelle's avatar
      [IMP] base: simplify model & field views · 9b269cb0
      Martin Geubelle authored
      As these views will soon be accessible out of debug mode,
      let's simplify them by hiding some fields in non-debug mode.
      9b269cb0
    • Martin Geubelle's avatar
      [ADD] base: active on ir.ui.menu · abc2c272
      Martin Geubelle authored
      abc2c272
    • Adrien Dieudonne's avatar
      [REF] web, website: move jQuery UI Nested Sortable lib · 3029857b
      Adrien Dieudonne authored
      As this lib will be used in the backend, it is moved to assets common.
      3029857b
    • Raphael Collet's avatar
      [REF] registry: move functionalities from `RegistryManager` to `Registry` · a7445b40
      Raphael Collet authored
      The API of `Registry` has been modified as follows:
       - `Registry(name)` returns the registry of the given database
       - `Registry.new(name)` forces the creation of a new `Registry` object
       - `Registry.delete(name)` discards the given registry
       - `Registry.delete_all()` discards all registries
       - `registry.setup_signaling()` initializes the signaling for `registry`
       - `registry.check_signaling()` returns an up-to-date `registry`
       - `registry.signal_registry_change()` notifies that `registry` has changed
       - `registry.signal_caches_change()` notifies potential cache invalidation
      a7445b40
    • Raphael Collet's avatar
      [REM] openerp.pooler: remove · 3019f4a4
      Raphael Collet authored
      3019f4a4
    • Thibault Delavallée's avatar
      [MERGE] mail: add various mailgateway improvements · abc7d83e
      Thibault Delavallée authored
      This merge holds several long awaited improvements for the mail gateway.
      It includes
      
       * store email status of notifications emails sent to customers
       * display this information on Chatter
       * improve bounce email management: track bounced notifications emails, use
         message_bounce fields directly in mail and not in mass_mailing
       * send emails to assigned user on records
       * remove required alias on users while keeping it possible to define alias
         on users and use them
       * handle emails forwarded to aliases as new threads instead of replies
       * do not store needaction for forum and blog posts
       * automatically unsubscribe partners that bounce on channels
       * some light code cleaning
      abc7d83e
    • Thibault Delavallée's avatar
      [IMP] mail: unsubscribe partners that bounce on channels · 6404d50c
      Thibault Delavallée authored
      If a partner bounces more than 10 times on a channel, unsubscribe him from the
      channel.
      6404d50c
    • Thibault Delavallée's avatar
      [IMP] mail, website_forum, website_blog: avoid storing message needaction partners · af703b82
      Thibault Delavallée authored
      Forum and blog are public models that could have a lot of followers. After
      notifying followers of a new comment, discard the needaction information.
      For those models email is considered as sufficient. This way we avoid storing
      a lot of unnecessary entries in the m2m table between message and partner.
      af703b82
    • Thibault Delavallée's avatar
      [REM] mail, forum: remove hack to add buttons in forum notifications · 2ae09150
      Thibault Delavallée authored
      It has been solved using the standard way of managing buttons in notification
      emails. At least we hope it.
      2ae09150
    • Thibault Delavallée's avatar
      [IMP] mail: avoid adding alias-partner as followers · cfc91c06
      Thibault Delavallée authored
      Having followers having an email address being an alias is rarely a good idea.
      cfc91c06
    • Thibault Delavallée's avatar
      [IMP] mail: handle forwarded emails in mailgateway · 4f9105a4
      Thibault Delavallée authored
      If the 'To' of an incoming email is an alias on another model we now consider
      this emails as a forward to a new alias. A use case for this is an email on
      a task that should be considered as an issue and forwarded to another alias.
      4f9105a4
    • Thibault Delavallée's avatar
      [IMP] mail, various: send email to assigned people · 0bedc14c
      Thibault Delavallée authored
      When a user is assigned to a model on a user_id field an email is sent to him
      containing a link to the document. This way the user is warned he is now
      responsible of the task / issue / lead / ...
      0bedc14c
    • Thibault Delavallée's avatar
      [IMP] mail: send email notifications after transaction commit · 38e181ee
      Thibault Delavallée authored
      Using after commit event notifications emails are now send once the current
      transaction is finished. This allows having issues with emails being sent
      while the transaction failed sometimes after email sending, but still in the
      same transaction.
      
      A small hook is done to allow invitation emails to be sent directly as some
      data related to mail.message is unlinked directly in the wizard.
      38e181ee
    • Thibault Delavallée's avatar
      [REF] mail: remove required alias on users · 029d1baf
      Thibault Delavallée authored
      This commit remove required alias on res.users model. It also removes the
      inheritance of mail.alias.mixin. The field alias_id is kept and allow people
      to use aliases on users if they want. However there is no default void alias
      created for each user anymore.
      
      Default from of mail.message does not use user alias anymore. Indeed this
      creates issues with aliases not being correctly configured and can be
      confusing compared to private channels. Using user aliases is therefore
      now done manually instead of being a default behavior.
      029d1baf
    • Thibault Delavallée's avatar
      [IMP] mail: bounce management · 9c1af690
      Thibault Delavallée authored
      Handle bounces using bounce alias directly in mailgateway. Previously bounces
      were used only in mass mailing to update campaign statistics. Now the
      mailgateway tries to find data from standard delivery status emails. This
      data is used to update state of emails sent to customers, to display it in
      the Chatter. It is also used to increment the message_bounce counter on the
      bounced partner and bounced record, if any and if the field exists.
      
      Previous more generic code that detect bounces is kept. This code is more specific
      to standard delivery failure notifications by parsing its content.
      9c1af690
    • Thibault Delavallée's avatar
      [IMP] mail: improve notification management for customers · 72dfcae2
      Thibault Delavallée authored
      Currently it is impossible in Discuss to know whether an email has been sent
      to a customer and whether it failed or bounced. A notified partner has an
      entry in the needaction m2m table. In this commit we decorate this table to
      add fields about the email notification: is an email sent, did it failed, did
      it bounce.
      
      This information is kept only for customers. Internal users does not use this
      information. Moreover their notification is deleted once the message is read
      in the Chatter. This avoids having a notification table that grows quickly.
      
      Chatter now holds a new icon for email details. It allows to know on a thread
      status of emails sent to customers.
      72dfcae2
    • Thibault Delavallée's avatar
      [REM] mail: remove support of [ID] matching in subject in mail gateway · 21949937
      Thibault Delavallée authored
      This is an old compatibility code. It is time to remove it as it is not used
      sinces ages.
      21949937
    • Thibault Delavallée's avatar
      [FIX][IMP] mail, mass_mailing: improve making of Return-Path alias · 0843df21
      Thibault Delavallée authored
      Previously Return-Path were composed using bounce_alias-<mail_id>-<model>-
      <thread_id> . However this may lead to return adresses not supported by
      the incoming mail server. We now form the bounce alias using bounce_alis+
      <mail_id>-<model>-<thread_id>. Using a + indicates that the right part of
      the address is for information and used to manage the bounce. Only the
      left part is used for the email routing, allowing the return email to
      effectively land in the alias mailbox.
      0843df21
    • Thibault Delavallée's avatar
      [FIX][IMP] mail: check for rcptto when finding destination aliases · 6aebdc2a
      Thibault Delavallée authored
      When a new answer comes in a thread the mailgateway finds if the recipients
      are linked to existing aliases. This allows notably to check if the author
      can effectively contact this alias. Previously only the To was checked.
      However we cannot ensure the recipient is contained in To as it could be
      in Delivered-To for example. We now check for all possible recipients.
      6aebdc2a
    • Thibault Delavallée's avatar
      [CLEAN] mail: clean mail gateway code · 0028c421
      Thibault Delavallée authored
      The purpose of this commit is to clean a bit the code related to email
      routing in the mailgateway: message_route and message_route_verify.
      
      message_route is now clearly separeted into two categories. First one
      handles emails considered as answers to existing threads. Second one
      handles emails that have to create new threads, either through alias or
      default behavior of the mailgateway.
      
      message_route_verify has been a bit facotrized to simplify the various
      overrides that appeared lately in the codebase.
      
      This commit only contains code cleaning. No functional change should occur
      due to this commit.
      0028c421
    • Yannick Tivisse's avatar
      [IMP] sale: Only create analytic line on Sales Order · a9875b03
      Yannick Tivisse authored
      Before creating a account analytic line related to a sale order, check that the sale order is in 'sale' state, i.e. not a quotation, not in done or canceled state.
      
      The issue is that when validating an expense (for example, but it's the same for a timesheet), the analytic account line is created even if related to a canceled sale order which is obviously wrong. This was leading to confusions about what's displayed, what is existing and not displayed and whatever.
      
      This was the behavior before this commit 48ea59d4
      a9875b03
    • Thibault Delavallée's avatar
      [CLEAN] mail, tools: factorize decode email tools · b259eb69
      Thibault Delavallée authored
      mail.mail and mail.thread have methods to decode headers. This commit
      move them in mail tools. It is indeed simplier to have all email tools
      in the same file. Moreover they have been renamed to avoid confusion
      with standard library methods: decode and decode_header already exist.
      
       * decode in mail_message is now decode_smtp_header
       * decode_header in mail_thread is now decode_message_header
      
      A method to data from references is also moved into tools. A regex was
      already defined in tools. Now the method using it is already put in tools.
      Mailgateway will now simply call this method.
      b259eb69
    • Thibault Delavallée's avatar
      [IMP] mail: clean test about forwarded emails and parent_id · ea4c4a22
      Thibault Delavallée authored
      Previous version of the test was actually not correct. Mailgateway was not
      considering references as in-reply-to when trying to find answers that have
      to be considered as a new thread instead of an answer to an existing thread.
      
      Purpose of the test is actually to be sure that answers considered as a new
      thread have no parent_id set. Otherwise you may have threads linked to
      messages belonging to other records, leading to access right issues. Moreover
      if this email begins a new discussion thread it makes no sense to have a
      parent message set.
      
      A new test is written to better simulate the test case. It sets a message_id
      containing reply_to which is the way odoo uses to indicated that answers
      to a message have to be considered as new threads. This is used notably in
      mass mailing for example.
      ea4c4a22
    • Thibault Delavallée's avatar
      [IMP] base: partner: add notion of customer or shared-user partner · d7b4c8b9
      Thibault Delavallée authored
      We already know that a user is a shared user. This means a partner created
      for a customer for the purpose of sharing data. However sometimes it is
      interesting to know that a given partner is a customer or a partner linked
      to a shared user. This will be used notably in the Discuss app.
      d7b4c8b9
  2. Aug 31, 2016
Loading