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
Loading