Skip to content
Snippets Groups Projects
  1. Aug 07, 2014
  2. Aug 06, 2014
  3. Aug 05, 2014
  4. Aug 04, 2014
  5. Aug 01, 2014
    • Olivier Dony's avatar
      [FIX] Model.load(): extra error checking while importing data · 9411a2da
      Olivier Dony authored
      If any missing or partially incorrect values cause
      an exception other than a psycopg2 error, we should
      still catch it, rollback that record and report
      the error, rather than letting bubble and fail
      without any feedback to the user.
      
      Fixes #1485
      9411a2da
    • Martin Trigaux's avatar
    • Dharti Ratani's avatar
      [FIX] orm: set default before removing magic fields · eb775fc2
      Dharti Ratani authored
      When a record is created, the magic fields (id, create_date,...) are first removed from the vals as the user should not set a value for these.
      However if a value for this is given in default value (e.g. defined in an ir.value), the creation would crash (sql error : column specified more than once) as the magic column would be added again.
      eb775fc2
    • Olivier Dony's avatar
      [FIX] orm.search_count: ignore `limit`, `offset` and most importantly `order` · e79a3675
      Olivier Dony authored
      These parameters are (or should be) irrelevant for
      a search_count(), and they could actually break the
      result or make it significantly slower (e.g applying
      `order` on large tables).
      This fixes a performance regression introduced by
      0f43032b.
      
      We could also raise an error offset/limit are
      passed in combination with count, but that seems
      unnecessary.
      
      Also switched to "SELECT count(1)" for the count
      query, as it is simpler and just as fast.
      We'd get the same perf with * or any constant value,
      as in "SELECT count('me in')", but let's keep it
      simple ;-)
      e79a3675
  6. Jul 30, 2014
  7. Jul 29, 2014
  8. Jul 28, 2014
    • Martin Trigaux's avatar
      Revert 3dec0907 "[FIX] ir_values: fallback when no condition" · cd013aa0
      Martin Trigaux authored
      An ir.value without condition should not match when searching with a condition.
      When a field with change_default on it is modified, the method get_defaults is called with the new value. This means that manually modifying a field with this trigger would put back the default value (opw 611193).
      cd013aa0
Loading