Skip to content
Snippets Groups Projects
  1. Sep 04, 2023
  2. Jul 12, 2023
  3. Sep 03, 2023
  4. Sep 02, 2023
    • Nshimiyimana Séna's avatar
      [FIX] l10n_it_stock_ddt: account for pricelist in the DDT report · fbef1d79
      Nshimiyimana Séna authored
      
      Bug:
      When printing DDT documents for a delivery with a pricelist applied, the
      total value shown comes from the product's original price and not the
      modified pricelist price.
      
      Setup:
      - install `sale_management` and `l10n_it_stock_ddt`
      - have a product P with a price A
      - create a pricelist that where P has a price B
      
      Steps to reproduce:
      - activate DDT report printing
      - create a quotation set the pricelist you created and the product P
      - validate the quotation
      - go to the associated delivery and validate it
      - print the DDT report
      
      You should see that the price mentioned on the DDT report does not
      account for the pricelist. (price A is shown, instead of B)
      
      opw-3171295
      
      closes odoo/odoo#133639
      
      X-original-commit: 9bdb0ed2
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      Signed-off-by: default avatarSéna Serge Nshimiyimana (sesn) <sesn@odoo.com>
      fbef1d79
  5. Sep 01, 2023
    • Benoit Socias's avatar
      [FIX] website_crm: restrict CRM columns to users having CRM rights · b0b65831
      Benoit Socias authored
      
      If leads are created using live chat, users without CRM rights cannot
      access the visitors list anymore because the lead/opportunity
      information is not available to them.
      
      This commit limits the display of `lead_count` to the
      `sales_team.group_sale_salesman` group.
      
      In 14.0, the column still appeared without the `lead_count` value
      displayed, but clicking on it raised a traceback.
      
      Steps to reproduce:
      - Install `website_crm_livechat`
      - Login as Mitchell Admin
      - Send a message in the live chat
      - Go to Discuss
      - Answer the livechat message with `/lead New`
      - Go to Settings / Users / Marc Demo
      - Remove the Sales rights
      - Logout
      - Login as Marc Demo
      - Go to the Website / Reporting / Visitors page
      
      => The page could not be reached and an access right error message was
      generated.
      
      opw-3475301
      
      closes odoo/odoo#133933
      
      X-original-commit: dcb53f42
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      Signed-off-by: default avatarBenoit Socias (bso) <bso@odoo.com>
      b0b65831
    • Valeriya(vchu)'s avatar
      [FIX] sale_product_configurator: fix read properties error of undefined · f1c86c52
      Valeriya(vchu) authored
      
      If sales, inventory, project and renting are installed and product
      configurator is enabled, when user adds one storable product and
      confirms the order and adds one service product after the traceback
      appears caused by reading properties of undefined variable parentList.
      
      opw-3324320
      
      closes odoo/odoo#131210
      
      Signed-off-by: default avatarValeriya Chuprina (vchu) <vchu@odoo.com>
      f1c86c52
    • Xavier Morel's avatar
      [FIX] base: encoding guessing of html module descriptions · fd353d7d
      Xavier Morel authored
      
      I missed a critical issue in #133708: various users had discovered
      they could already fix description issues by adding an XML declaration
      to their document which is very cool (though technically not really
      valid).
      
      What is a lot less cool is that lxml gets *extremely* unhappy when
      asked to parse *strings* with an encoding declaration, raising a
      ValueError, so the purported fix breaks on any module which does that,
      which seems to include a lot of OCA modules.
      
      Gate the encoding guessing by bailing if the document has an XML
      declaration, in which case we just assume the author knows what
      they're doing and we leave them alone. For extra safety, check the
      encoding declaration in ascii and utf16. Could also have checked for
      BOMs, but lxml seems to not care about them overly much (in fact it
      seems to prefer them decoded which is odd).
      
      closes odoo/odoo#133919
      
      Reported-by: @rezak400
      X-original-commit: 51d37560
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      fd353d7d
    • Dawn Hwang's avatar
      [FIX] sale_timesheet: Fix browse in _default_invoicing_timesheet_enabled · c9726d59
      Dawn Hwang authored
      
      The context in the list controller sets active_id as active_ids[0] which
      means the default function will only check the first sale order's order
      lines to calculate the default
      
      Now it checks the active_ids first to see whether there are multiple
      selected
      
      closes odoo/odoo#133635
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      c9726d59
    • Xavier Morel's avatar
      [FIX] base: correctly parse utf8 html module descriptions · ab10cd17
      Xavier Morel authored
      
      Apparently `lxml.html.document_fromstring` (and possibly other
      `lxml.html` loaders) parses byte-strings as latin1 regardless of their
      actual encoding, maybe because python2, maybe because there's a super
      legacy html4 parser underlying it.
      
      Either way that means ever since loading
      `static/description/index.html` files was added 10 years
      ago (4bf6a7ea) `_get_desc` has been
      loading these files in latin1 rather than the utf8 most people would
      expect.
      
      Add an explicit decoding phase to try and load html description files
      in UTF8. Fall back to latin1 in case there are description files which
      are genuinely in latin1, or even just some random-ass broken stuff
      which very much isn't utf8 (the extended-ascii encodings -- of which
      latin1 is one -- will happily accept and mangle any input as every
      byte value is valid, utf8 is a lot more structured).
      
      Closes #127846
      
      closes odoo/odoo#133740
      
      X-original-commit: 4dbc3b00
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      ab10cd17
  6. Aug 31, 2023
    • Yaroslav Soroko (yaso)'s avatar
      [FIX] hw_drivers: Error-proof Interfaces · e8f700f7
      Yaroslav Soroko (yaso) authored
      
      Before, when instatating the interfaces if there was an error inside
      Odoo could stop. This PR prevents that and simply avoids instantiating
      the interface which causes the error.
      
      closes odoo/odoo#133791
      
      Signed-off-by: default avatarQuentin Lejeune (qle) <qle@odoo.com>
      e8f700f7
    • Antoine Guenet's avatar
      [FIX] mass_mailing: preserve comments when testing a mailing · d6568e0b
      Antoine Guenet authored
      
      When sending a mailing we make sure to preserve comments (in particular
      so that MSO comments can be read by Outlook). However this was not the
      case when testing a mailing using the Test button in the form view.
      
      task-3488162
      opw-3290548
      opw-3479234
      
      closes odoo/odoo#133754
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      d6568e0b
    • Dawn Hwang's avatar
      [FIX] sale_timesheet: Check for so_line before unlinking invoice lines · dde30798
      Dawn Hwang authored
      
      Steps to reproduce:
       1. Create an SO with billable timesheet entries
       2. Create an invoice
       3. If using enterprise, first cancel the invoice and reset the timesheet
        entries back to draft, then set the invoice back to draft
       4. Remove the sale order items from the timesheet entries
       5. Remove the invoice line associated with the timesheet entries
      
      Current behavior:
       - Throws an error since the so_line value from read_group is now
         False and is not subscriptable
      
      Expected behavior:
       - Removes the invoice lines
      
      Fix:
       - Check that the so_line is not False before continuing with the logic
      
      closes odoo/odoo#133748
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      dde30798
    • roen-odoo's avatar
      [FIX] point_of_sale: Show price without discount in receipt · 07b08a2d
      roen-odoo authored
      Current behavior:
      When a discount is applied to a product, the receipt shows the price
      with the discount applied as the base price.
      
      Steps to reproduce:
      - Open PoS
      - Add a product to the order
      - Apply a discount to the product with the numpad
      - Validate the order
      - Check the receipt, the base price of the product is the price with the
        discount applied.
      
      (https://github.com/odoo/odoo/assets/32939472/eb0998a7-70a1-432a-8909-868d9307c999
      
      )
      The price in red should be 70$ (the price without the 5% discount)
      
      opw-3463745
      
      closes odoo/odoo#133377
      
      Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
      07b08a2d
    • hmai's avatar
      [FIX] web editor: animation triggered on every backspace · 16fc9e23
      hmai authored
      
      This commit fixes the issue of animations that got trigger by backspacing, pressing enter
      and other causes
      
      The cause of the issue was a custom historyRevert event that was only used to
      trigger a widgets_start_request event which ended up restarting the options,
      which lead to the animation option replaying the animation.
      
      We were not able to pinpoint the use of this particular trigger_up as it does
      not seem to serve any purpose anymore. Since its presence does create a bug, we
      decided that the best course of action was to remove it. If this commit creates
      a regression and the original bug comes back, we will reassess the situation.
      
      Task-2752421
      
      closes odoo/odoo#131026
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      16fc9e23
    • Pedram (PEBR)'s avatar
      [FIX] point_of_sale: improve order synchronization mechanism · 7dbeb4b5
      Pedram (PEBR) authored
      
      This commit introduces improvements to the order synchronization
      mechanism. The changes ensure better error handling and provide a more
      reliable and informative synchronization process.
      
      Key Changes:
      
      1. Enhance `_flush_orders` Method
          - The `_flush_orders` method now has additional error handling to
          detect RPC errors during synchronization of multiple orders. If an
          RPC error is detected and multiple orders are being synced, the
          method will attempt to send each order to the server individually.
      
      2. Introduce `_flush_orders_retry` Method
          - This method sends orders to the server one by one and keeps track
          of the synchronization status (successful, RPC error, or other
          errors).
          - It sets the synchronization status to `'connected'`, `'error'`,
          or `'disconnected'` based on the outcome of individual order
          synchronization attempts.
      
      3. Improve Error Handling
          - Enhanced error handling mechanisms to differentiate between
          various types of errors.
          - Synchronization status reflects the type of error encountered.
      
      opw-3389388
      
      closes odoo/odoo#126662
      
      Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
      7dbeb4b5
    • Saurabh Mishra's avatar
      [FIX] l10n_eg_edi_eta: prevent json decoder error traceback · a3bb6ece
      Saurabh Mishra authored
      
      During 'l10n_eg_eta' server connection when the
      'request_response' is not in proper json format then
      while decoding 'request_response', the user will face the
      'JSONDecodeError Expecting value: line 1 column 1 (char 0)'.
      We are keeping the 'blocking_level' as 'error' because the
      occurence of this error will prevent the succession of ongoing
      operation.
      
      Applying the changes will resolve the issue.
      
      sentry-4220714667
      
      closes odoo/odoo#123637
      
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      a3bb6ece
    • Julien Van Roy's avatar
      [FIX] account_edi_ubl_cii: line id start at 1 in UBL · 5c4da5ee
      Julien Van Roy authored
      
      In Saudi Arabia, the InvoiceLine/ID should not be greater than 6 digits.
      Using the move.line_id, this limit can be exceeded.
      
      Simply count the invoice line ids starting from 1 instead.
      
      In master, add a parameter `line_id` to `_get_invoice_line_vals`.
      
      closes odoo/odoo#133640
      
      X-original-commit: 94aac2ed
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      Signed-off-by: default avatarJulien Van Roy (juvr) <juvr@odoo.com>
      5c4da5ee
  7. Aug 30, 2023
  8. Aug 29, 2023
    • Ricardo Gomes Rodrigues (rigr)'s avatar
      [FIX] l10n_it_stock_ddt: condition to create the l10n_it_ddt_sequence_id · 8a277a4c
      Ricardo Gomes Rodrigues (rigr) authored
      
      The condition to create is wrongly evaluated and does not take into account
      the country code and the picking type code. This commit fixes this by
      reordering the conditions.
      
      closes odoo/odoo#133161
      
      X-original-commit: 30b00e5c
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      Signed-off-by: default avatarRicardo Gomes Rodrigues (rigr) <rigr@odoo.com>
      8a277a4c
    • Benjamin Hanquin (beha)'s avatar
      [IMP] Stock Production Lot dissociate last_delivery_partner_id computation · 6852152e
      Benjamin Hanquin (beha) authored
      
      In stock_production_lot model, there is a field last_delivery_partner_id which is displayed in a Tree View. This fields require to compute ALL the delivery_ids of each LOT, only to display the last_delivery_partner.
      
      This implies a big performance issue for big lots with huge tracability needs in it. The idea is simple, dissociate the computation for delivery_ids, which is only used in Form View and the last_delivery_partner_id which is only used in the Tree View.
      
      I do agree that if both are used in the same view, it would double the computation time. But currently there is a lot of useless computation. Currently the only way to mitigate is by removing the field last_delivery_partner_id in the Tree View, but if client needs that field, it doesn't works.
      
      Benchmark
      
      |Lots/Serial |# Lots | # Delivery | Before PR | After PR |
      |:------------:|:---------:|:--------:|
      |Lots| 3 | 3  | 0.2723 s |0.0091 s |
      |Lots| 4 | 6699 | 307.98 s | 0.0059 s |
      |Lots | 13 | 9575 | 569.85 | 0.0036 s |
      |Serial | 80  | 80  | 0.30 s | 0.42 s |
      |Serial | 150 | 150 |0.39 s | 0.51 s |
      |Serial | 7000 | 2000 | 0.50 s/Batch of 1000 | 0.60 s/Batch of 1000|
      
      closes odoo/odoo#129363
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      6852152e
    • roen-odoo's avatar
      [FIX] sale_timesheet: Fallback on user employee when creating timesheet · ba0d428a
      roen-odoo authored
      
      Current behavior:
        If you set a specific sale_order_item for an employee on a project, and
        create a timesheet line from the "My Timesheets" menu,
        the sale_order_item will not be the one you selected for this employee.
        This happens because when you create a timesheet line from the "My
        Timesheets" menu, the employee is not set on the timesheet line.
        To fix this we fallback on the user's employee when creating a timesheet
        line from the "My Timesheets" menu.
      
      Steps to reproduce:
        - Make sure you'r logged in as Mitchel Admin
        - Create a service product that create project and tasks
        - Create a sale order with this product
        - Go to the project and set a sale order item for Mitchel Admin in the
          invoicing tab
        - Go to the "My Timesheets" menu and click "Add Line"
        - Select the project you created
        - The sale order item will not be autofilled with the one set on the
          invoicing tab of the project.
      
      opw-3463849
      
      closes odoo/odoo#133478
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      ba0d428a
    • Nicolas Lempereur's avatar
      [FIX] web: accept is_html_empty in layout wizard (fixup) · 346cc5e5
      Nicolas Lempereur authored
      
      After eb3dcd60cb88f190d6398d7cadfb7852eecf909c is_html_empty was
      accepted in document layout and would no longer cause an error when
      using "Configure Document Layout" wizard.
      
      If l10n_de is installed, this caused an error itself in "Configure
      Document Layout" because of the content of the external_layout_din5008
      that itself use the "company" variable if available (and in the given
      case, this is a NewId base.document.layout record).
      
      To fix this issue, this commit backports the 16.0 forward-port of the
      referenced commit (5f1ad0c1).
      
      opw-3433583
      
      closes odoo/odoo#133447
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      346cc5e5
    • Christophe Simonis's avatar
      [FIX] point_of_sale: always create missing picking types · 51d85383
      Christophe Simonis authored
      
      Don't do it only at install.
      
      closes odoo/odoo#133364
      
      X-original-commit: 5add840b
      Signed-off-by: default avatarNicolas Seinlet (nse) <nse@odoo.com>
      Signed-off-by: default avatarChristophe Simonis (chs) <chs@odoo.com>
      51d85383
    • Guillaume (gdi)'s avatar
      [FIX] web_editor: don't display option if target matches data-exclude · 56e75ed0
      Guillaume (gdi) authored
      Since [this commit], it's now possible to edit a media when it's in a
      parent that is not editable thanks to `o_editable_media` class.
      Unfortunately, these changes make the new class bypass the potential
      `data-exclude` defined in the XML option declaration. So if the target
      looks like that:
      ```html
      <img class="o_editable_media odoo"/>
      ```
      and the XML option declaration has a `data-exclude=".odoo"`, the option
      will still be displayed. This commit corrects the way the
      `o_editable_media` class works, so that it only bypasses the
      `.o_not_editable` but not the entire exclude.
      
      [this commit]: https://github.com/odoo/odoo/commit/580f1b77ce0b96b7efbf83a0ccdf6979bbf0e904
      
      
      
      task-3476644
      
      closes odoo/odoo#132849
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      56e75ed0
    • Benjamin Vray's avatar
      [FIX] website: fix images wall with link on image · 13f70469
      Benjamin Vray authored
      
      After this commit, we prevent the slideshow from appearing when clicking
      on an "Images Wall" snippet image that has been set as a link.
      
      Steps to reproduce the bug:
      
      - Drag and drop an "Images Wall" snippet onto the page.
      - Add some images in the snippet.
      - Click on an image within the snippet.
      - In the editor text toolbar, click on the "Link" button.
      - Set the URL of the link to "/contactus".
      - Click on the "Save" button in the modal.
      - Save the page.
      - Click on the image with the link.
      - Bug: The slideshow briefly appears before redirecting to the "contact
      us" page.
      
      task-3425624
      
      closes odoo/odoo#133325
      
      X-original-commit: 8b29eabb
      Signed-off-by: default avatarColin Louis (loco) <loco@odoo.com>
      13f70469
    • dinolew's avatar
      [FIX] l10n_cn_city: correct the zipcode from the list · f5d4ec5d
      dinolew authored
      
      closes odoo/odoo#133036
      
      X-original-commit: 854923b8
      Signed-off-by: default avatarQuentin De Paoli <qdp@odoo.com>
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      f5d4ec5d
    • Dino Lew's avatar
      [CLA] signature for wllbll · 7f9b2729
      Dino Lew authored
      X-original-commit: b9de6fc2
      Part-of: odoo/odoo#133036
      7f9b2729
    • Theo VINCENT (thvi)'s avatar
      [FIX] point_of_sale: closing session without cash · b1dca1d0
      Theo VINCENT (thvi) authored
      
      The closing session popup input for bank payment methods throws an error when no cash payment method is configured.
      
      Steps to reproduce:
       - Configure a shop without any cash payment method and with at least one bank payment method
       - Open a session for that shop
       - Click on the button to display the closing session popup
       - In the popup, change the amount of the bank payment method
      
      An error is thrown.
      
      The fix simply consists in correctly checking if there is a cash payment method.
      
      closes odoo/odoo#132473
      
      Task-id: 3468828
      Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
      b1dca1d0
  9. Aug 28, 2023
Loading