Skip to content
Snippets Groups Projects
  1. Dec 17, 2022
  2. Dec 16, 2022
    • Adrien Widart (awt)'s avatar
      [FIX] mrp: hide smart buttons for kits · 322a89e1
      Adrien Widart (awt) authored
      
      When a kit template has several variants, the on hand quantity can be
      incorrect.
      
      To reproduce the issue:
      1. Create two products P_compo, P_kit:
          - P_kit:
              - Storable
              - Variants:
                  - Color (White, Black)
          - P_compo:
              - Storable
      2. Update the on hand quantity of P_compo: 10
      3. Create two BoMs:
          - BoM01:
              - Product: P_kit
              - Variant: Black
              - Type: Kit
              - Components: 1 x P_compo
          - BoM02:
              - Product: P_kit
              - Variant: White
              - Type: Kit
              - Components: 2 x P_compo
      4. Open the form view of the template P_kit
      
      Error: it displays "15 units on hand", which is impossible (there are
      only 10 P_compo available)
      
      Since it is difficult to determine the expected value, a decision has
      been made: hide these smart buttons if a template has more than one
      variant and if at least one of the variants is a kit.
      
      OPW-2645299
      OPW-2678400
      OPW-3076502
      
      closes odoo/odoo#104481
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      322a89e1
    • Yolann Sabaux's avatar
      [FIX] account: wrong variable + translation · 28293c96
      Yolann Sabaux authored
      Fix the PR https://github.com/odoo/odoo/pull/107553
      
      
      
      closes odoo/odoo#108141
      
      Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
      28293c96
    • PoMa's avatar
      [FIX] account : restore QR code generation for vendor bills · c785c00b
      PoMa authored
      
      To Reproduce
      ============
      
      - enable QR code on Accounting settings
      - with a vendor who has a bank account create an invoice from him/her
      - print or preview the credit note
      
      The Problem
      ===========
      
      the qr code method field will not be filled with SEPA, and a QR code will not be added to the PDF or preview.
      This qr reflects the vendor's bank account, so the user could scan it and send the money.
      This feature was removed by PR #104496 because it was also printed in the refunds to the customers, which was odd, but as a side effect it is also removed from vendor bills.
      
      Solution
      ========
      The QR should not be hidden in vendor bills and purchase receipts, ( also in vendor refund it can be helpful for the vendor, but there isn't any complain about it now )
      A better solution would be displaying the QR code in the form view if it is not the company's bank account (it is the partner's bank account), but it should be done in master, it is too much of change for stable versions.
      
      Ticket No: 3071310
      
      Closes: #108098
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      c785c00b
    • Arthur Detroux (ard)'s avatar
      [FIX] website: properly add anchors into website menu · b3b21e74
      Arthur Detroux (ard) authored
      
      Prior to this commit, adding an anchor using auto-complete would not
      properly prefix the url with the URL of the current page.
      
      Steps to reproduce:
      - Create a page (e.g. /test), add blocks and create an anchor (e.g.
      - Save the page
      - Click on "Edit Menu" in "Pages"
      - Add a new menu entry
      - Type '#' in the URL field and select the anchor
      - Save
      
      => The menu entry is wrongly set as it does not contain the original
      page's URL inside the `href` attribute. This means that clicking on the
      menu from any other place will not properly redirect to the anchor on
      the /test page
      
      On top of that, editing a menu entry that was previously linked to a
      page would change the URL of the page with an anchor, making it
      impossible to access the page anymore until you change the URL back in
      the page manager.
      
      Steps to reproduce:
      - Create a new page (e.g. test)
      - Add a new menu entry that has this page as its URL
      - Save the new menu entry (close the dialogs)
      - Re-open the Menu dialog and edit the newly created menu entry
      - In the URL field, replace it with the page + an anchor
       (e.g. /test#anchor)
      - Save
      => The page's URL is now /test#anchor and is no longer accessible
      
      The is due to the `save` method of the `website.menu` model not
      containing code to properly manage adding an anchor to the menu.
      
      This commit fixes that.
      
      opw-3067750
      
      closes odoo/odoo#106882
      
      Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
      b3b21e74
    • Chong Wang (cwg)'s avatar
      [IMP] base: allow non-administrators to search res.groups by names · c3385ba1
      Chong Wang (cwg) authored
      before this commit:
      users without read permission of ir.module.category cannot search
      res.groups by names. An access error will be raised.
      
      after this commit:
      all users with read permission of res.groups can search res.groups
      by names
      
      Backport of odoo/odoo#97877 with small fix for bool case
      
      closes odoo/odoo#108155
      c3385ba1
    • aliya's avatar
      [IMP] l10n_lu: adapt tax report to 2023 updates · 1829c722
      aliya authored
      
      Luxembourg added new fields and modified some rules for VAT reports: monthly, simplified, and annual.
      - Add new fields
      - Adjust formulas
      
      task-2993792
      
      closes odoo/odoo#104833
      
      Related: odoo/enterprise#33558
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      1829c722
    • Pierre-Yves Dufays's avatar
      [FIX] note: support link in note created from the systray · 34b35c56
      Pierre-Yves Dufays authored
      
      The URLs in notes created from the systray were not transformed into links.
      This solves the problem.
      
      Task-3052952
      
      closes odoo/odoo#105990
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      34b35c56
  3. Dec 15, 2022
  4. Dec 14, 2022
  5. Dec 13, 2022
    • momegahed's avatar
      [FIX] payment: user is able to delete linked journals · 60366ba8
      momegahed authored
      
      Steps to reproduce:
      
      1- install any payment acquirer (e.g. stripe)
      2- configure the payment acquirer and link it to a journal
      3- try to delete the journal
      4- the journal can be deleted which will create an internal server
      error when this payment acquirer is used
      
      Bug:
      
      There is no restriction on deleting `account.journal` linked to
      payment acquirers
      
      Fix:
      
      add a restriction that forces the user to remove the journal from the
      payment acquirers first
      
      OPW-3089006
      
      closes odoo/odoo#107842
      
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      60366ba8
    • Aurelien van Delft (avd)'s avatar
      [FIX] delivery: read_group fest speeding up weights compute · ccac6fce
      Aurelien van Delft (avd) authored
      
      Currently _compute_bulk_weight and _compute_weight are
      going through each picking in self and each stock_move_line
      in picking.move_line_ids to compute the pickings' weight.
      
      This can be slow when there are lots of move_lines by pickings
      as the field cache will be filled by the move_lines records
      and uom._compute_quantity will be called once by move_line.
      
      This is especially true for pickings with SN-tracked products.
      For SN tracked products there will be one move_line by product_qty
      (so a picking with 1 SN tracked product with a qty of 100 will have
       100 move_lines). In this case doing a read_group yields the highest
      speedup.
      
      Following the same reasoning a search_count is done in _compute_packages
      before retrieving package.move_line_ids.
      When package.move_line_ids.result_package_id is empty doing a count
      is much faster as it avoids calling _in_cache_without for the package
      move_line_ids. The search_count overhead is negligeable in the other
      case so adding it leads to an overall speedup on average.
      
      opw-3017013
      
      closes odoo/odoo#107558
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      ccac6fce
    • Hoang Tran's avatar
      [IMP] stock: improve traceability report perf · b40e0ea6
      Hoang Tran authored
      
      When checking if a line in traceability report is unfoldable,
      `_get_move_lines` is a costly operation and should be executed last when
      all other conditions are satisfied.
      
      closes odoo/odoo#107677
      
      Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
      b40e0ea6
    • MerlinGuillaume's avatar
      [FIX] project: recurring dates of monthly repeated task until date · f94dbfe0
      MerlinGuillaume authored
      
      Computing the recurrences of a task repeating every X months until a
      certain date generates too much dates
      
      Steps to reproduce:
      1. Install Project
      2. Go to Settings > Project > Tasks Management and enable Recurring
         Tasks
      3. Open any project in the Project app and create a new task then edit
         it
      4. Enable the Recurrent field of the task
      5. In the Recurrence tab, edit:
         - Repeat Every: 6 Months
         - Until: End Date: one year from now
      6. The recurrence message says there are 11 tasks but there should only
         be 2
      
      Solution:
      Generate the recurrences until the `repeat_until` date is reached if the
      `repeat_type` is 'until', otherwise generate as much recurrences as the
      count
      Also relax the constraint on the `repeat_day` and `repeat_until` to not
      raise an error if `repeat_until` is the last day of the month
      
      Problem:
      The recurrence of a task with `repeat_unit` month and `repeat_interval`
      different than 1 with a `repeat_type` until creates too much tasks,
      exceeding the `repeat_until`
      
      opw-3076593
      
      closes odoo/odoo#106596
      
      Signed-off-by: default avatarLaurent Stukkens (ltu) <ltu@odoo.com>
      f94dbfe0
  6. Dec 12, 2022
  7. Dec 11, 2022
  8. Dec 09, 2022
    • Romain Derie's avatar
      [FIX] website: authorize again the trailing slash in SEO name field · 427ce767
      Romain Derie authored
      Commit [1] improved the "sanitation" of this field for special
      character. For instance, when copy pasting the following terms:
      
      |      Input      |      Before      |       After     |
      |-----------------|------------------|-----------------|
      | fée d'été à 40€ |    f-e-d-t-40-   |  fee-dete-a-40  |
      | Nội dung có Dấu |  n-i-dung-c-d-u  | noi-dung-co-dau |
      
      But it actually came with a bad behavior which was not noticed: it
      prevents to type `-` at the end of the input, which sounds good but is
      not.
      Indeed, when typing `a-word`, you will type `a` then try to type `-`
      which won't work as considering a (forbidden) trailing slash, even if
      you actually want to type something after.
      
      This commit allows trailing slashes again, it's not a big deal and one
      can remove it if he wants to.
      
      [1]: https://github.com/odoo/odoo/commit/bb43d4dbb5745be84f0f9462e768989e50607bea
      
      
      
      opw-3075419
      
      closes odoo/odoo#107610
      
      Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
      427ce767
    • Louis (loco)'s avatar
      [FIX] web_editor: enable the switch between the tabs of a custom tabs · 5569fbf9
      Louis (loco) authored
      
      This commit enables the switch between the different tabs of a custom
      tabs even in the editor mode.
      
      Steps to reproduce the bug:
      - Drag & drop a tabs snippet on the website.
      - Save it ("save the block to use it elsewhere") as a custom block.
      - When the editor mode is "on", it is impossible to switch between the
      different tabs of the custom tabs.
      
      The goal of this commit is to differentiate the ID's of the tab panes
      located on the website and the ones of the corresponding custom model
      located on the edit bar. In the case of the tabs snippet, it is
      important in order to link the anchors of the tabs to their correct
      tab pane. Indeed, before this commit, two tab panes (the one on the
      website and the custom model on the edit bar) had the same ID's. The
      anchors of the tabs on the website were linked to the tab pane located
      on the edit bar.
      
      opw-2988215
      
      closes odoo/odoo#103635
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      5569fbf9
    • niyasraphy's avatar
      [FIX] l10n_ma: fix module name · d332f38f
      niyasraphy authored
      
      update the module name of l10n_ma. Morocco is the real country name and currently upon searching with country name, app is not listed.
      
      closes odoo/odoo#107598
      
      Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
      d332f38f
  9. Dec 08, 2022
    • Romain Derie's avatar
      [FIX] website: make sidebar menu visible on safari on mac · ffa34d84
      Romain Derie authored
      
      For some reason, safari on mac is not showing the sidebar menu content
      at all. It remains a white div without content.
      
      Seems like a bad implementation of that browser for this case, or at
      least an implementation which is not shared by all other browsers.
      
      Note that removing `z-index`, `position:absolute` or `overflow` css
      property from the `wrapwrap` will make the menu appear.
      !!! Also note that having a non scrollable page (not enough content),
      like an empty homepage, will make the menu appear too. !!!
      
      As this issue is quite critical:
      - All mac/safari users are not seeing your website menu..
      - And the admin don't event know it most of the time (as not on mac)
      And since:
      - It's been going for months without someone finding a proper fix
      - It's hard to investigate as devs generally don't have mac to
        investigate and have to use browserstack which is really bad for such
        work
      This commit is a fix attempt using `calc` which is probably not ideal.
      
      Step to reproduce:
      - Select the sidebar header template
      - Visit the website on safari
      -> The menu will be invisible, like if the navbar was empty
      
      opw-2984536
      opw-2896939
      
      closes odoo/odoo#107010
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      ffa34d84
Loading