Skip to content
Snippets Groups Projects
  1. Sep 26, 2023
    • alsh-odoo's avatar
      [FIX] hr_expense: raise exception if multiple company records selected · 32cb39c9
      alsh-odoo authored
      This traceback arises when the user selects multi
      company records and click on the 'create report' button.
      
      To reproduce this issue:
      
      1) Install 'hr_expense'
      2) Create a new company for example 'test'
      3) Enable the 'test' company on the right corner
      4) Now open 'employees' and change the company of the current user(Mitchel Admin)
         to the 'test'.
      5) Open 'Expenses', create a new record, and change the company to 'test'.
      6) Fill the required field values and save the record.
      7) Now click 'My Expenses/My Expenses to report' and select all the records (Make sure
         'My Expenses' filter is applied)
      8) Click on the 'Create Record' button
      
      Error:- "ValueError: Expected singleton: res.company(2, 1)"
      
      On the '_create_sheet_from_expenses' method, the value of 'company_id' is getting
      through 'self.company_id.id'.
      See:-
      https://github.com/odoo/odoo/blob/f910987cb4af84c1e7afabf67f05d4eebc31e765/addons/hr_expense/models/hr_expense.py#L324-L335
      
      
      
      But when user selects multi company recordsets
      'self.company_id' has multi recordsets.
      
      When 'company_id' is getting value through 'self.company_id.id', because of
      'self.company_id' has multiple records, which leads
      to the above traceback.
      
      By applying this commit will resolve the issue by raising an exception,
      when user selected multi company records to create report.
      
      sentry-4465422743
      
      closes odoo/odoo#136261
      
      X-original-commit: 883c03a0
      Signed-off-by: default avatarde Wouters de Bouchout Jean-Benoît (jbw) <jbw@odoo.com>
      Signed-off-by: default avatarAltaf Shaik (alsh) <alsh@odoo.com>
      32cb39c9
    • MerlinGuillaume's avatar
      [FIX] l10n_it_edi: create 0% EU tax with correct exoneration values · 4e7a6995
      MerlinGuillaume authored
      
      When creating a new company with the italian fiscal localization, the
      tax "0% EU" is not instanciated properly
      
      Steps to reproduce:
      1. Install Accounting and module l10n_it_edi
      2. Create a new company and select it
      3. Go to Settings > Accounting > Fiscal Localization, set it to `Italy -
         Generic Chart of Accounts` and save
      4. Go to Accounting > Configuration > Taxes and open tax "0% EU"
      5. The fields for the italian exoneration are not properly set, they
         should have the same values as the same tax for company "IT Company"
         of the demo data
      
      Solution:
      When we set the company chart template, update tax "0% EU" with the
      correct values
      
      opw-3414593
      
      closes odoo/odoo#136404
      
      X-original-commit: f6b386c3
      Signed-off-by: default avatarOlivier Colson (oco) <oco@odoo.com>
      Signed-off-by: default avatarGuillaume Merlin (megu) <megu@odoo.com>
      4e7a6995
    • Mayurrajsinh Rathod's avatar
      [FIX] website_slides: prevent content title overflow · f01a5294
      Mayurrajsinh Rathod authored
      
      This commit resolves the issue of content title overflow in both fullscreen
      and non-fullscreen views by cropping the title and adding '...' at the end.
      
      Task-3384661
      
      closes odoo/odoo#136422
      
      X-original-commit: febb7989
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      f01a5294
    • Walid's avatar
      [FIX] delivery: long trackingRef form view · 39eac4b9
      Walid authored
      
      Steps to reproduce:
      - Create a transfer with a delivery method.
      - Add a lot of characters in the tracking reference field.
      
      Bug:
      after saving the field overflows in the view
      
      opw-3370813
      
      closes odoo/odoo#135941
      
      Signed-off-by: default avatarDjamel Touati (otd) <otd@odoo.com>
      39eac4b9
  2. Sep 25, 2023
    • Julien Van Roy's avatar
      [FIX] l10n_mx: set the 16% taxes as the default · bc3857b0
      Julien Van Roy authored
      
      Set the default sale and purchase taxes for the mexican CoA.
      
      Before introducing the IEPS taxes in commit
      734e18eb, the default taxes were the 16%
      IVA taxes (when loading the CoA, the default is simply the first
      possible match with the lowest sequence). As the IEPS taxes now have the
      lowest sequence, they are incorrectly selected as the defaults. This
      commit fixes this.
      
      task-3507155
      
      closes odoo/odoo#135858
      
      X-original-commit: 5d98384e
      Signed-off-by: default avatarLaurent Smet (las) <las@odoo.com>
      Signed-off-by: default avatarJulien Van Roy (juvr) <juvr@odoo.com>
      bc3857b0
    • dhba-odoo's avatar
      [FIX] web_editor: clear format not working properly · 447c7eb2
      dhba-odoo authored
      
      Before this commit:
      
      The text moves back to the left side on remove format even if the direction rtl
      is applied.
      
      After this commit:
      
      The text will not move to the left side on remove format if the direction rtl is
      applied.
      
      task-3482193
      
      closes odoo/odoo#134240
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      447c7eb2
    • dhba-odoo's avatar
      [FIX] web_editor: shift paste of vs code content looses indentation · 71243d62
      dhba-odoo authored
      
      Before this commit:
      
      when performing a shift paste of copied VS Code content, the indentation was
      lost.
      
      After this commit:
      
      Now, when you perform a shift paste of copied VS Code content, the indentation
      is preserved
      
      Task-2884491
      
      closes odoo/odoo#122828
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      71243d62
    • Karnav Sojitra's avatar
      [FIX] tools: raise validation error while invalid expression · a0cf5d9d
      Karnav Sojitra authored
      
      When the user tries to modify the view with an invalid xpath expression,
      an XPathSyntaxError traceback will appear.
      
      Steps to produce:
      1. Install the Accounting module.
      2. Settings > Technical > UI > Views > Open any view
      3. Invalidate expr syntax and try to save, thus an error will be generated.
      
      Error: XPathSyntaxError: Invalid expression
      
      This commit handles XPathSyntaxError by raising ValidationError
      instead of a traceback.
      
      sentry-4377014622
      
      closes odoo/odoo#135614
      
      X-original-commit: 58e463e7
      Signed-off-by: default avatarAchraf Ben Azzouz (abz) <abz@odoo.com>
      a0cf5d9d
    • Soukéina Bojabza's avatar
      [FIX] website: fix removing an animation from an element · 314b72c8
      Soukéina Bojabza authored
      
      Before this commit, when removing an animation from an element, all the
      animation related classes and styles were not removed, leaving the DOM
      in an inconsistent state.
      
      This commit fixes that.
      
      task-3497015
      
      closes odoo/odoo#134624
      
      Signed-off-by: default avatarBenjamin Vray (bvr) <bvr@odoo.com>
      314b72c8
    • Mathieu Walravens's avatar
      [FIX] stock_account: correct accounts for dropship return · 10e0ac37
      Mathieu Walravens authored
      
      Before this commit:
      When returning a dropshipping, the valuation layers created do not have
      the correct accounts on it:
       - Valuation -> Input   for the first SVL
       - Output -> Valuation  for the second SVL
      
      After this commit:
      For a dropshipped move, valuation layers have the following chain
      of accounts:
       - Input -> Valuation   for the first SVL
       - Valuation -> Output  for the second SVL
      Therefore, the return should have it reversed:
       - Output -> Valuation  for the first SVL
       - Valuation -> Input   for the second SVL
      
      Steps to reproduce:
      1. Create a dropship product with automated inventory valuation
      2. Create a Sales Order, go on the PO and confirm it
      3. Set quantities and validate dropshipping
      4. Return delivered product (dropship return)
      
      opw-3391174
      
      closes odoo/odoo#136024
      
      X-original-commit: 30de83a5
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      10e0ac37
    • Huy Lee's avatar
      [FIX] website: cannot navigate to anchor link · 72b0a79e
      Huy Lee authored
      After commit [1], the check that the target url is different from
      the current page's url has been removed thus leading to error that anchor
      link always scroll down to element that have data-anchor enabled.
      
      Steps to reproduce (the easiest way):
      - Install Website Blog
      - Turn on customize comment on post
      - Go incognito then access any blog post, scroll down and click the
      `Sign in to leave a comment` button
      - Holy, the page scrolls down to the discussion section but doesn't go
      to the login page
      
      [1]: https://github.com/odoo/odoo/commit/fb087dbec96f5e533d1fdd9c2b0c2e00296c83de
      
      
      
      closes odoo/odoo#136012
      
      X-original-commit: f5fca171
      Signed-off-by: default avatarBenjamin Vray (bvr) <bvr@odoo.com>
      72b0a79e
  3. Aug 28, 2023
  4. Sep 25, 2023
    • Antoine (ande)'s avatar
      [FIX] base_import: cannot import midnight date · 973af585
      Antoine (ande) authored
      
      Steps to reproduce:
      1. Install hr_attendance
      2. Go to attendances
      3. Select any line
      4. Change the check-out date to next day
      5. Change the check-out time to 00:00:00
      6. Export that line, file format xlsx
      7. Favorites > import records
      8. Upload the exported file > Test
      9. Column check_out contains incorrect values.
      Error in line 2: unconverted data remains: 2023-06-11
      
      Cause of the issue:
      options.get('date_format') is empty
      
      opw-3374883
      
      closes odoo/odoo#133424
      
      Signed-off-by: default avatarRémy Voet (ryv) <ryv@odoo.com>
      973af585
  5. Sep 24, 2023
  6. Sep 22, 2023
  7. Sep 21, 2023
  8. Sep 20, 2023
  9. Sep 19, 2023
    • Djamel Touati's avatar
      [FIX] stock: no tracking for service product · 2c39f6cb
      Djamel Touati authored
      
      Steps to reproduce the bug:
      - Create a storable “P1”:
         - tracking= serial
         - save
      - Change the type of product to service
      
      Problem:
      some fields for tracked products are not hidden, because the product
      tracking is not updated.
      
      Solution:
      Convert _onchange_type into compute methods.
      The tracking is updated even if the change type is applied from the
      "product.product" form.
      
      opw-3499976
      
      closes odoo/odoo#135912
      
      X-original-commit: d3808a5d
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      Signed-off-by: default avatarDjamel Touati (otd) <otd@odoo.com>
      2c39f6cb
    • Gaetan Vanden Bergh (gavb)'s avatar
      [FIX] *: assertAlmostEqual parameters identification · 05e38f11
      Gaetan Vanden Bergh (gavb) authored
      
      purchase_stock, point_of_sale, sale_mrp
      
      What are the steps to reproduce your issue?
      When Odoo.sh runs unit tests on a development branch,
      it tests the code in the MRP module for rounding errors.
      
      What is the current behavior that you observe?
      I had a customization that introduced a rounding error in the standard MRP module.
      When the unit tests ran on the development branch, I got a traceback.
      
      What would be your expected behavior in this case?
      The rounding error should be reported as a failed test with a message. No traceback.
      
      opw-3454998
      
      closes odoo/odoo#135849
      
      X-original-commit: 74416a2e
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      Signed-off-by: default avatarGaetan Vanden Bergh (gavb) <gavb@odoo.com>
      05e38f11
    • roen-odoo's avatar
      [FIX] point_of_sale: correctly set lot_id on refund orders · 0ff1de54
      roen-odoo authored
      
      Current behavior:
      When refunding an order, the lot_id of the original order was not set
      on the refund order.
      
      Steps to reproduce:
      - Create a product with tracking by lot
      - Open the POS and add the product to the order
      - Set a lot on the product
      - Pay the order
      - Refund the order
      - Check the lot on the refund order, there is no lot set
      
      opw-3485740
      
      closes odoo/odoo#135056
      
      Signed-off-by: default avatarRobin Heinz (rhe) <rhe@odoo.com>
      0ff1de54
    • xO-Tx's avatar
      [FIX] web, website: fix menu auto hide in edit mode · 4f6629d3
      xO-Tx authored
      
      Steps to reproduce:
      
      - Go to Website > Add menu items to activate the "auto-hide" (to set the
      overflowing menu items in a "+" dropdown).
      - Go to "edit" mode > While resizing the window width, the "auto-hide"
      menu adaptation is disabled, and overflowing menu items are visible.
      
      The goal of this commit is to fix the behaviour described above (and
      potentially, issues that can result from the editor's "unbreakable"
      rollbacks on top menu) by preventing the unbreakable mechanism from
      detecting header changes and cancelling the auto-hide updates.
      
      Related to opw-3484742
      
      closes odoo/odoo#134185
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      4f6629d3
    • Thomas Lefebvre (thle)'s avatar
      [FIX] hr_holidays: manage refused leave in the report · 2b3cc596
      Thomas Lefebvre (thle) authored
      
      Steps to reproduce:
      -------------------
      - add an allocation for an employee;
      - add a leave with this allocation;
      - validate the leave;
      - refuse the leave;
      - in action menu, click on "Time off Analysis by Employee and Time Off Type".
      
      Issue:
      ------
      The report does not take into account refused allocations and leaves.
      
      Solution:
      ---------
      Add a condition to take a number of days equal to zero
      if the allocation or leave is in a refused state.
      
      Handled the case where no record is found for leave
      (with `COALESCE` because `value - NULL = NULL`).
      
      opw-3503617
      
      closes odoo/odoo#135748
      
      Signed-off-by: default avatarSofie Gvaladze (sgv) <sgv@odoo.com>
      2b3cc596
  10. Sep 18, 2023
    • Adrien Widart (awt)'s avatar
      [FIX] mrp: create PBM SM from confirmed MO · ba8f99c0
      Adrien Widart (awt) authored
      To reproduce the issue:
      1. In Settings, enable "Multi Routes"
      2. Edit the warehouse:
         - Manufacture: 2 steps
      3. Create three storable products P1, P2, P3
      4. Create and confirm a MO for 1 x P1 with 1 x P2
         - It should create the PBM picking
      5. Add a component line for P3
      6. (Because the MO is locked, the user can not edit the 'to consume'
         quantity, so) Unlock the MO
      7. Set the 'to consume' qty to 1
      8. Save the MO
      
      Error: P3 is not added to PBM picking. Worst: suppose the user does
      the internal transfer and then checks the availability of P3, the
      line will still be unreserved
      
      Step 6, when unlocking the MO, it also triggers a save. As a result,
      the SM for P3 is created with its demand defined to 0. When adding
      such SM, we do several things through this method call:
      https://github.com/odoo/odoo/blob/be0b61cbaf3d3b7082aca8f96dcf8a6ee7885fea/addons/mrp/models/mrp_production.py#L776
      
      
      - We will adapt its procure method (here, because of 2-steps
        manufacturing, it will be MTO)
      - We will confirm the new SM -> we will run a procurement for a zero
        quantity -> it will not generate any new SM
      
      Then, when updating the SM quantity (step 7), nothing will run a new
      procurement.
      
      Moreover, this also explains why trying to reserve the SM does not
      work: it's an MTO one, but it does not have any `move_orig_ids`, so
      it is not possible to assign it.
      
      Solutions:
      - It should be possible to edit the 'to consume' qty of a new SM,
        even on a locked and confirmed MO
      - A procurement should be executed when updating the demand of an SM
        from 0 to >0. From 16.1, a procurement will always be executed
        each time the quantity changed (see [1]). Here, we want to limit
        the impact/risk of the fix
      
      [1] 1f4fb64a
      
      OPW-3253204
      
      closes odoo/odoo#135478
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      ba8f99c0
    • Jay Savaliya's avatar
      [FIX] mail: email/sms error icon overlap · ece650c1
      Jay Savaliya authored
      
      Before this commit:
      -While reading chatter notifications in the chat window, SMS and email icons are
      not accessible to click due to action list overlap.
      -While reading a reply on any message or attachment in chat widow,
      the attachment link is not accessible to click due to action list overlap.
      
      After this commit:
      -When SMS and email icons are visible, time and that icon will display to the
      following line so user can click on it easily.
      -Attachment links will display to the following line of mentioned so user can click
      on it easily.
      
      Task-2713371
      
      closes odoo/odoo#131020
      
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      ece650c1
    • Ludovic Gasc's avatar
      [CLA] Add IBM CLA signature agreement · 75fc0083
      Ludovic Gasc authored
      
      closes odoo/odoo#135745
      
      X-original-commit: 0d19b9e9
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      75fc0083
    • Walid's avatar
      [FIX] stock: forecast button color · d97a8947
      Walid authored
      adress both use cases in :
      https://github.com/odoo/odoo/commit/ed2849a55c1463689cbc201a782b0200207bfd37
      and
      https://github.com/odoo/odoo/commit/4248aac2d224363a6ac4a59881bdb7c321623e4b
      
      
      
      button should be red if there's no qty in stock but still be green if
      the qty was reserved for the move
      
      closes odoo/odoo#135049
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      d97a8947
    • Hugo Adan's avatar
      [IMP] pos_restaurant: build_line_resume & computeChanges resume datasets now are inheritables · ed501d34
      Hugo Adan authored
      
      With this commits the data sets about resume of the orderline now are
      inheritable, we are introducing new functions that will be the ones that
      returns the data structure of the lines resume; That info could be
      easily extended.
      
      closes odoo/odoo#134031
      
      Signed-off-by: default avatarPedram Bi Ria (pebr) <pebr@odoo.com>
      ed501d34
    • Benjamin Hanquin (beha)'s avatar
      [IMP] website: filter out unpublished records for non internal users · b1d14ba6
      Benjamin Hanquin (beha) authored
      
      Issue:
      Search on website has a big performance issue because the database has
      too many product_template.
      
      Analyze :
      The website search mechanism has hardcoded sql query. And the generic
      query don't have any filtering. Which lead to make a expensive search
      (similarity) on the whole product_template even if the products are
      not published and then displayed to the user.
      
      Fix :
      Filter the is_published field in the generic website method when the
      model has a 'is_published' field and the request is not done by a user
      (thus for customers or portal users).
      
      Note:
      The internal user is still able to search on unpublished product.Thus
      have no performance improvement.
      
      Benchmark:
      | SQL Query | # Input data | Before PR | After PR |
      |:---------:|:------------:|:---------:|:--------:|
      |General best_similarity |700000 products (161 published) | 12.65 s | 0.12 s |
      |FROM ir_translation|2,796,000 ir_translation | 6.338 s (586k hit) | 0.091 s (185 hit) |
      
      Related task:
      task-3473786
      
      closes odoo/odoo#130734
      
      Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
      b1d14ba6
  11. Sep 17, 2023
  12. Sep 15, 2023
Loading