Skip to content
Snippets Groups Projects
  1. May 06, 2016
  2. May 05, 2016
  3. May 04, 2016
  4. May 03, 2016
  5. May 02, 2016
  6. May 01, 2016
  7. Apr 29, 2016
    • Raphael Collet's avatar
      [FIX] expression: fix missing results in direct search on many2many fields · ba5f5614
      Raphael Collet authored
      This case corresponds to searches like `[(field, 'ilike', name)]` where `field`
      is a many2many field.  The domain processing performs a `name_search` on the
      field's comodel, then makes the relation match the returned record ids.
      
      Problem: the call to `name_search` uses the default limit (100), and this makes
      the search return less results than expected.  Make the search complete by
      forcing `limit=None`.
      ba5f5614
    • Raphael Collet's avatar
      [FIX] expression: fix missing results in direct search on many2many fields · c7baab67
      Raphael Collet authored
      This case corresponds to searches like `[(field, 'ilike', name)]` where `field`
      is a many2many field.  The domain processing performs a `name_search` on the
      field's comodel, then makes the relation match the returned record ids.
      
      Problem: the call to `name_search` uses the default limit (100), and this makes
      the search return less results than expected.  Make the search complete by
      forcing `limit=None`.
      c7baab67
  8. Apr 28, 2016
  9. Apr 26, 2016
    • Stefan Rijnhart's avatar
      [FIX] tools: export translated fields not included in _columns · 0c2f7bdb
      Stefan Rijnhart authored
      Non-stored new API computed fields are only defined in _fields
      but not in _columns, and they were never exported within translation
      files.
      
      Closes #9081
      0c2f7bdb
    • Christophe Simonis's avatar
      [FIX] calendar: correct search on mail.message and ir.attachment · 7e51d985
      Christophe Simonis authored
      Handle the case of immutable (tuple) domain leafs.
      7e51d985
    • Goffin Simon's avatar
      [FIX] account_asset: asset_create · d8121753
      Goffin Simon authored
      When creating assets from invoice lines, the system must check
      that assets have not already been created for the related invoice.
      If assets already exist then these assets have to be removed.
      
      Used case:
      
      - In the purchase journal, tick "allow canceling entries"
      - On a supplier invoice line, set an asset category
      - validate the invoice
      - cancel the invoice
      - set to draft
      - validate the invoice
      
      Before the fix: the asset is created twice.
      After the fix: the asset is created once.
      
      opw:674674
      d8121753
    • Nicolas Martinelli's avatar
      [FIX] website_sale: log if no pricelist · f5eae92f
      Nicolas Martinelli authored
      The pricelist field is not a mandatory field on the partner. A default
      value is usually defined for any new partner created. However, if the
      pricelist is manually removed from the partner, errors (tracebacks) will
      occur in the eCommerce when no pricelist is found.
      
      We cannot make the field mandatory, as it could potentially break the
      workflow of some users which are not using eCommerce. Therefore, we
      simply log an error message to help debugging.
      
      opw-673453
      f5eae92f
  10. Apr 25, 2016
  11. Apr 24, 2016
  12. Apr 22, 2016
  13. Apr 21, 2016
  14. Apr 20, 2016
    • oihane's avatar
      [FIX] hr_timesheet_invoice: fully qualify grouped fields in SQL view · 630f3d56
      oihane authored
      Avoids name collisions when custom columns are involved.
      
      Closes #11743
      630f3d56
    • Nicolas Martinelli's avatar
      [FIX] stock_landed_costs: precision · b112631b
      Nicolas Martinelli authored
      Oversight of commit bd025cda.
      I'm an idiot, I should have checked that another solution was applied
      from 9.0 with accounting refactoring. We apply it here as well.
      b112631b
    • Nicolas Martinelli's avatar
      [FIX] stock_landed_costs: account/valuation inconsistencies · eb26694e
      Nicolas Martinelli authored
      When stock landed costs are divided per product unit, inconsistencies
      may arise between the real stock valuation and the stock valuation
      account. This is likely to happen when several products are bought, but
      these products leave the stock one at a time.
      
      A numerical example is the following: a landed cost of 15.00 is applied
      to a purchase of 13 units. An amount of 15.00 is recorded when the
      products enter the stock. If the product leave the stock one at a time,
      13 entries of 1.15 are recorded (15.00/13 = 1.153846... ≈ 1.15), which
      is then equal to 13 * 1.15 = 14.95. In this case, All the products have
      left the stock (stock valuation is zero), but 5 cents remain on the
      account.
      
      This is of course even worse the higher the ratio is. For example, a
      landed cost of 4.00 split into 1000 units sold piece by piece will never
      be recorded when a product leaves the stock.
      
      The fix is to record the rounding difference on a specific quant. In the
      previous example, instead of adding 1.153846... on the unit cost of the
      13 units, we do the following:
      - 12 units to which we add 1.15 on unit cost
      - 1 unit to which we add 1.20 on unit cost
      
      opw-675222
      eb26694e
    • Nicolas Martinelli's avatar
      [FIX] stock_account: account/valuation inconsistencies · 262d98bb
      Nicolas Martinelli authored
      When the product price is divided per product unit, inconsistencies
      may arise between the real stock valuation and the stock valuation
      account. This is likely to happen when a product is bought in a UoM
      different from the standard UoM of the product.
      
      A numerical example is the following: a box of 13 is bought for 15.00.
      An amount of 15.00 is recorded when the products enter the stock. If the
      product leave the stock one at a time, 13 entries of 1.15 are recorded
      (15.00/13 = 1.153846... ≈ 1.15), which is then equal to
      13 * 1.15 = 14.95. In this case, All the products have left the stock
      (stock valuation is zero), but 5 cents remain on the account.
      
      This is of course even worse the higher the ratio is. For example, a
      box of 4.00 split into 1000 units sold piece by piece will never be
      recorded when a product leaves the stock.
      
      The fix is to record the rounding difference on a specific quant. In the
      previous example, instead of adding 1.153846... on the unit cost of the
      13 units, we do the following:
      - 12 units to which we add 1.15 on unit cost
      - 1 unit to which we add 1.20 on unit cost
      
      opw-675222
      262d98bb
    • Nicolas Martinelli's avatar
      [FIX] stock_landed_costs: former_cost_per_unit precision · bd025cda
      Nicolas Martinelli authored
      The precision of `former_cost_per_unit` should not be set. Indeed, a
      stock move can contain several quants with different unit prices.
      Therefore, we should not round the field when stored, otherwise the
      difference per unit will not be calculated correctly.
      
      This is a workaround since we cannot change the DB structure in stable.
      
      opw-675222
      bd025cda
    • Nicolas Martinelli's avatar
      [FIX] stock_landed_costs: use correct UoM · 85fd9721
      Nicolas Martinelli authored
      Use the normalized quantity, otherwise the amount per unit is wrongly
      calculated.
      85fd9721
    • Olivier Dony's avatar
      [FIX] web: fix db manager layout in Chrome 50 · fc2aa736
      Olivier Dony authored
      Complement of f992c8ee,
      to be reverted in saas-6+ and in 8.0 when Chrome's
      fix reaches the stable Chrome channel.
      
      Fixes #11629
      
      See https://bugs.chromium.org/p/chromium/issues/detail?id=603507
      fc2aa736
    • Joren Van Onder's avatar
      [FIX] point_of_sale: display correct uom on weighable products · d043fd03
      Joren Van Onder authored
      Everything's displayed fine on orderlines with weighable products, this
      only affected the small blue labels on the products.
      
      opw-674264
      d043fd03
Loading