Skip to content
Snippets Groups Projects
  1. Nov 28, 2017
    • adekock11's avatar
      [FIX] base: South African Rand is before the amount · 59a5dfef
      adekock11 authored
      Closes #21234
      Unverified
      59a5dfef
    • adekock11's avatar
      [CLA] signature for adekock11 · 90d4d731
      adekock11 authored
      Done at #21234
      Unverified
      90d4d731
    • Lucas Perais (lpe)'s avatar
      [FIX] web_editor: Fieldtexthtml wait until iframe loaded to save · cae18851
      Lucas Perais (lpe) authored
      In the case where:
      - you are too fast editing a mass mailing, trigger an onchange (e.g. mailing_model) and then save
      You can use the edit/save shortcuts to make yourself believe you are Flash Gordon
      - your internet is too slow (Down: 4Mb/s, Up: 500kb/s, Latency: 20ms)
      
      Before ths commit, the onchange will return *before* the field (the iframe actually) is loaded.
      This onchange contains a signal *in* the body_html of the field to allow communication with the iframe.
      If you save before the iframe is loaded, this body_html keyword will be saved.
      
      After this commit we deactivate the save button until the iframe is loaded.
      We could have gone for a python user error on the value of the body_html too.
      But it would have added a supplementary click and potential reloading
      
      OPW 783616
      cae18851
    • qsm-odoo's avatar
      [FIX] website: do not duplicate iframes at each edition · 6d2bf44f
      qsm-odoo authored
      Before this commit, when an user added a video in his page (an <iframe>)
      it was then duplicated each time the snippet in which the video is was
      edited and saved again, slowing the page loading.
      
      As the code responsible for that is quite outdated, it should be
      reviewed and refactored in master. This commit only fixes the problem
      with more code. This commit will also fix existing databases, if the
      user edit the video snippet once again.
      
      (Note: even if this commit's code will be even more strange in master,
      it *should* be forward-ported anyway).
      6d2bf44f
    • Joren Van Onder's avatar
      [FIX] point_of_sale: search customers with full search query · 11ae103e
      Joren Van Onder authored
      When the keypress handler is called the pressed key has not yet been
      added to this.value. This leads to the search being performed with
      e.g. 'Agr' when the user has typed 'Agro'.
      
      Fix this by getting this value when the timeout expires. At this point
      the value will be updated.
      
      Fixes #21129
      Unverified
      11ae103e
  2. Nov 27, 2017
    • Martin Geubelle's avatar
      [FIX] web: display selection label in graph · ccaced92
      Martin Geubelle authored
      When grouping a graph view by a selection field, the labels on x axis
      were the selection values themselves (not their corresponding label).
      
      This issue was only present if there was only one group by field. In
      this case, the attribute `grouped_on` is not an array but a string
      containing the field name. This case wasn't correctly handled.
      
      Note that this issue is not present in the new views (from saas-16).
      
      Closes #19790
      ccaced92
    • Stefan Rijnhart's avatar
      [FIX] mail: handle emails with a single non-text part · 10de33a5
      Stefan Rijnhart authored
      SAP sends out emails that only contain a PDF part, without a text or
      html body, e.g.:
      
          X-Mailer: SAP NetWeaver 751
          Content-Type: application/pdf; name="Afleveringsbewijs.pdf"
          Content-Transfer-Encoding: base64
          Content-Description: Afleveringsbewijs
      
      Before this patch, this single non-text part was parsed into the body of
      the final message, as if it was a text part.
      
      Making the check for the main part more restrictive solves the issue, as
      there is no reason to assume that a non-multipart content is
      necessarily of text/* type. This PR also includes a regression test.
      
      Closes #21102
      Unverified
      10de33a5
  3. Nov 22, 2017
    • Laurent Smet's avatar
      [FIX] account: fix account.tax order · 8214395a
      Laurent Smet authored
      Suppose some taxes with the same sequence:
      
      The tax are not computed in the same order in POS and SO/INV.
      This is wrong in case of multiple taxes affecting the base.
      
      -opw: 779498
      8214395a
  4. Nov 21, 2017
  5. Nov 20, 2017
  6. Nov 17, 2017
    • qsm-odoo's avatar
      [FIX] web: adapt JS boot logs to new Firefox version · 8d5c4cb3
      qsm-odoo authored
      When logging multiple elements in one log call in the new Firefox
      version, all the elements are kept on one line. So if the second
      element starts with a line feed, it will not go under the first
      element but still be at the right of the first element, on a new
      line.
      8d5c4cb3
  7. Nov 16, 2017
    • Cédric Snauwaert's avatar
      [FIX] account: reconciliation of payment with statement should not take lock date into account · 5b10f5db
      Cédric Snauwaert authored
      If we have a payment in october and a statement in november and the lock date is 1st november, we can't reconcile both because we try to write statement_id on payment but there is the lockdate constraint. This is not correct and we should be able to reconcile both even after lock date as it is the case for other moves.
      5b10f5db
    • Lucas Perais (lpe)'s avatar
      [FIX][BACKPORT] calendar: correct search in recurrent event · b4ec5102
      Lucas Perais (lpe) authored
      backporting 76b72429
      
      OPW 779208
      
      closes #20996
      
      original commit message:
      
      Add a 3 use cases with tests that were failing before.
      
      datetime filters were not working correctly on stop filters
      The `_get_recurrent_date_by_event` was only computing recurrency on the start
      field of an event which can make a difference. A recurring event
        start=2017-01-01 09:00:00; stop=2017-01-01 10:00:0
      was not matched in a search ('stop', '>', '2017-01-01 09:30:00')
      
      The filter != was not handled in the recurring use cases.
      e.g. making the search 'start is set' in the web client is equal to
        ('start', '!=', False)
      
      Searching with only a start filter matching recurring events but not the
      first ("real") occurence, was returning no result if no stop filter was present.
        start=2017-01-01 09:00:00; count=5
      had no result in a search ('start', '>', '2017-01-02')
      b4ec5102
    • Laurent Smet's avatar
  8. Nov 15, 2017
    • Romain Derie's avatar
      [FIX] website_sale: 0.00 total is showing in empty cart if logged in · 52973212
      Romain Derie authored
      Before this commit, if you go on /shop/cart and your cart is empty, it will
      show the total (Subtotal, Taxes, Total) as $ 0.00.
      Indeed, the code is retrieving a 'sale.order' if you are connected and you
      already have a draft sale order on DB (eg: you just add something to cart and
       emptied it afterward).
      
        - Add product to your cart and proceed to checkout
        - On checkout cart, remove the product, your cart is now empty
        - Reload the page (you should still be on /shop/cart) or go to /shop/cart
        - You now see the zero prices (Subtotal, Taxes, Total)
      
      Now, we will hide this if you have an order but no line on that order.
      
      This closes #20896
      52973212
  9. Nov 14, 2017
  10. Nov 13, 2017
  11. Nov 11, 2017
    • Olivier Dony's avatar
      [FIX] ir_sequence: add support for PG 10 · fa5ee6ed
      Olivier Dony authored
      PostgreSQL 10 move sequences' metadata fields into a new `pg_sequence`
      system catalog. As a result, selecting from a sequence relation now
      only return three fields, and does not include the `increment_by`
      metadata field anymore.
      
      This patch obtains the `increment_by` value from the new system catalog
      for PostgreSQL server versions >= 10.
      
      Fixes #20269
      Unverified
      fa5ee6ed
  12. Nov 10, 2017
  13. Nov 09, 2017
  14. Nov 08, 2017
  15. Nov 07, 2017
    • Jeremy Kersten's avatar
      [FIX] hr_timesheet_sheet: avoid ambigous field action in sql. · 15715e82
      Jeremy Kersten authored
      ERROR: column reference "action" is ambiguous
      
      This commit closes #13839
      15715e82
    • Nicolas Seinlet's avatar
      Backport 2d66d9a6 · 6488682c
      Nicolas Seinlet authored
      [FIX] *: do not use groups when extending an asset bundle
      Using groups when declaring an extension of an asset bundle leads to a
      different generated asset bundle according to the user's group. This
      is not something we want because a dynamic asset bundle's content
      means that it could (and it does) trigger unwanted cache invalidation.
      
      website_event, website_blog, website_forum and website_sale add
      functions to . These functions are bound to
      server side qweb nodes protected by groups. We can always add the
      functions; if a user tries to use the routes he should receive a
      traceback because of lack of access rules
      
      website_blog adds a  module, but is guarded by
      the presence of a node in the DOM. We use the same logic to guard the
      module added by website_sale with the  node.
      
      website_gengo is working as expected.
      6488682c
  16. Nov 03, 2017
  17. Nov 02, 2017
  18. Oct 31, 2017
    • Richard Mathot's avatar
      [FIX] l10n_br: wrong & pointless field redefinition · b9b6deff
      Richard Mathot authored
      Fields `amount_type` on `account.tax` and `account.tax.template` are
      already defined in the `account` module.
      Redefining them here (with the same parameters) breaks every other
      module that would have used `selection_add=` on those fields.
      
      Actually, it is the case in `account_tax_python`, and thus, all the
      localizations/customizations that depend on it were broken by this one.
      
      ~ Old API backport of 5d0d80af ~
      Unverified
      b9b6deff
  19. Oct 30, 2017
  20. Oct 27, 2017
  21. Oct 26, 2017
Loading