Skip to content
Snippets Groups Projects
  1. Dec 26, 2016
    • Nicolas Lempereur's avatar
      [FIX] mail: linkify livechat message so frontend has them · 46f84b02
      Nicolas Lempereur authored
      In ff56304f a solution was tried to have message posted from
      backend livechat linkified for visitor in frontend. This was
      forward-ported when it should not have been and introduced issues
      including:
      
      - `href="{link}"` would become `href="<a href="{link}">{link}</a>"`
      
      - if html entities such as the ones for U+00A0, and entities <, >,
        ', " or ` were next to the link, the entity would be linkified
        too (up to the ;)
      
      This happen because utils.linkify function is to be used with text
      content and not html which was the case in this instance.
      
      opw-693457
      opw-702410
      46f84b02
    • Nicolas Lempereur's avatar
      Revert "[FIX] mail: livechat escaping" · 88d7e7f6
      Nicolas Lempereur authored
      This reverts commit 1c60a631.
      
      The fix was done to conciliate 83956d4c and ff56304f but ff56304f was
      forward-ported erroneously and introduced other issues.
      
      opw-702410
      88d7e7f6
    • Nicolas Martinelli's avatar
      [FIX] stock: hide "Run Reordering Rules" · 562f141f
      Nicolas Martinelli authored
      This should only be accessible in debug mode, since it is already
      possible to run the schedulers (with a simialr effect) manually.
      562f141f
    • Nicolas Martinelli's avatar
      [FIX] stock: prevent concurrent procurement creation · bdbda19b
      Nicolas Martinelli authored
      When the user clicks on "Run Reordering Rules", it might create
      procurements. However, the cron "Run mrp scheduler" will also create
      procurements and might already be running in the background. Therefore,
      we need to make sure that both actions don't run concurrently.
      
      Note that the same check is done for the wizard "Run Schedulers".
      
      opw-695607
      bdbda19b
    • Goffin Simon's avatar
      [FIX] mrp: field resource_type in mrp.workcenter tree view · 22fb76a0
      Goffin Simon authored
      The field resource_type in mrp.workcenter tree view must be invisible because
      this field was not available in the form view before f9f4bba2
      
      Adding resource_type in the form view had no business case.
      
      opw:698183
      22fb76a0
  2. Dec 25, 2016
  3. Dec 23, 2016
    • Jérome Maes's avatar
      [FIX] website_mail: remove class which hide the attachment · 2f82aa82
      Jérome Maes authored
      Attachment should be visible in website chatter.
      Due to a bad copy/paste, the attachments are hidden
      when website_mail_channel is installed.
      2f82aa82
    • Denis Ledoux's avatar
      [FIX] sale_order_dates: commitment date for policy all at once · 6cb5fc33
      Denis Ledoux authored
      When the policy of the sale order is set to
      `Deliver all products at once`,
      the commitment date should be the maximum of the order lines lead time
      rather than the minimum, as you will deliver all lines at the same time
      
      It looks like the former behavior is applied since Odoo 7.0
      d8d0b884
      
      It should therefore actually be applied in 7.0/8.0/9.0,
      but we consider the risk too high for databases
      that are used to the former behavior, and expect the old behavior.
      
      We therefore apply this revision only in 10.0, to minimize the risks.
      
      opw-702271
      6cb5fc33
    • Nicolas Martinelli's avatar
      [FIX] mail: livechat escaping · 1c60a631
      Nicolas Martinelli authored
      - In a livechat window, type a URL, then end by a space. For example,
        type "https://odoo.com " (whithout quotes)
      - Press enter
      
      It is converted into "https://odoo.com&nbsp;".
      
      opw-702410
      1c60a631
    • Nicolas Lempereur's avatar
      [FIX] project_issue: new issue if create_date in view · dd363f03
      Nicolas Lempereur authored
      The depends for an issue inactivity_days expects a set create_date but
      this may not be the case (when creating the record for example with the
      field create_date in the form view).
      
      opw-702532
      dd363f03
  4. Dec 22, 2016
    • Nicolas Martinelli's avatar
      [FIX] mail: escape canned responses · 3d777ad2
      Nicolas Martinelli authored
      Create a canned response containing the character "<". It is
      automatically converted into "&lt;".
      
      The substitution field is systematically escaped, for security reason.
      This causes the substitution observed. However, the canned responses are
      only used in text-only messages. The escaping is therefore not
      necessary, since the HTML is not interpreted.
      
      opw-693970
      3d777ad2
    • Nicolas Martinelli's avatar
      [FIX] web: y-axis width in graph view · bb2a9482
      Nicolas Martinelli authored
      Simplifies the left margin calculation logic with a pre-defined width.
      In practice, more use cases should be taken into account, and that could
      just make the logic overkill.
      
      opw-697626
      bb2a9482
    • Martin Trigaux's avatar
      4a515a04
    • Nicolas Martinelli's avatar
      [FIX] web: y-axis precision · a67ba328
      Nicolas Martinelli authored
      In graph view, the y-axis always uses the standard float precision with
      2 digits. This might not be enough if the precision was defined
      differently for a given float type.
      
      opw-697625
      a67ba328
    • Henry Zhou's avatar
      [CLA] signature for jlzhou · 2455e178
      Henry Zhou authored
      Done at #13888
      2455e178
    • Iker's avatar
      [CLA] signature for iluque · 3ed91cea
      Iker authored
      Signed at #13976
      3ed91cea
    • smartupdo's avatar
      [CLA] signature for smartupd · 22e563af
      smartupdo authored
      Signed at #14010
      22e563af
    • lnkdel's avatar
      [CLA] signature for Liujianyun · fd985ffa
      lnkdel authored
      Closes #14251
      fd985ffa
    • Martin Trigaux's avatar
      [IMP] pos: better default start date · dae737ec
      Martin Trigaux authored
      1;2802;0c
      now() was bad as it excluded the orders of the latest session
      midnight is not good either because
      - midnight server != midnight user (timezone)
      - some restaurant, bars start in the evening and finish after midgnight
      
      With this default, with 4 sessions:
      - POS A, start 2016-12-21 08:05:36
      - POS B, start 2016-12-21 08:08:11
      - POS A, start 2016-12-22 08:17:51
      - POS B, start 2016-12-21 08:19:23
      
      The default start date will be 2016-12-22 08:17:51 to include all orders of
      both sessions.
      dae737ec
    • Nicolas Martinelli's avatar
      [FIX] web: rotate graph label · a552a74f
      Nicolas Martinelli authored
      When there are too many labels to display on the x-axis, they overlap
      and it simply becomes unreadable. By slightly rotating them, this can be
      avoided in most cases.
      
      opw-697625
      opw-697626
      a552a74f
    • Martin Trigaux's avatar
      [FIX] point_of_sale: generates sale details using dates · eca8a087
      Martin Trigaux authored
      The dates were lost when in render_html as replaced by the one in the context
      (None so fallback on today).
      
      Avoid calling twice get_sale_details
      
      Fixes #14789
      Replaces and closes #14790
      eca8a087
  5. Dec 21, 2016
  6. Dec 20, 2016
    • Jeremy Kersten's avatar
      [FIX] mail: avoid to send email about assignation to active_domain. · 3f267a59
      Jeremy Kersten authored
      Before this commit, 'select all' into a list view, and use an action that assign
      a user_id to all the records will send n² email, because the function send_mail
      use active_domain instead of the current record.
      
      Now, we keep mass_mail mode, but simulate the case where we have clicked on
      each record one by one and not all the records matching the active_domain.
      So we send only one email by record.
      
      How to reproduce:
         create a action server "record.write(dict(user_id=env.user_id))"
         add this action in context menu
         select all records in a list and apply the action server
      3f267a59
    • Jeremy Kersten's avatar
      [FIX] base_import: parse format from relation fields. · 8416c2bc
      Jeremy Kersten authored
      Before this commit, the parser (date, datetime, float, monetary, ...) was only
      called on field from current model, and not on sub field.
      
      Eg: product_id.price was not parsed as float, because product_id != float
      
      This commit add an overiddable function to get all the parsers: get_parsers
      
      This commit closes #14572
      8416c2bc
    • Denis Vermylen (dve)'s avatar
      0c134834
    • Denis Vermylen (dve)'s avatar
      [FIX] product: return id instead of recordset · 3068afd8
      Denis Vermylen (dve) authored
      _get_partner_pricelist could return both a recordset or an ID.
      While the ORM handles both where the method is called, a migration script
      relies on an ID being returned.
      ( migrations/sale_contract/9.saas~13.1.1/pre-models.py", line 24 )
      
      This commit ensures an ID is being returned every time.
      3068afd8
    • David Tran's avatar
      [FIX] l10n_vn: wrong account code · 8a589ac1
      David Tran authored
      account 343112 should be 34312
      account 343113 should be 34313
      
      Closes #14557
      8a589ac1
    • Goffin Simon's avatar
      [FIX] stock: Inventory adjustments in multi company · 8955d15e
      Goffin Simon authored
      When making an inventory adjustment in multi company,
      the default location_id was all the time taken from
      'stock.warehouse0' even if the user was not allowed to read
      the warehouse. Inspired from _get_default_location in pos_config.py
      
      opw:695616
      8955d15e
    • Jeremy Kersten's avatar
      [FIX] website_customer: fix new api migration · a35cce20
      Jeremy Kersten authored
      Avoid traceback 'list indices must be integers, not str' when country_id not in sidebar.
      env.browse(id).read(['name']) return a list, so country['name'] should be country[0]['name']
      a35cce20
  7. Dec 19, 2016
Loading