Skip to content
Snippets Groups Projects
  1. Feb 02, 2016
  2. Feb 01, 2016
  3. Jan 26, 2016
  4. Jan 08, 2016
  5. Jan 01, 2016
  6. Dec 08, 2015
    • Nicolas Martinelli's avatar
      [FIX] auth_ldap: filter format · 8a7394a5
      Nicolas Martinelli authored
      The LDAP method filter_format(filter_template,assertion_values) requires
      that the length of assertion_values matches the count of %s in
      filter_template. If not, a TypeError exception is thrown.
      
      This fix catches the exception and displays an understandable error
      message instead.
      
      opw-608126
      opw-657370
      8a7394a5
  7. Dec 04, 2015
    • Jeremy Kersten's avatar
      [FIX] osv: fix boolean in domain for custom field · 3a1c6932
      Jeremy Kersten authored
      When a new column has been added after that some data already exists,
      the old lines will keep an empty/null value. So when we search is the new field
      is equals to False or if it is different of True, we need to match the null
      values.
      
      Backport of de3b6401
      3a1c6932
  8. Dec 01, 2015
  9. Nov 30, 2015
  10. Nov 26, 2015
  11. Nov 03, 2015
  12. Nov 17, 2015
  13. Nov 05, 2015
    • Nicolas Lempereur's avatar
      [IMP] base: test for expression distribute_not · d24fcd1d
      Nicolas Lempereur authored
      Testing the use case of c28a28e6, in which distribute_not was refactored
      with iteration instead of recursion.
      d24fcd1d
    • Raphael Collet's avatar
      [IMP] osv: use iteration for expression negating · c28a28e6
      Raphael Collet authored
      The current code when applying negative operator on an expression used
      recursion which in extreme case is not best friend with python.
      
      e.g: on instance with a lot of wharehouse, some simple action could lead
      to a domain with lot of elements which could easiliy go over the python
      maximum recursion limit.
      
      This commit fixes this by replacing recursion with iteration.
      
      We have a stack of negation flags and loop on each token of the domain
      as follow :
      
      - when we iterate on a leaf, it consumes the top negation flag,
      
      - after a '!' operator, the top token negation is inversed,
      
      - after an '&' or '|' operator, the top negation flag is duplicated on
        the top of the stack.
      
      closes #9433
      opw-653802
      c28a28e6
    • Denis Ledoux's avatar
      [FIX] hr_timesheet_sheet: total attendances & timesheets performances · a23468c8
      Denis Ledoux authored
      For these function fields, bypassing the ORM, using a SQL query,
      improves the execution time by 100 for a set of 80 timesheets
      in a database with
       - 250K `hr.analytic.timesheet`
      &
       - 250K `hr.attendance`.
      
      These function fields depends on a one2many field which use
      the SQL view `hr_timesheet_sheet_sheet_day`.
      
      When performing `sheet.period_ids`, two SQL requests are performed,
       - the first just to know the ids in the sql view matching this sheet
       - the second to read the fields `total_attendance` & `total_timesheet`
      and the request is performed on the entire set of lines of this view
      (~250K lines in the observed use case)
      
      while, when replaced by this SQL request, only one request is performed,
      on a restricted set of lines, speeding up significantly the computation
      of these computed fields for smaller sets of sheets.
      
      opw-653447
      a23468c8
  14. Nov 01, 2015
  15. Oct 26, 2015
  16. Oct 14, 2015
    • Nicolas Lempereur's avatar
      [FIX] workflow: don't process workitem several times · b0a4dd01
      Nicolas Lempereur authored
      In some complex use case of a workflow instance with several workitems,
      a given workitem processing could itself somewhat recursively process
      one of the following workitems.
      
      This situation was currently not taken into account, so in that given
      case, the already processed workitems would be processed again.
      
      opw-647580
      b0a4dd01
  17. Oct 12, 2015
  18. Oct 08, 2015
  19. Oct 07, 2015
  20. Oct 02, 2015
  21. Oct 01, 2015
  22. Sep 30, 2015
  23. Sep 28, 2015
  24. Sep 25, 2015
  25. Sep 24, 2015
  26. Sep 17, 2015
    • Valencia Rodrigues Sah's avatar
      [FIX] product: default value on required field · c2aff477
      Valencia Rodrigues Sah authored
      The qty fields has become computed in 6.1, and the value set by the user is on
      min_qty. Set default value as it is required.
      
      Closes #8561
      c2aff477
    • dufresnedavid's avatar
      [IMP] Prevent unclosed cursor during tests · cc9113f8
      dufresnedavid authored
      If an error happens in an overload of setUp, the already-open cursor
      is likely not to get properly released before the next test,
      deadlocking the db, because tearDown only runs if setUp has
      succesfully completed.
      
      Cleanups were added specifically to run every time, after tearDown has
      (potentially) been executed.
      
      closes #8327
      
      Note: cleanups run in LIFO order (as they should).
      cc9113f8
  27. Sep 14, 2015
Loading