Skip to content
Snippets Groups Projects
  1. Aug 07, 2014
  2. Aug 06, 2014
  3. Aug 04, 2014
  4. Jul 30, 2014
    • Olivier Dony's avatar
      [REM] fields: remove fields.Any, temporary artifact for ill-typed fields · 57f79f9f
      Olivier Dony authored
      This was added in master-apiculture at f1f16a8 to
      permit special function fields that return
      structured JSON-like data.
      This is unnecessary and caused typing problems, for
      example for the type field of ir.model.fields, or
      when you decide to store them.
      
      It is simpler to explicitly declare these fields
      as fields.Char and have them serialize their results
      to JSON strings, or to declate them as fields.Binary
      and return any opaque data they want.
      57f79f9f
  5. Jul 23, 2014
    • Olivier Dony's avatar
      [FIX] fields: do not revalidate field values unless they are being modified · 8974e928
      Olivier Dony authored
      In the previous implementation of the new API fields,
      both fields.Selection and fields.Reference were performing
      early validation of their `value` as soon as it entered
      the cache, either by being read, written, or computed.
      This is a source of trouble and performance problems,
      and is unnecessary, as we should consider that the database
      always contains valid values. If that is not the case it
      means it was modified externally and is an exception that
      should be handled externally as well.
      
      Revalidating selection/reference values can be expensive
      when the domain of values is dynamic and requires extra
      database queries, with extra access rights control, etc.
      
      This patch adds a `validate` parameter to `convert_to_cache`,
      allowing to turn off the re-validation on demand. The ORM
      will turn off validation whenever the value being converted
      is supposed to be already validated, such as when reading it
      from the database.
      The parameter is currently ignored by all other fields,
      and defaults to True so validation is performed in all other
      caes.
      8974e928
  6. Jul 20, 2014
  7. Jul 08, 2014
  8. Jul 06, 2014
    • Raphael Collet's avatar
      [MERGE] new v8 api by rco · cbe2dbb6
      Raphael Collet authored
      A squashed merge is required as the conversion of the apiculture branch from
      bzr to git was not correctly done. The git history contains irrelevant blobs
      and commits. This branch brings a lot of changes and fixes, too many to list
      exhaustively.
      
      - New orm api, objects are now used instead of ids
      - Environements to encapsulates cr uid context while maintaining backward compatibility
      - Field compute attribute is a new object oriented way to define function fields
      - Shared browse record cache
      - New onchange protocol
      - Optional copy flag on fields
      - Documentation update
      - Dead code cleanup
      - Lots of fixes
      cbe2dbb6
Loading