Skip to content
Snippets Groups Projects
  1. May 02, 2023
  2. Apr 30, 2023
    • Moises Lopez's avatar
      [FIX] requirements.txt: unpin pytz · bb0fe713
      Moises Lopez authored
      
      On Debian based systems, the `tzdata` package is maintained to reflect changes
      in timezones and there is no need to upgrade the `python3-tz` package.
      On the other hand, for those who are using `pip` and thus our `requirements.txt`,
      the package needs to be up to date. By unpinning it in the requirements.txt:
      
      - new installations based on pip will be up to date
      - older installations based on pip can easily upgrade
      - debian based installations have to maintain the tzdata package
      - mixed installs like on runbot will rely on Debian tzdata
      
      closes odoo/odoo#117527
      
      closes odoo/odoo#120155
      
      closes odoo/odoo#120164
      
      X-original-commit: 710a2b2a
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      bb0fe713
    • Odoo Translation Bot's avatar
  3. Apr 29, 2023
  4. Apr 28, 2023
  5. Apr 27, 2023
    • Nicolas Lempereur's avatar
      [FIX] sale_management: quotation template+sequence=lessbug · 621454fa
      Nicolas Lempereur authored
      
      Scenario:
      
      - set a quotation template on a quotation that adds lines ordered with
        a sequence (eg. 3 lines with sequences 10, 11, 12)
      - add lines in this quotation
      - save
      
      Issue:
      
      The added lines have sequence 10 and the seen order changes.
      
      This is caused by 6f11060d that tries to
      mitigate a more rare issue when there is more than one page of lines.
      
      Solution:
      
      Reverting the previous fix, and setting the sequence of the first line
      to -99:
      
      - when resequencing the first page, the sequence will be -99 to -60 =>
        records from the second page will not get in the first page
      
      - new lines will be added at the end
      
      Issues still present:
      
      - when resequencing the second page, item from 3 pages get into it (it
        was already the case before 6f11060d)
      
      - when adding a new line (without resequencing), it is added at the end
        and not at the beginning of the next page
      
      But those are just behavior in any list view (as is the original issue
      of 6f11060d, but since it was partially
      fixed for a year, this patch try to give an in-between solution instead
      of just reverting it).
      
      opw-2833913
      
      closes odoo/odoo#119890
      
      X-original-commit: e342f3dd3d9454cae50515b9f75603579051daca
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      621454fa
    • Xavier Morel's avatar
      [IMP] test_module_operations: make uninstall step more graceful · 034b317a
      Xavier Morel authored
      
      - process modules to uninstall individually in order to better handle
        their state at that point
      - uninstall (and reinstall) modules in provided order, rather than
        whatever postgres feels like (or a sort which might not match what
        we want), mostly useful when uninstalling modules in bulk
      - warn if a module is either missing or already uninstalled, rather
        than silently do nothing
      
      closes odoo/odoo#119848
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      034b317a
    • Xavier Morel's avatar
      [IMP] test_module_operations: logging configuration · bee7898a
      Xavier Morel authored
      - switch to `dictConfig` for easier bulk-manipulation of loggers
      - set `unlink` and `ir_model` loggers to warning, to limit the
        humongous spam that is a normal uninstall session
      
      Part-of: odoo/odoo#119848
      bee7898a
    • Xavier Morel's avatar
      [IMP] module_operation_tester: use subcommands · 933841ed
      Xavier Morel authored
      Add subcommands to make running the script clearer (as exclusive
      switches is a bit weird nowadays).
      
      Keep the old `--uninstall` and `--standalone` switches, but make them
      mutually exclusive (and optional) to retain current behaviour.
      
      Part-of: odoo/odoo#119848
      933841ed
    • Xavier Morel's avatar
      [IMP] test_module_operations: make debugging easier · 712977fa
      Xavier Morel authored
      - ensure `test_module_operations` exits with a non-zero status on
        failure, as the current makes it a lot less convenient to notice
        uninstall / reinstall errors (especially with lots of warnings
        crowding the logs)
      - allow uninstalling without reinstalling, so it's easier to inspect
        db state after uninstall
      
      Part-of: odoo/odoo#119848
      712977fa
    • FrancoisGe's avatar
      [FIX] web: change action from a dirty form view · c1c893a8
      FrancoisGe authored
      
      Before this commit, if we try to change the action from a form view
      a new record in an x2m and the new action fails to mount, then the new
      record in the x2m will always have a virtual id even if it has already
      been saved on the server side.
      
      Why:
      When you try to exit the form view, the form view will save the record
      and not read the record because you leave the view (in the beforeLeave).
      But in our case, we fail to mount the new action and so we will stay on
      the form view without it doing a read to know the id of the record added
      in the x2m. So the view thinks that the x2m still contains a virtual record.
      
      Solution:
      Going back to action should rebuild the whole compound. To cause this,
      we'll restore the last controller.
      
      How to reproduce:
      - Going to a form view with an x2m field and a widget performing a doAction
      - Add a line to the x2m
      - Click on the widget to change the action
      - New action fails to mount, it returns an error
      - Close the error dialog
      - Edit another field
      - Save the form view
      
      Before this commit:
          The new line in the x2m is duplicated.
      
      After this commit:
          The new line in the x2m is unique
      
      opw-3193765
      
      closes odoo/odoo#119393
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      c1c893a8
    • Marc Durepos's avatar
      [CLA] Bemade Inc. signs CCLA · e85c1ea4
      Marc Durepos authored
      
      closes odoo/odoo#119940
      
      X-original-commit: 3757f2ab
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      e85c1ea4
    • Valentin Chevalier's avatar
      [FIX] payment_stripe: add email for shipping partner · 527b4988
      Valentin Chevalier authored
      
      Before this commit, the shipping partner was created without an email
      address.
      
      After this commit, the shipping partner will be created with the email
      given by the customer on the express checkout form.
      
      closes odoo/odoo#119869
      
      Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
      527b4988
    • svs-odoo's avatar
      [FIX] mail: mail activity deterministic order · b0a99bde
      svs-odoo authored
      
      Adds `id` in the `mail.activity`'s order to force deterministic order in
      case multiple activities have the same deadline.
      
      Not having a deterministic order can cause issue when tests check
      activities' values but don't ensure they are sorted also by id.
      
      closes odoo/odoo#119183
      
      Signed-off-by: default avatarSébastien Theys (seb) <seb@odoo.com>
      b0a99bde
    • Om Rabara's avatar
      [FIX] web: file uploading state after failed upload · 0fc472a9
      Om Rabara authored
      
      when file uploading is failed that time file uploading state does not change.
      
      sentry - 3957419658
      
      closes odoo/odoo#117105
      
      Signed-off-by: default avatarLucas Lefèvre (lul) <lul@odoo.com>
      0fc472a9
    • Om Rabara's avatar
      [FIX] spreadsheet_dashboard: check valid json data file while uploading · d92f1411
      Om Rabara authored
      JSONDecodeError: Expecting value: line 1 column 1 (char 0)
      This error occurs when we try to upload an invalid json data file.
      
      sentry- 3957419658
      
      Part-of: odoo/odoo#117105
      d92f1411
    • Hubert Van de Walle (huvw)'s avatar
      [FIX] sale_stock: allow to tab past an empty QtyAtDateWidget · 30fcb2e6
      Hubert Van de Walle (huvw) authored
      Steps to reproduce
      ==================
      
      - In the settings, check the "Reception Report" option
      - Create a new quotation
      - Add a line
      - Do not select a product
      - Press tab a few times
      
      The focus doesn't go past the Quantity widget
      
      Cause of the issue
      ==================
      
      The next item to be focused when pressing tab is selecting with the
      following selector
      
      https://github.com/odoo/odoo/blob/13745d597d03b552fe5f73ca81143a49efb8aa9f/addons/web/static/src/core/utils/ui.js#L159-L161
      
      
      
      Since there is a tabindex of 0, the focus will try to go to the
      QtyAtDateWidget
      
      Solution
      ========
      
      Set the tabindex to -1 when no value has been set
      
      opw-3266063
      
      closes odoo/odoo#119670
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      30fcb2e6
    • william-andre's avatar
      [FIX] account: import misc. operation by giving only foreign amount · 5f2412ac
      william-andre authored
      
      Import a file with a content like this (specifying the amount in foreign
      currency but not the amount in company currency)
      ```
      Journal,Reference,Journal Items/Account,Journal Items/Label,Journal Items/Analytic Distribution,Journal Items/amount in currency,Journal Items/currency
      Miscellaneous Operations,EUR March 2023,101000 Current Assets,label,,-29,EUR
      ,,201000 Current Liabilities,label,,29,EUR
      ```
      
      The debit/credit were set to 0, but it would have been expected to compute
      the amount from the foreign balance instead.
      
      task-3287331
      
      closes odoo/odoo#119536
      
      Related: odoo/enterprise#40428
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      5f2412ac
Loading