Skip to content
Snippets Groups Projects
  1. Oct 24, 2019
    • Martin Trigaux's avatar
      [FIX] profiler: be more pesimistic · a30e0380
      Martin Trigaux authored
      
      The profiler was too optimistic. If the local variable self was not a
      cursor, it assumed it was automatically an Odoo model.
      Instead, only do the custom tracer methods when self is an instance of
      BaseModel.
      
      Full scenario to reproduce explained at odoo/odoo#39237
      
      In case a method like the default_get of utm.mixing was profiled, the
      tracer crashed when evaluating `__bool__(request)`.
      The tracer considered self as an Odoo model while it was a werkzeug
      instance with its custom __getattr__ that crashed while trying to
      retrieve the content of `_name`.
      
      Fixes odoo/odoo#39237
      
      closes odoo/odoo#39349
      
      X-original-commit: 9d7147a3
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      a30e0380
  2. Oct 29, 2019
  3. Oct 28, 2019
    • Xavier Morel's avatar
      [FIX] SSF: modifier based on m2m value · 927979be
      Xavier Morel authored
      
      m2ms are internally represented as "6" commands, however in domains
      it's possible to compare an m2m value to a list of ids (to
      investigate: whether this is an artifact of internal webclient repr or
      part of the real contract).
      
      Add a workaround in SSF modifier computation to convert the m2m
      command storage to a simple ids list.
      
      A better fix would probably have been to represent the m2m as a list
      of ids internally (and only convert on load / save) however it not
      completely trivial as it has to be done recursively in order to
      properly handle an m2m inside an o2m. So it's a complete change of the
      internal data model (which should probably go alongide more
      fundamental changes e.g. properly handling parent refs, etc...)
      
      Also add very minor support for widgets (mostly so it's possible to
      set widget=many2many on an o2m field).
      
      closes odoo/odoo#39433
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      927979be
    • Nicolas Martinelli's avatar
      [FIX] point_of_sale, stock: do not crash if no email set · 53dcdd5a
      Nicolas Martinelli authored
      - Create a POS user for which the corresponding partner has no email
        address.
      - Connect to the POS with the created user
      - Sell a product which creates a picking (e.g. Customizable Desk)
      
      The picking is created in draft and not validated.
      
      This is due to:
      
      https://github.com/odoo/odoo/blob/6435b27c35faeafca452d26fa7fd50a7fe964029/addons/mail/models/mail_thread.py#L2199
      
      
      
      We disable tracking and post the message as `sudo()`.
      
      opw-2091808
      
      closes odoo/odoo#39423
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      53dcdd5a
    • Goffin Simon's avatar
      [FIX] account: No tax is applied on invoice line · 059c59a1
      Goffin Simon authored
      
      Steps to reproduce the bug:
      - Install belgian accounting
      - Create a tax REC with a fixed amount and affect base of subsequent taxes
      - Create an invoice I with a line L
      - Set the following taxes on L: REC (first position) and 0% EU G (second position)
      - Validate the I
      - Check the generated journal entries
      
      Bug:
      
      The account move line for REC didn't have the 0% EU G on the applied taxes field.
      
      opw:2089240
      
      closes odoo/odoo#39323
      
      Signed-off-by: default avatarSimon Goffin (sig) <sig@openerp.com>
      059c59a1
  4. Oct 24, 2019
  5. Oct 25, 2019
    • Lucas Perais (lpe)'s avatar
      [FIX] web: calendar: fetch records in right timezone · 06d4983a
      Lucas Perais (lpe) authored
      
      Before this commit, the calendar searched records on the wrong time ranges
      which did not take into account the timezone of the user
      It obviously resulted in some records not being there
      
      After this commit, all the relevant records are fetched according to the right
      time range in UTC, corresponding to start/end of the week/month/day of the calendar
      
      OPW 2076114
      
      closes odoo/odoo#39240
      
      X-original-commit: 70ed3d54
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      06d4983a
  6. Oct 27, 2019
  7. Oct 24, 2019
  8. Oct 23, 2019
  9. Oct 25, 2019
  10. Oct 21, 2019
  11. Oct 01, 2019
    • Xavier Morel's avatar
      [FIX] core: compatibility with Werkzeug 0.15 ProxyFix · e19d6241
      Xavier Morel authored
      
      Werkzeug 0.15 modified ProxyFix such that by default it only forwards
      the REMOTE_ADDR when enabled, whereas before 0.15 it would also
      forward scheme and host. This breaks proxied odoo as the base url
      becomes incorrect (cf #34412).
      
      Use properly configured ProxyFix when running with werkzeug 0.15, old
      configuration otherwise.
      
      Backport of 4057227d which was merged
      in master, because many people apparently run 0.15 now.
      
      Closes #35085
      closes odoo/odoo#36212
      
      closes odoo/odoo#37709
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      e19d6241
  12. Oct 24, 2019
    • Jorge Pinna Puissant's avatar
      [FIX] account: KeyError when transaction retry on reconciliation · f183f74d
      Jorge Pinna Puissant authored
      To reproduce this issue, a transaction retry must be forced:
      — Put a breakpoint in a line of the function process_bank_statement_line
          in addons/account/models/reconciliation_widget.py;
      — Open the bank statement reconciliation;
      — Click in validate;
      — When the code is in pause;
      — Open psql and modify a line of the database that affects the current
          reconciliation, for example you can change the partner_id of the
          table account_bank_statement_line for the line that is modified in
          https://github.com/odoo/odoo/blob/3e2d968c55542426746b287c556b5fb05d59fdcb/addons/account/models/reconciliation_widget.py#L35;
      
      
      — Continue the process;
      — This will generate an 'ERROR: could not serialize access due to
          concurrent update' and a transaction retry.
      
      Before this commit, a KeyError is raised, this occurs because
      counterpart_aml_id was deleted from the dictionary in the first passage,
      then when in the second passage triggered by the 'retry transaction',
      counterpart_aml_id doesn't exist any more in the dictionary.
      
      Now, the data is copied and there is no problem when the 'retry
      transaction' is called.
      
      Fixes #23816
      opw-2085822
      
      closes odoo/odoo#39314
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      f183f74d
    • jvm-odoo's avatar
      [FIX] payment_transfer: fix wire transfer when amount total is 0 · c87398ac
      jvm-odoo authored
      
      In e-commerce module, when you have a free product and 2 delivery
      methods:
          - Free
          - Any delivery method with a fixed price
      
      When you confirm your cart, you have to choose a payment method.
      
      If you select "free delivery" and "wire transfer":
      
      Before this commit:
      
          - You get an internal server error
      
      After this commit:
      
          - You are redirected to the wire transfer confirmation
      
      OPW-2083778
      
      closes odoo/odoo#39304
      
      Signed-off-by: default avatarNicolas Martinelli (nim) <nim@odoo.com>
      c87398ac
  13. Oct 23, 2019
  14. Oct 22, 2019
  15. Oct 18, 2019
  16. Oct 21, 2019
    • jvm-odoo's avatar
      [FIX] web: fix form view "More" button · 3a5886d3
      jvm-odoo authored
      
      In form views, when the window size is too small, a "More" button
      appears and it should contain the overflow buttons.
      
      On all browsers, the "More" dropdown doesn't contain the expected
      amount of buttons, so it is shifted on the second line.
      
      Before this commit:
      
          - The "More" dropdown doesn't contain the expected amount of
            buttons, so it is shifted on the second line.
      
      After this commit:
      
          - The "More" dropdown contains the expected amount of buttons
            and it is not shifted on the second line anymore.
      
      OPW-2079694
      
      closes odoo/odoo#38853
      
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      3a5886d3
  17. Oct 16, 2019
    • Romain Derie's avatar
      [FIX] website: prevent traceback if xml homepage view has no page · 1d4dd200
      Romain Derie authored
      
      The XML file homepage view record is not supposed to be deleted as it is used
      to bootstrap newly created website.
      
      If that view is deleted, everything's fine. But if that view's page is not
      found (m2o link broken somehow), then the code would crash.
      
      This would only appear if the user is playing in the backend in technical but
      it seems to happen more than it should.
      
      This commit will prevent the code to crash in such a case.
      
      Step to reproduce:
      1. Go to settings > technical > views (debug)
      2. Find the xml homepage view (with xml_id)
      3. Go to its website.page and break the m2o view_id
      4. Try to create a new website, it will crash
      
      opw-2081894
      
      closes odoo/odoo#38897
      
      Signed-off-by: default avatarJérémy Kersten (jke) <jke@openerp.com>
      1d4dd200
  18. Oct 21, 2019
    • Romeo Fragomeli's avatar
      [FIX] web: not able to scroll in long grouped kanban · 500cea0a
      Romeo Fragomeli authored
      
      Due to commit odoo/odoo@f4031c62f97fa170b74b0d13a0856b7d58ed4da6
      it was not more possible to scroll in a grouped kanban.
      
      Steps to reproduce:
      * Go to project app
      * Select a project with a few numbers of task
      * Create as need new task to have more task than visible on the screen
      * Try to scroll (BUG)
      
      Note: we also fix the swipe in empty column
      
      opw-2080491
      
      closes odoo/odoo#39103
      
      Signed-off-by: default avatarAdrien Dieudonné (adr) <adr@odoo.com>
      500cea0a
  19. Oct 15, 2019
    • Christophe Monniez's avatar
      [REF] packaging: use docker to build packages · aabac72a
      Christophe Monniez authored
      
      Actually, docker is used to test Linux packages once they are built.
      The packaging process is done on the host system where package.py is
      run.
      
      Consequences:
          * difficult to reproduce an exact same build on another host
          * changing a Debian/Ubuntu target version means some upgrade steps
            on the build host (mix that with the fact that the host also
            could build old Odoo versions)
          * Fedora rpm package is built on an Ubuntu system (which is not a
            real problem but it could be)
      
      With this commit, the package.py utility is refactored to use Docker
      containers to build the Gnu/Linux packages.
      
      closes odoo/odoo#39091
      
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      aabac72a
  20. Oct 20, 2019
  21. Oct 16, 2019
  22. Oct 18, 2019
  23. Oct 01, 2019
  24. Oct 17, 2019
    • Damien Bouvy's avatar
      [FIX] payment_stripe_sca: faulty fix · 239d5d3d
      Damien Bouvy authored
      
      Commit 83bb8224 introduced some fixes to make a few test of the
      normal stripe module work, but unfortunately introduced a bug in
      the process.
      
      The reference we want to find the transaction is *not* contained
      in the metadata dict but indeed in the reference param of the whole
      response dict. Unfortunately, even the fallback of the get call did
      not work - the metadata dict is still there, we just don't use it
      anymore...
      
      opw-2080651
      
      closes odoo/odoo#38989
      
      Signed-off-by: default avatarDamien Bouvy (dbo) <dbo@odoo.com>
      239d5d3d
Loading