Skip to content
Snippets Groups Projects
  1. Jul 01, 2019
  2. Jun 28, 2019
  3. Jun 30, 2019
  4. Jun 28, 2019
    • Julien Castiaux's avatar
      [FIX] base: respect attachment search limit · 1882c241
      Julien Castiaux authored
      
      Configure two companies, add a bunch of attachments to each company so
      at least one has more attachments than the default 80 search limit. List
      the attachments of that company, only the 7à-ish firsts are displayed
      and the pager is disabled.
      
      The `_search` method is override in `ir.attachment` to filter the
      original record set. If the original record set had reached the limit,
      the filter may only return a subset whose length is lower than the
      limit, this trick the different JS views making them think there are no
      more records to return and disable the pager.
      
      The fix has been to recursively re-search until the subset length is
      equal to the limit.
      
      opw-2025940
      
      closes #34287
      
      closes odoo/odoo#34450
      
      Signed-off-by: default avatarJulien Castiaux <Julien00859@users.noreply.github.com>
      1882c241
    • Jeremy Kersten's avatar
      [FIX] website_slides: make url multi website compliant · 0b8c4307
      Jeremy Kersten authored
      
      Before this commit, all url of channel were using `web.base.url` instead of the
      current website domain.
      
      Fixes #32348
      
      The override of `get_base_url` method should not be forward ported after
      saas-12.4 as since saas-12.5 it is now a model method (f727cd26).
      
      closes odoo/odoo#34421
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      
      
      Co-authored-by: default avatarqsm-odoo <qsm@odoo.com>
      0b8c4307
    • Antoine Prieels's avatar
      [FIX] hw_escpos: Avoid crashes on error · 2f789b68
      Antoine Prieels authored
      
      Two different problems on the box and resulted in the crash of the Odoo
      instance running on the IoT Box:
      
      When `usblp` had troubles communicating with a printer, a NoDeviceError
      was raised. The `printer` variable was still set from the last time the
      loop was processed, so we tried to close it, resulting in an error.
      
      The code handling generic execptions was broken.
      
      closes odoo/odoo#34437
      
      Signed-off-by: default avatarQuentin Lejeune (qle) <qle@odoo.com>
      2f789b68
  5. Jun 27, 2019
    • Joren Van Onder's avatar
      [FIX] pos_mercury: don't show amount due in payment method popup · 40a3822a
      Joren Van Onder authored
      
      This popup shows in the rare situation where somebody has 2 payment
      methods that use Mercury. It allows them to choose which one to use
      when swiping a card.
      
      It would show the amount due in the title of the popup however this
      isn't correct when a "pending swipe" payment line has been added.
      
      Fix it by removing this amount, it's clear what will be paid from the
      information on the payment screen. Also use this opportunity to make
      it translatable.
      
      opw-2006596
      
      closes odoo/odoo#34398
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      40a3822a
  6. Jun 25, 2019
  7. Jun 27, 2019
  8. Jun 26, 2019
  9. Jun 25, 2019
  10. Jun 24, 2019
  11. Jun 23, 2019
  12. Jun 20, 2019
  13. Jun 19, 2019
    • Xavier Morel's avatar
      [FIX] core: work around ir_logging deadlock · c5c955db
      Xavier Morel authored
      
      DROP CONSTRAINT (even with IF EXISTS is specified) acquires an ACCESS
      EXCLUSIVE lock on the table, preventing e.g. inserts in an other
      transaction, so ir_logging would systematically deadlock if configured
      to the same database and a warning would be triggered during install
      or update (if that ran ir.logging's init).
      
      1. hand-roll the "IF EXISTS" bit, to avoid taking an ACCESS EXCLUSIVE
      lock on the table if the problematic constraint does not exist and
      thus doesn't need to be dropped (which by now should be the vast
      majority of cases).
      
      Replacing DROP CONSTRAINT with DISABLE TRIGGER does not fix the
      issue as *that* acquires SHARE ROW EXCLUSIVE. While that's less
      constraitning than ACCESS EXCLUSIVE, it still conflicts with an
      insert's ROW_EXCLUSIVE.
      
      2. add a timeout to the logging INSERT anyway, the deadlock is still
      an issue if we're updating a database which does have the
      problematic constraint, and we want to preclude the possible
      eventual introduction of new deadlocks in the future.
      
      closes odoo/odoo#34243
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      c5c955db
    • Christophe Simonis's avatar
      132e38be
    • Olivier Colson's avatar
      [FIX] account: make cash basis taxes work in case several account move lines... · c0643ac9
      Olivier Colson authored
      [FIX] account: make cash basis taxes work in case several account move lines are reconciled within the same account.move
      
      Such move lines can be created by POS, when closing a session. Because of commit https://github.com/odoo/odoo/commit/d3453f7d152d486cb5df01b4e40dbde57f59b49e
      
       , the cash basis entries are now created *after* reconciling everything (and not during reconciliation anymore). This causes multiple lines of the move created for the sessions to be reconciled together in case a refund was made (partial or not).
      
      Solves ticket 2008085
      
      closes odoo/odoo#34237
      
      Signed-off-by: default avatarCedric Snauwaert (csn) <csn@openerp.com>
      c0643ac9
    • Julien Castiaux's avatar
      [FIX] google_account: improve logging of errors · 85ab9238
      Julien Castiaux authored
      
      There is no guaranty that both the request body and the response body
      will contain JSON data. This fix corrects the logging by printing the
      raw text in case of json decode error.
      
      opw-2006561
      opw-2024242
      
      closes odoo/odoo#34221
      
      Signed-off-by: default avatarJulien Castiaux <Julien00859@users.noreply.github.com>
      85ab9238
  14. Jun 27, 2019
Loading