Skip to content
Snippets Groups Projects
  1. May 25, 2023
  2. May 24, 2023
  3. May 23, 2023
    • niyasraphy's avatar
      [FIX] account: traceback on creating payment method · 94a17f27
      niyasraphy authored
      
      before this commit, on creating a new payment method
      will show traceback.
      
      * using studio add a menu for payment method
      * create a payment method and hit on create
      * traceback is shown
      
      after this commit, no traceback wont be shown.
      
      closes odoo/odoo#122129
      
      X-original-commit: f8918c9e
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      94a17f27
    • Fabien Meghazi's avatar
      [FIX] sql_db: use psycopg2.extensions.parse_dsn for dsn parsing · 3573fe07
      Fabien Meghazi authored
      
      Before this patch the naive dsn parser `_dsn_to_dict` would choke
      on `application_name` containing spaces or the equal sign.
      
      closes odoo/odoo#122010
      
      Signed-off-by: default avatarFabien Meghazi (fme) <fme@odoo.com>
      3573fe07
    • Feyensv's avatar
      [FIX] sale: show custom ptav in the right order · fa252066
      Feyensv authored
      
      The value of custom ptavs is store on the sale order line.
      
      Currently, they are ordered by ptav id but they are ordered by the ptav
      sequence everywhere in Odoo.
      
      Now, on the sale order line, custom ptav are ordered by ptav sequence.
      
      opw-3234669
      
      closes odoo/odoo#122161
      
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      fa252066
    • Adrien Widart (awt)'s avatar
      [FIX] barcodes: prevent `enter` if barcode · a5f566b5
      Adrien Widart (awt) authored
      
      To reproduce the issue:
      (Need `stock_barcode` and a real barcode scanner)
      1. Create two products P01 and P02, each one with a barcode
      2. Barcode > Operations > Receipts, Create
      3. Scan P01
      4. Scan P02
      5. Click on the `+1` button on the line of P01
      6. Scan P02
      
      Error: Both lines are incremented. Scanning P01 should not impact the
      quantity of P01
      
      Because of step 5, the focus is still on that button when scanning
      again P02 (step 6). Moreover, the scanner ends the barcode transmission
      of P02 with an `enter` -> it will generate an event on the `+1` button,
      which explains why the quantity of P01 is also incremented.
      
      OPW-3232437
      
      closes odoo/odoo#122125
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      a5f566b5
    • Mahdi Cheikh Rouhou (macr)'s avatar
      [FIX] web : align number on right in rtl lang · 180139cd
      Mahdi Cheikh Rouhou (macr) authored
      
      Numbers should be alinged on the right in rtl langauge same as ltr langs
      
      Steps to reproduce the isse :
      1- Change the language to arabic
      2- To to the list of invoices in accounting and you can see that the numbers are aligned to the left
      
      The origin of the problem is that rtlcss reverse the alignment from right to left
      
      opw-3295573
      
      closes odoo/odoo#121689
      
      Signed-off-by: default avatarBruno Boi (boi) <boi@odoo.com>
      180139cd
    • tsm-odoo's avatar
      [FIX] mail: incomplete url regex · 9302a237
      tsm-odoo authored
      The discuss app uses an url regex in order to find links and
      transform them to html before posting a message.
      
      Before this commit, some unsafe url characters  were missing
      from this regex, resulting in incorrectly parsed url.
      
      This commit adds missing characters in order to match RFC1738
      [1].
      
      [1]: https://www.ietf.org/rfc/rfc1738.txt
      
      
      
      closes odoo/odoo#122093
      
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      9302a237
    • Martin Trigaux's avatar
      [IMP] *: export 16.0 source terms · 2f0928c8
      Martin Trigaux authored
      
      closes odoo/odoo#122042
      
      Related: odoo/enterprise#41329
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      2f0928c8
    • Dossogne Bertrand's avatar
      [FIX] hr_holidays: fix My Time Off access in multicompany · c0039aa4
      Dossogne Bertrand authored
      
      Before this commit, trying to access "My Time Off" was
      not possible if connected on a company while some leaves
      were created from another company.
      This commit restricts that view to the leave created from
      the companies the user is logged into.
      
      closes odoo/odoo#122039
      
      Signed-off-by: default avatarGvaladze Sopiko (sgv) <sgv@odoo.com>
      c0039aa4
    • Michele's avatar
      [IMP] core: new neutralize flag on database restore and database duplicate dialog · 616740e9
      Michele authored
      
      Before this PR:
      The only way to neutralize the database is running cli command neutralize
      
      After this PR:
      There is a new checkbox "neutralize database" in Duplicate database and Restore database dialog that neutralize the database after duplication/restore.
      I also moved the neutralization code to the external module so it can be called also outside the cli .
      
      closes odoo/odoo#121569
      
      Signed-off-by: default avatarJulien Castiaux (juc) <juc@odoo.com>
      616740e9
    • Antoine Dupuis (andu)'s avatar
      [FIX] account: automatic entry wizard: avoid clashes with lock dates · 9c496321
      Antoine Dupuis (andu) authored
      
      Currently, if you use the automatic entry wizard to change the period of
      a journal item dated prior to the lock date, you'll just get blocked
      with a UserError, with no workaround.
      
      This commit changes the date of the adjustment entry to be the first end
      of month after the lock date. As a result, the adjustment entry can be
      created.
      
      Based on PR #92439
      
      closes odoo/odoo#121566
      
      Taskid: 2823170
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      9c496321
    • Antoine Dupuis (andu)'s avatar
      [REF] account: Vendor Bills: Refactor the lock date message · 5b35915d
      Antoine Dupuis (andu) authored
      At the moment, the lock date message is generated in
      _compute_tax_lock_date_message. We delegate it to a separate function
      in order to use this message elsewhere as well.
      
      Note: this refactor introduces minor changes in behaviour:
      - we remove the second part of the lock date message (that mentions
        other lock dates than the most blocking one), because it is too much
        information.
      
      - we calculate the new accounting date from the existing accounting date
        rather than from the existing invoice date. This should not change
        anything in practice, since the new accounting date will be the last
        day of the period after the lock date.
      
      task-2823170
      
      Part-of: odoo/odoo#121566
      5b35915d
    • Victor Piryns (pivi)'s avatar
      [FIX] sale_quotation_builder: checkout product w/ quote description · 23022144
      Victor Piryns (pivi) authored
      Current behaviour:
      If we add a blockquote in the `website_description` of a product on
      the e-shop, we cannot checkout the product. Silent HTTP 400 error
      code, due to an exception raised by
      https://github.com/odoo/odoo/blob/bf772181933ce5334da35c8368455963b2478399/odoo/fields.py#L1987-L1993
      
      
      
      Expected behaviour:
      You should be able to checkout products even if they have blockquote
      in their `website_description`.
      
      Steps to reproduce:
      - Install eCommerce, sale_quotation_builder (issue is present only
        after installing sale_quotation_builder)
      - On a product, with the website editor, add a `blockquote` to the
        description of the product > Save
      - In a private browser window, as public user, visit the product on
        the e-shop and try to checkout with it.
      - Observe there is no visible error, and we do not proceed in the
        checkout process.
      
      Reason for the problem:
      The exception mentioned above is triggered when there is a
      difference between the html content that is saved in the DB and after
      sanitization, meaning that someone with escalated privilege saved
      the HTML content by overriding the sanitization with
      `sanitize_overridable`. In our use case the only diff is the
      presence of the attribute `data-o-mail-quote-node` which is removed
      after the sanitization.
      
      Fix:
      This issue can be resolved two ways:
      1) Adding `data-o-mail-quote-node` to the list of save attributes,
         meaning it will not be removed during the sanitization process.
         Since this is an attribute that we add on `<blockquote>` nodes,
         it can be considered safe, just like `data-o-mail-quote`.
      2) Remove the attribute sanitization of the `website_description`,
         just like it is done in the website_sale module.
         Since the `website_description` and `quotation_description` are both
         computed from one-another, they should have the same sanitization
         level.
      I am implementing both solutions, 1) because adding the attribute to
      the safe list seems safe in general, and may prevent future
      issues of this sort. 2) because it is the root cause of the issue,
      since the bug is present only after installation of the
      `sale_quotation_builder` module.
      
      Affected versions:
      - 16.0
      - saas-16.1
      - saas-16.2
      - master
      
      opw-3297237
      
      closes odoo/odoo#120764
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      23022144
    • abd-msyukyu-odoo's avatar
      [FIX] web: rework draggable_hook scrolling · 23f67ca5
      abd-msyukyu-odoo authored
      
      In Knowledge, the scrollParent for the `Y` axis of an embedded ungrouped Kanban
      view is the article body, which contains the draggable `container` (which is
      itself contained in the scrollParent for the `X` axis).
      
      This commit introduce 2 fixes related to the `draggable_hook_builder`:
      - In `draggable_hook_builder`, `updateRects` was modifying values of the
        `containerRect` from values of the `scrollParent`. Then, the `containerRect`
        was used in `handleEdgeScrolling` to compute a scroll value to apply on the
        `scrollParent`, and when updating the dragged element position, to compute the
        boundaries for the dragged element. This commit stores values for
        `scrollParent` in `scrollParentRect` alongside the modified `containerRect`.
        `scrollParentRect` will be used to compute the scroll value based only on the
        dimensions of the scrollParent, and the modified `containerRect` will be used
        to compute the boundaries.
      - The `scrollParent` in the `X` axis can be different from the `scrollParent` in
        the `Y` axis. This commit stores both of them individually so that one is not
        neglected when higher in the DOM than the other.
      
      Task-3291771
      
      closes odoo/odoo#121089
      
      Signed-off-by: default avatarJulien Mougenot (jum) <jum@odoo.com>
      23f67ca5
    • Stanislas Gueniffey's avatar
      [IMP] web_editor: re-run tests with mobile version · 008ab1c9
      Stanislas Gueniffey authored
      
      Some tests use methods that have two different implementations (one for
      desktop and one for mobile). So far, the only example is deleteBackward
      and its mobile counterpart deleteBackwardMobile.
      
      This commit introduces a mechanism in the web_editor tests to avoid
      duplicating such tests. When a test calls a method that has two
      implementations, it uses the desktop one by default and a flag is set
      that indicates the test should be re-run with its mobile implementation
      next.
      
      When errors are raised while the mobile version is in use, we prefix
      their message with '[MOBILE VERSION]' to ease debugging.
      
      Note that this mechanism relies on proper flag management by the
      aforementioned methods.
      
      Task-3054808
      
      closes odoo/odoo#121977
      
      X-original-commit: 712382c6ae200037c58a6677069c5f2ae783ccec
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      008ab1c9
Loading