Skip to content
Snippets Groups Projects
  1. Aug 05, 2022
  2. Aug 04, 2022
    • momegahed's avatar
      [FIX] sale_stock: duplicate SN/LN for rental products · 953fefe7
      momegahed authored
      Steps to reproduce:
      
      1. Go to Inventory-->Settings-->Check option to "Display Lots & Serial
      Numbers on Invoices"
      2. Go to Rental App
      3. Create a new Rental Order for a product that is tracked by Serial
      Number. Pop up shows up. Also something to note here, though not
      necessarily related to this ticket, but you cannot select available
      serial number from this pop-up. It doesn't let you choose anything
      even when there are multiple serial number available/in stock.
      4. Confirm the order.
      5. Validate the Pickup and set the Serial Number in the popup.
      6. Create the invoice.
      7. Confirm the invoice.
      8. Print "Invoices without payment"
      
      Bug:
      
      in https://github.com/odoo/odoo/commit/7a030f616f7e04b3994fc718840d265b1dd21068
      
      
      
      the filter functions were removed. They had the effect
      of making sure that the sml is either a delivery or a return
      by filtering on `sml.location_id.usage` and
      `sml.location_dest_id.usage`
      
      Fix:
      check if the product is a delivery or a return by
      making sure that either of `sml.location_id.usage` and
      `sml.location_dest_id.usage` is `customer`
      
      OPW-2936505
      
      closes odoo/odoo#97449
      
      Signed-off-by: default avatarAdrien Widart <awt@odoo.com>
      953fefe7
    • Hubert Van de Walle (huvw)'s avatar
      [FIX] web: parseMonetary with NBSP as a thousands separator · 9d367227
      Hubert Van de Walle (huvw) authored
      Steps to reproduce:
      
        - Switch odoo language to french
        - Create a client bill for Azure Interior of $1 000 000
        - Confirm it
        - Go to the accounting dashboard
        - On the bank, click on reconcile
        - Select Azure interior
        - Click on the correct bill
        - Switch to Manual operations
        -> $1 000 000 is not a correct monetary field
      
      Cause of the issue:
      
        Recently in https://github.com/odoo/odoo/pull/94126
      
       , `formatMonetary`
        switched from joining the currency and symbol from `&nbsp;` to a non
        breaking space, NBSP.
        To parse monetary values, the behavior was to split around NBSP to
        get the symbol on one side and the value on the other which is then
        passed to `parseFloat`.
      
        For the following examples, NBSP is replaced with an underscore.
        So `$_1000` becomes `$, 1000`
        But some languages such as french uses the same char as thousands
        separator.
      
        In that case, `$_1_000` becomes `$, 1, 000` and then the parse fails.
      
      opw-2937403
      
      closes odoo/odoo#97425
      
      Signed-off-by: default avatarJorge Pinna Puissant (jpp) <jpp@odoo.com>
      9d367227
    • Florian(flg)'s avatar
      [FIX] l10n_be: change tab to space · 56f9e90d
      Florian(flg) authored
      
      This old file is indented with tabs instead of spaces.
      This is a problem because the file is using as template to
      write new localization.
      
      closes odoo/odoo#97412
      
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      56f9e90d
    • Ricardo Gomes Rodrigues (rigr)'s avatar
      [FIX] account: fix bank statement import from BNP · 9a98d192
      Ricardo Gomes Rodrigues (rigr) authored
      
      Before this commit, importing an .OFX file from BNP failed because the account number format is not the same.
      
      This is a problem on BNP's side but it is blocking for our clients and needs to be fixed.
      
      This commit fixes this by checking that the account number corresponds to a specific part of the IBAN (for France only).
      
      Task id 2860720
      
      closes odoo/odoo#97413
      
      Signed-off-by: default avatarFlorian Gilbert (flg) <flg@odoo.com>
      9a98d192
  3. Aug 01, 2022
  4. Jul 31, 2022
  5. Jul 29, 2022
    • Andrew Chau's avatar
      [FIX] website_sale_comparison: Ensure product_data available · 5c6a92d0
      Andrew Chau authored
      
      Check whether the product ID of the first item exists inside product_data
      before trying to access it. Although it means the first item still does not
      appear, both products will be present in the user's cookies.
      When the user refreshes the page or navigates away, both products will be
      visible in the comparison panel.
      
      closes odoo/odoo#64259
      
      Signed-off-by: default avatarWilliam Braeckman (wbr) <wbr@odoo.com>
      5c6a92d0
    • Adrien Widart's avatar
      [FIX] stock: get product qty in specific location · 9a651e13
      Adrien Widart authored
      When getting the on hand quantity of a product in a specific location,
      the result may be incorrect.
      
      To reproduce the issue:
      1. In Settings, enable "Storage Locations"
      2. Create a storable product P
      3. Update its quantity:
          - 5 x P at WH/Stock/Shelf 1
      4. Inventory > Reporting > Inventory Report
      5. Apply the following filters:
          - Product: P
          - Location: WH/Stock/Shelf 1
          - => There is a line with 5 x P at WH/Stock/Shelf 1, which is
      correct
      6. Click on Inventory at Date, set <Today>, confirm
      7. Apply the following filters:
          - Product: P
          - Location: WH/Stock/Shelf 1
      
      Error: There is a line for P but its on hand quantity is 0, which is
      incorrect (should be 5)
      
      In the first search, we let the ORM handle the domain conversion. When
      searching for `('location_id', 'ilike', 'WH/Stock/Shelf 1')`, it will
      use the `_rec_name` of the model to find the record. In case of a stock
      location, its `_rec_name` is the field `complete_name`:
      https://github.com/odoo/odoo/blob/94a8ad3fae914b046064bb7ce17572be8280f6e0/addons/stock/models/stock_location.py#L19
      
      
      
      However, for the second search, when getting the on-hand quantity of the
      product, we force the use of the field `name` to find the location.
      Because the `name` of the searched location is "Shelf 1", using
      "WH/Stock/Shelf 1" as key search will not work.
      
      OPW-2920904
      
      closes odoo/odoo#96827
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      9a651e13
  6. Jul 28, 2022
  7. Jul 27, 2022
  8. Jul 25, 2022
  9. Jul 24, 2022
  10. Jul 22, 2022
  11. Jul 20, 2022
  12. Jul 19, 2022
    • Ahmad Khanalizadeh's avatar
      [FIX] point_of_sale: avoid rounding error when merging order lines · b4e6284e
      Ahmad Khanalizadeh authored
      
      Before this commit when multiple instances of the same product
      were selected in a PoS session, `can_be_merged_with` checked if they
      had the same price before merging them in a single order line. However
      the order line prices were not rounded. In the case of a floating
      point error in order line price calculation, this behavior resulted
      in multiple order lines for the same product.
      
      Steps to reproduce the issue:
      1. Create a product
      2. In the pricelist, create a formula of -10% discount based on cost,
      and set the cost as 136.35 $
      3. Open a POS session, add the product multiple times
      4. The products are not combined in one group, each creates their
      own order line
      
      To fix this issue, we need to round the order line prices in this
      function.
      
      opw-2854304
      
      closes odoo/odoo#95813
      
      Signed-off-by: default avatarMasereel Pierre <pim@odoo.com>
      b4e6284e
  13. Jul 18, 2022
  14. Jul 17, 2022
  15. Jul 15, 2022
    • Benoit Socias's avatar
      [FIX] website: write website-specific views before they get a new id · cdd82554
      Benoit Socias authored
      
      When both a specific inheriting view and a non-specific base view are
      written simultaneously, the specific inheriting base view must be
      updated even though its id will change during the COW of the base view.
      
      This commit sorts the list of written views in order to first handle the
      website-specific ones then the base ones which might change some of the
      ids of the already updated view.
      
      Steps to reproduce in 14.0+ (no scenario found in 13.0):
      - Create a new website.
      - Configure the language selector layout to "Inline".
      - Configure the language selector layout to "None".
      => Error notification was displayed and change was not applied.
      
      task-2885882
      
      closes odoo/odoo#93940
      
      Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
      cdd82554
    • Nshimiyimana Séna's avatar
      [FIX] crm: duplicate 'lost' button on a lead's form view · 05e87659
      Nshimiyimana Séna authored
      
      Currently,  two lost buttons will appear, if you go to the form view of a lead that has 100% probability. The difference between the two duplicated "Lost" buttons is that one ask for a "lost reason" before marking a lead/opportunity as lost, the other does not.
      
      After discussing with the PO for CRM, it appears that the button that asks for a "lost reason" should not appear on a lead. This commit makes the necessary changes to reflect that behavior.
      
      opw-2886623
      
      closes odoo/odoo#95911
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      05e87659
  16. Jul 14, 2022
Loading