Skip to content
Snippets Groups Projects
  1. May 21, 2015
  2. May 20, 2015
  3. May 19, 2015
    • Goffin Simon's avatar
      [FIX] purchase: validate invoice · cc61d467
      Goffin Simon authored
      A user that has the rights in Accounting & Finance equal to Invoicing & Payments
      must have the right to validate a supplier invoice.
      
      opw:634601
      cc61d467
  4. May 18, 2015
  5. May 13, 2015
    • Goffin Simon's avatar
      [FIX] web: With safari, UnicodeDecodeError · c435b843
      Goffin Simon authored
      The headers returned by content_disposition must be either in Unicode or in ASCII.
      The encode function expects a Unicode or ASCII string.
      The quote function from urllib2 expects a UTF-8 string and retruns a ASCII string.
      
      opw:634205
      Fixes #6160, #6557
      c435b843
    • Denis Ledoux's avatar
      [FIX] purchase: deletion of PO lines in states other than approved/done · acd61f8f
      Denis Ledoux authored
      This is related to revision 65d7cc52
      
      The `order_line` field of `purchase.order` is readonly within states
      aprroved, done. See the field definition. This means it should be
      possible to remove lines of a `purchase.order` when the PO is in
      any other state than approved or done.
      
      Therefore, the deletion of lines shouldn't be prevented
      when the PO is not in state approved or done
      
      opw-634538
      acd61f8f
  6. May 12, 2015
  7. May 11, 2015
  8. May 08, 2015
  9. May 07, 2015
  10. May 06, 2015
  11. May 05, 2015
  12. Apr 30, 2015
    • dufresnedavid's avatar
      [ÏMP] l10n_ca: complete Canadian chart of account · e601a416
      dufresnedavid authored
      Fixes #5496
      e601a416
    • dufresnedavid's avatar
      [FIX] l10n_ca: tax signs of refund taxes · f3339c6c
      dufresnedavid authored
      Fixes #5496
      f3339c6c
    • Denis Ledoux's avatar
      [FIX] web: advanced search on floats with ',' as decimal separator · 1da5d89b
      Denis Ledoux authored
      When using another decimal separator than `.` (dot)
      in the language settings,
      it wasn't possible to build an advanced search specifying
      the decimals.
      
      e.g. with a language with decimal separator `,` and thousand
      separator `.`,
      if you want to search invoices with amount total 366,38
      The advanced search "Total" "is equal to" obliged you
      to enter your number with `.` as separator (366.38),
      and then, when entering the search, the `.` was
      regarded as the thousand separator, giving as domain
      `('amount_total', '=', 36638)`, which is not what you asked.
      
      opw-634201
      
      PS: The `|| '.'` in the xml template are only for
      retro-compatibility, so if the server sources are
      updated, but the browser cache is not refreshed
      (meaning the Javascript code isn't refreshed, and,
      therefore, `widget.decimal_point is undefined)
      it still works.
      1da5d89b
  13. Apr 29, 2015
  14. Apr 28, 2015
  15. Apr 27, 2015
    • Goffin Simon's avatar
      [FIX] account: Taxes report · 3c055a76
      Goffin Simon authored
      The Tax Report printed with details should not include draft accounting entries.
      Technicaly, the account move lines include in a draft account move do not have to be
      printed
      
      opw:633642
      3c055a76
    • Denis Ledoux's avatar
      [FIX] account: tax_amount can be null in database · 3e7d3c7e
      Denis Ledoux authored
      The `tax_amount` of move lines is by default set to `0.0`.
      Nevertheless, this default value is set by Odoo,
      not by postgresql.
      
      This is therefore likely that the `tax_amount` is set as
      null instead of 0.0, in database.
      
      Therefore, when getting this value directly with a SQL
      request, this is possible that `null` will be returned.
      
      Therefore, in this specific case, `res.get(record.id, 0.0`
      could return `False`, if the sum of `tax_amount` is `null`,
      and try to multiply a boolean with an integer is not possible:
      `_rec_get(rec) * rec.sign`
      
      opw-633903
      3e7d3c7e
  16. Apr 24, 2015
  17. Apr 23, 2015
    • Nicolas Lempereur's avatar
      [FIX] stock,event,pos: fix "today" filter with regard to timezones · 81a3f566
      Nicolas Lempereur authored
      The previous filters didn't take timezones into account, and
      returned stringified naive datetime values in local browser
      time. Those would then be interpreted by the server-side as
      UTC date, and depending on the current timezone offset vs UTC,
      yield partially incorrect results.
      
      By returning directly a datetime.datetime object instead of
      a stringified version (see previous commit 76881fb2),
      we can get the expected result regarless of the timezone.
      
      Fixes #2972
      Closes #6229
      
      opw-621282
      81a3f566
    • Nicolas Lempereur's avatar
      [FIX] web: backport datetime.toJSON() so we can return local datetimes in search domains · 76881fb2
      Nicolas Lempereur authored
      This fix adds the toJSON() method to datetime.datetime,
      so domain expressions can use datetime values directly,
      without having to compute the stringified version
      with convoluted strftime() and timezone calculations.
      
      The datetime results are sent down to the JSON-RPC
      level where the JSON.stringify() serialization will
      convert them to UTC string, to be deserialized
      properly as UTC datetime values on the server side.
      
      Thanks to this we can use the browser's local midnight
      timestamp in a filter expression, for example like this:
      
      `datetime.datetime.combine(context_today(), datetime.time(0,0,0))`
      
      and get the expected result regardless of the user/browser's
      timezone.
      
      related to issue #2972 and pull request #2914 and #6229
      
      (Next commit will fix them)
      
      opw-621282
      76881fb2
    • Martin Trigaux's avatar
      [FIX] portal: share with group wizard · 5267e3a1
      Martin Trigaux authored
      Correctly creates menu and add implied groups.
      Since the conversion from res.portal to res.group, we lost the field
      parent_menu_id so a search is needed to find parent menu.
      To add the access of existing users to the new groups, implied id rules are
      needed. opw 612594
      5267e3a1
    • Martin Trigaux's avatar
      [FIX] crm: list of meetings from opportunity · ab65c388
      Martin Trigaux authored
      When opening the list of meetings from an opportunity, show only the meetings
      linked to the current opportunity.
      Use search_default_ to be able to remove the filter if not needed.
      Remove context on meeting button as it's ignored in action_makeMeeting (and
      there is no field attendee_id linked to a crm.lead anyway)
      opw 614039
      ab65c388
Loading