Skip to content
Snippets Groups Projects
  1. Dec 22, 2016
  2. Dec 21, 2016
  3. 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
      Unverified
      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
  4. Dec 19, 2016
  5. Dec 18, 2016
  6. Dec 16, 2016
    • Josse Colpaert's avatar
      [FIX] mrp: blocking a work order and workcenter state · 54107a36
      Josse Colpaert authored
      The issue is that if you block a workorder when you exceeded the
      expected time, the workcenter is not blocked.
      
      The workcenter state is computed according to its productivity lines.
      The productivy lines are marked with a loss type type that define the
      reason of the time loss (availability problem like missing equipment or
      quality problem like broken equipment). There are also two magic loss
      type that define if the work on the workcenter is done in the expected
      time (fully productive time) or is done exceeding the expected time
      (reduced speed). The unblock button appears if the workcenter is
      blocked.
      
      To compute the workcenter state, we have to look through the last
      productivity line of the workcenter having no end_date. Before the
      patch, we look for the last productivity line and it could return one
      with an end_date while there was a productivity line without one and it
      was this one that would define the workcenter state.
      
      This is solved by immediately searching for a record without end date.
      We also add some comment to the code to understand a little more what's
      going on.
      54107a36
    • Christophe Simonis's avatar
    • Raphael Collet's avatar
      [FIX] module deinstallation: do not prevent `ir.model.field` deletion · 1cfbbfaf
      Raphael Collet authored
      Some code prevents to modify or delete an `ir.model.field` if another field
      depends on it (like one2many depending on many2one).  Make a special case when
      the code is executed during a module deinstallation.
      
      OPW 694009
      1cfbbfaf
    • Christophe Simonis's avatar
Loading