Skip to content
Snippets Groups Projects
  1. Apr 15, 2019
  2. Apr 10, 2019
  3. Apr 11, 2019
    • Nathan de Pryck's avatar
      [FIX] stock_account: Performance of _compute_stock_value · 62f98e34
      Nathan de Pryck authored
      
      On the ticket 1961412, the custommer has more than 12 millions
      of stock moves. Before this commit, the search request  does
      not take too much time to execute but fetching the fields on the
      recordset takes a lot of time due to the 'in' in the where clause
      of the associated SQL request.
      
      This optimization permit to avoid this 'where clause' and decrease
      the time to gather all the different fields. The time has been reduce
      to less than one minutes where it takes approximately 20 minutes before.
      
      closes odoo/odoo#32520
      
      Signed-off-by: default avatarSimon Lejeune (sle) <sle@openerp.com>
      62f98e34
  4. Apr 10, 2019
    • Olivier Dony's avatar
      [FIX] requirements: bump up jinja2 reqs · 6cbecced
      Olivier Dony authored
      
      Recommended by GitHub's repository alerts.
      
      We normally stick as close as possible to the version we depend
      on in the official DEB packages. This in turn depends on the version of
      Debian stable at the time of release - for 11.0 that would be Debian 9
      (stretch) and thus Jinja 2.8 (with security backports).
      
      However Jinja2 before 2.10.1 suffers from a few issues that could lead
      to crashes of Odoo processes.
      
      It seems it's worth an exception to our rule for pip users, similarly to
      previous bump up at d2605bcc.
      
      closes odoo/odoo#32601
      
      Signed-off-by: default avatarChristophe Simonis <chs@odoo.com>
      6cbecced
  5. Apr 14, 2019
  6. Apr 10, 2019
    • Denis Ledoux's avatar
      [FIX] point_of_sale: lost pos orders on IntegrityError · 39fd19ff
      Denis Ledoux authored
      
      This revision is similar to
      605b94e6
      
      except that instead of an OperationalError
      (e.g. a conccurent update),
      this is an IntegrityError which is raised,
      an sql constraint which is not met,
      e.g. a unique or required constraint.
      
      In the case of this opw,
      this is the picking name unique constraint
      which was not met,
      the picking sequence number has somehow been re-used.
      
      Both
      `psycopg2.OperationalError`
      and
      `psycopg2.IntegrityError`
      inherits from
      `psycopg2.DatabaseError`
      
      We therefore choose to use this Exception class,
      to include all kind of psycopg2 exceptions that prevent
      the transaction to be committed.
      
      opw-1965679
      
      closes odoo/odoo#32577
      
      Signed-off-by: default avatarDenis Ledoux <beledouxdenis@users.noreply.github.com>
      39fd19ff
  7. Apr 09, 2019
  8. Apr 08, 2019
  9. Apr 05, 2019
  10. Apr 04, 2019
  11. Apr 03, 2019
    • Nicolas Lempereur's avatar
      [FIX] point_of_sale: allow connect proxy https error · e14c386a
      Nicolas Lempereur authored
      
      Since 79af654fc61 if we had unexpected configuration of usage such as
      being in HTTPS, having a POS hardware in HTTPS but an error is received
      (eg. the device is closed) => the POS interface can't be opened being
      blocked on an error:
      
       Https connection to IoT Box failed
       Make sure you are using IoT Box v18.10 or higher.
      
       Navigate to {proxy_ip} to accept the certificate of your IoT Box.
      
      With this changeset, we have a popup that does not prevent to open the
      point of sale interface (and  the red disconnected status in the top
      left allow to retry connection as before) on first load.
      
      opw-1934413
      closes #32306
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      e14c386a
  12. Apr 02, 2019
  13. Apr 03, 2019
  14. Apr 02, 2019
    • Nicolas Martinelli's avatar
      [FIX] website_sale: discount · 180866fe
      Nicolas Martinelli authored
      
      - Go to Sales > Configuration > Settings
      - Enable "Multiple Sales Prices per Product" and select option "Prices
        computed from formulas (discounts, margins, roundings)"
      - Go to Sales > Catalog / Pricelists
      - Select "Public Pricelist" and set "Discount Policy: Show public price
        & discount to the customer"
      - Go to the eCommerce, buy "iPad Retina Display" which as a 20 %
        discount
      
      In the corresponding SO, the discount appears to be zero, and the
      discount is included in the price unit. However, adding the product
      directly to the SO in the backend displays the discount as expected.
      
      There should not be a difference in behavior between the eCommerce and
      the backend.
      
      Fixes #31337
      opw-1943989
      
      closes odoo/odoo#31965
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      180866fe
  15. Apr 01, 2019
    • Nicolas Martinelli's avatar
      [FIX] account: deprecated accounts · fb48e497
      Nicolas Martinelli authored
      
      Deprecated accounts are available in the reconciliation widget, while
      they shouldn't be.
      
      opw-1949667
      opw-1945585
      
      closes odoo/odoo#32304
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      fb48e497
    • Nicolas Martinelli's avatar
      [FIX] base: res.partner.bank sequence · ef4aaeb4
      Nicolas Martinelli authored
      
      `res.partner.bank` is ordered by sequence, but:
      - there is no default value
      - there is no widget handle to set it
      
      Therefore, methods such as `_get_partner_bank_id` might retrieve an
      unexpected value.
      
      To avoid this:
      - we fallback to sort by ID
      - we add a default value
      - we add the widget handle
      
      opw-1948964
      
      closes odoo/odoo#32300
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      ef4aaeb4
    • Nicolas Martinelli's avatar
      [FIX] stock_account: inventory with company · 67ea2646
      Nicolas Martinelli authored
      
      - Set a company on the inventory location
      - Create a stockable product, FIFO, real-time, with a cost
      - Receive a unit
      
      The product stock value remains zero.
      
      The fact that the inventory location has a company set should not impact
      the product cost. This is useful when a scrap location as a company set.
      
      The domain of move selection is incomplete. It should be, for the 'in'
      moves:
      - coming from a location without company, or an inventory location
        within the same company
      - going to a location within the same company
      
      For the 'out' moves:
      - coming from to a location within the same company
      - going to a location without company, or an inventory location within
        the same company
      
      opw-1943384
      
      closes odoo/odoo#31485
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      67ea2646
    • Odoo Translation Bot's avatar
Loading