Skip to content
Snippets Groups Projects
  1. May 02, 2016
  2. May 01, 2016
  3. 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
  4. Apr 28, 2016
  5. 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
    • Goffin Simon's avatar
      [FIX] account_asset: asset_create · 64e822c8
      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
      
      Note: This is a cherry-pick of commits 9d14230d and 58a5b5e4
      64e822c8
    • 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
  6. Apr 25, 2016
  7. Apr 24, 2016
  8. Apr 22, 2016
    • Raphael Collet's avatar
      [FIX] models: fix *2many multi-onchange bug · 86d276b4
      Raphael Collet authored
      This fixes the case where the lines of a one2many field are modified several
      times by onchange methods: instead of retrieving the most recent updates, we
      merge them with former updates.
      
      This solution was written as an improvement of a proposal made by Alexis
      Delattre and Sébastien Beau as #11620.
      86d276b4
    • Martin Trigaux's avatar
      [FIX] orm: do not save empty translation as 'false' · fd7a7207
      Martin Trigaux authored
      When writting a value on a translatable field in a different language than
      English, the submitted *raw* value was saved in the database.
      
      This could cause the following issues:
      - empty value (provided as `False` by the web client) saved as the string
        'false' in the translations table
      - no encoding or sanitization convertion
      - ignore size parameter on the translatable field
      
      Process the submitted translation through symbol_set method to clean it before
      storing it blindly in the database.
      
      This allows to convert `False` into `''` for empty value and fixes #10862
      fd7a7207
    • Adrien Peiffer (ACSONE)'s avatar
      [FIX] account: Allow to select sale taxes in bank statement reconciliation... · 600f8845
      Adrien Peiffer (ACSONE) authored
      [FIX] account: Allow to select sale taxes in bank statement reconciliation process. Courtesy of adrienpeiffer. PR #11673
      600f8845
    • Levent Karakas's avatar
      [FIX] sale: untranslated label · 7c584d3e
      Levent Karakas authored
      attribute string is translatable on a search filter, not name (which is used as fallback label
      Closes #10419
      7c584d3e
    • Levent Karakas's avatar
      [FIX] mail: mail template translation · 9d445442
      Levent Karakas authored
      Do not match with source
      Closes #11789
      9d445442
  9. Apr 21, 2016
  10. 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
    • Christophe Simonis's avatar
    • Christophe Simonis's avatar
    • 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
    • Stephen Medina's avatar
      [FIX] server: support psutils >= 4.0 · 92f1cbeb
      Stephen Medina authored
      In version 3, process.memory_info() returns only rss and vms
      In version 4, it now returns rss, vms, shared, text, lib, data and dirty
      Automatic unpacking is no longer possible in 4.0
      
      Fixes #11052, Closes #11459
      92f1cbeb
    • Stephen Medina's avatar
      [CLA] signature for stephen144 · 58d99909
      Stephen Medina authored
      signature #11459
      58d99909
    • Eduardo Rodríguez Crespo's avatar
      [CLA] signature for erocre · 364e80f7
      Eduardo Rodríguez Crespo authored
      Closes #11639
      364e80f7
  11. Apr 19, 2016
Loading