Skip to content
Snippets Groups Projects
  1. May 29, 2019
    • Xavier-Do's avatar
      [REF] mail: rename notif_layout to email_layout_xmlid on message model · 2fcb3c65
      Xavier-Do authored
      Purpose is to make field use more obvious by correctly stating in the
      name it should contain an xml id to a qweb layout used for email
      notifications. This renaming is propagated through various calls and
      addons.
      
      Related to task 1943901
      Linked to PR #32404
      2fcb3c65
    • Xavier-Do's avatar
      [REF] mail: simplify notification code · 581a7414
      Xavier-Do authored
      Purpose of this commit is to clean notification process: calls, methods
      API, method name, variable propagation.
      
      Contains notably
      
        * simplify API of methods used to group recipients when sending notification
          emails;
        * improve and rename methods used in email notification process;
        * move some methods on model itself as non mail thread records could be
          mass-mailed and _notify_email_headers could be called on other records;
      
      Related to task 1943901
      Linked to PR #32404
      581a7414
    • Xavier-Do's avatar
      [FIX] mail: avoid crash when sending emails if no notification layout is found · b4e9b3fb
      Xavier-Do authored
      If no email layout is found when trying to render the layout around the
      message content, just send body in notification emails instead of
      crashing. See notably 89051058 .
      
      Related to task 1943901
      Linked to PR #32404
      b4e9b3fb
    • Xavier-Do's avatar
      [MOV] mail: move notification methods from mail.message / res.partner to mail.thread · 7a626971
      Xavier-Do authored
      Purpose of this commit is to move notification methods to mail.thread. Indeed
      currently they are split among several models: thread, message, partner.
      It makes code difficult to understand. Base record has to be propagated in
      order to run methods on it. It is therefore simpler to make those methods
      on mail.thread and correctly have model methods.
      
      All notification methods are moved into a single section in the mail.thread
      file. This implies some more code move inside mail.thread but allow to have
      methods classified by their purpose.
      
      Related to task 1943901
      Linked to PR #32404
      7a626971
    • XavierDo's avatar
      [REF] mail: improve message_post and message_notify API · 6f43977a
      XavierDo authored
      Message post should always be called on a record (ensure_one). That way we
      ensure posting a message is always done in a record's context with right
      values computed (reply_to, followers, ...)
      
      Message_notify can be called on record or on mail_thread and must have
      partner_ids. It is based on the recently modified user_notification mechanism
      and allow to notify a partner on a record or just to push him a message
      (aka, not linked to a record).
      
      Small performance improvement
      
        * browse recipients instead of search in _notify_email_recipients;
        * todo in future optimizations: mayybe be improve by searching on ids
          and is_blacklist immediately;
      
      Related to task 1943901
      Linked to PR #32404
      6f43977a
    • Xavier-Do's avatar
      [REF] mail, various: apply light code cleaning · c9d173a3
      Xavier-Do authored
      Purpose of this commit is to clean some bits of code, notably calls to
      message_post/log as well as notification methods. It will ease performance
      improvement work.
      
      Small optimization: account: read content after extension check
      
      Parameter cleaning
      
       * use message log with kwargs instead of args;
       * remove message post after hook useless parameters;
       * remove _notify_email_recipients useless message parameter;
       * remove message_notify useless send_after_commit parameters;
       * remove message post params matching default values;
      
      Other improvements
      
       * remove message_post commands support for partners and channels;
       * only calls message_post with ids list for channels and partners. We
         don't support mix of ids and command anymore to simplify code;
       * remove support of private discussion in mail.thread adding partners
         as recipients, as there is no use anymore;
      
      Related to task 1943901
      Linked to PR #32404
      c9d173a3
    • Xavier-Do's avatar
      [IMP] test_mail: add a complex performance test for message_post · 2bfc0bc8
      Xavier-Do authored
      It includes notification on inbox / email as well as attachments management.
      This latter one adds quite a lot of queries and is not currently tested
      for performances. Future commits will improve those counters.
      
      Related to task 1943901
      Linked to PR #32404
      2bfc0bc8
    • XavierDo's avatar
      [IMP] mail: improve user notification model in mail.message · d917b2d0
      XavierDo authored
      Currently if a message has a res_id and a res_model it appears in the
      matching record's chatter. Its access rights are computed based on this
      record. This is the standard behavior of mail.message model.
      
      User notifications are currently built on messages not having model and
      res_id in order to avoid appearing on chatter. This has several drawbacks
      notably access rights, redirection to the record, systray, finding back
      records, ...
      
      This commit solves those issues by adding new message_type 'user_notification'
      that should be as a classic mail.message with model and res_id but without
      the whole notification mechanism and without being displayed in the chatter.
      
      An user notification is now a classic message pushed to a given partner only
      and not displayed in the chatter.
      
      Related to task 1943901
      Linked to PR #32404
      d917b2d0
    • Pierre Masereel's avatar
      [FIX] point_of_sale: fix onchange pricelist · 49ac956b
      Pierre Masereel authored
      
      Since ORM changes, the ids a many2many are new (virtual) ones in a
      onchange, so we have to point to origin which are the real records to
      check that the many2one is in as it has a real id.
      
      closes odoo/odoo#33763
      
      Signed-off-by: default avatarpimodoo <pimodoo@users.noreply.github.com>
      49ac956b
    • Robot Odoo's avatar
      [MERGE] stock,mrp,purchase,sale: rescheduling propagation · 5f02ae44
      Robot Odoo authored
      
      Currently the fact that the changes in the expected dates are propagated
      or not is based on :
      - the value of the field propagate on the stock.rule
      - the general inventory setting setting use_propagation_minimum_delta
      
      That's not easy to understand for users and difficult to configure.
      
      The purpose of this task is to clarify this configuration (everything is configured
      at the same place + but we keep the flexibility by setting this config on the stock.rule)
      
      task-1913401
      
      closes odoo/odoo#33719
      
      Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
      Unverified
      5f02ae44
    • Robot Odoo's avatar
      [IMP] hw_drivers, pos : Listen port in the IoT Box · 1d6bc728
      Robot Odoo authored
      
      We use a new method to connect the box to a device in the network.
      
      We use the socket to listen a specific port in the box to connect device through the TCP/IP
      
      Task: 1891152
      
      --
      I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
      
      closes odoo/odoo#33398
      
      Signed-off-by: default avatarQuentin Lejeune (qle) <qle@odoo.com>
      Unverified
      1d6bc728
    • lejeune quentin's avatar
      [IMP] pos: Improve visual payments lines · 7c31e0d2
      lejeune quentin authored
      This commit improve the display of payments lines and give
      a name to last notebook group in /addons/point_of_sale/views/account_statement_view.xml
      to be able to override it in enterprise
      7c31e0d2
    • lejeune quentin's avatar
      [IMP] hw_drivers: Adds the ability to listen to a port · ccb2835c
      lejeune quentin authored
      With this commit it is now possible for the IoT Box
      to listen on a specific port of the box to interact
      with a device via TCP / IP.
      
      We use the library 'socket' to listen on port 9000
      and if a request comes on this port we create an IoT Device
      ccb2835c
    • Haresh Shyara's avatar
      [REF] mrp: rescheduling propagation · 4dc034ad
      Haresh Shyara authored
      Implement the propagation minimum delta per rule in mrp.
      
      Add a basic test.
      
      task-1913401
      4dc034ad
    • Haresh Shyara's avatar
      [ADD] sale_stock: schedule date tests · 5a388ac9
      Haresh Shyara authored
      task-1913401
      5a388ac9
    • Haresh Shyara's avatar
      [REF] purchase_stock: rescheduling propagation · 77b283f3
      Haresh Shyara authored
      Implement the propagation minimum delta per rule in purchase_stock. Override
      properly the write to handle both RFQ and PO. Take care of not merging po lines
      where the expecte date should be different
      
      Add propre test cases.
      
      task-1913401
      77b283f3
    • Haresh Shyara's avatar
      [REF] stock: rescheduling propagation · c514e8ae
      Haresh Shyara authored
      This commit moves the "propagation minimum delta" from a company setting to a
      per-rule setting.
      
      We implement this idea in the stock module and take this opportunity to clean
      up the override of stock move's write.
      
      We add a few basics tests.
      
      task-1913401
      c514e8ae
    • Fabrice Henrion's avatar
      [IMP] account: clarify portal label for invoices and bills · 4cae62ba
      Fabrice Henrion authored
      
      closes odoo/odoo#33732
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      4cae62ba
    • William Henrotin's avatar
      [FIX] mrp: relax asserts on date · 0bc8e680
      William Henrotin authored
      
      This commit relax, by one second, two datetimes comparison regarding
      workorder planning to avoid any false positives
      
      closes odoo/odoo#33740
      
      Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
      0bc8e680
    • Carel's avatar
      [CLA] signature for IvyWeb (Pty. Ltd.) · d0a8c3b2
      Carel authored
      
      This is the corporate licence agreement for IvyWeb (Pty. Ltd.)
      
      closes odoo/odoo#33728
      
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      d0a8c3b2
    • Yannick Tivisse's avatar
      [FIX] mail: Fix suggested companies behavior · 97e33b00
      Yannick Tivisse authored
      
      closes odoo/odoo#33721
      
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      97e33b00
    • Yannick Tivisse's avatar
    • Yannick Tivisse's avatar
    • Yannick Tivisse's avatar
    • Yannick Tivisse's avatar
      [IMP] api.py: Rename company_id/company_ids into company/companies · f5dfe472
      Yannick Tivisse authored
      The goal is to be coherent with the user property.
      
      Actually, company_id and company_ids on the environment are no fields.
      
      Calling env.company_id returns a browse record, not an id.
      f5dfe472
  2. May 15, 2019
  3. May 29, 2019
    • MaxLarue's avatar
      [IMP] sale_timesheet: overview usability and styling · e0b33e28
      MaxLarue authored
      
      In order to make the overview more understandable, we provide some modifications:
      
      - remove some value when they are zero ("No task found", ...)
      - the whole middle column (percentages) is merged inside the hours one
      - provide some tooltips
      - renaming titles
      - ...
      
      To do so and to avoid leaving empty lines or doing complicated template branching, the
      above table is split in two different tables, so that we can remove lines independently.
      
      We also added a new category in the overview, concerning timesheets that are related to a cancelled so. This meant tweaking the project_overview plan_prepare_value method, in order to have the new numbers calculated and keep the others consitent.
      
      Task-1968121
      
      closes odoo/odoo#33015
      
      Signed-off-by: default avatarJérome Maes (jem) <jem@openerp.com>
      e0b33e28
    • Juhil Somaiya's avatar
      [FIX] calendar: traceback on recurrent meetings when repetition number is 0 · 1f3a00fb
      Juhil Somaiya authored
      
      If the user tries to save the recurrent event with 0 as the number of
      repitations or interval there will be a traceback so instead of traceback
      display the warning so user will not be able to save that event.
      
      Task-1930809
      
      closes odoo/odoo#31388
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      1f3a00fb
  4. May 28, 2019
  5. Apr 08, 2019
  6. May 28, 2019
Loading