Skip to content
Snippets Groups Projects
  1. Nov 10, 2022
    • Thomas Josse (thjo)'s avatar
      [FIX] event_sale: remove 'need to be paid' banner for free ticket · 7044223e
      Thomas Josse (thjo) authored
      
      This commit fixes an issue where if a ticket is free, the registration would
      still "need to be paid" by the attendee.
      
      This behavior is contradictory for a free ticket, so the attendee now has to
      pay the ticket if it is not paid and is not a free ticket.
      
      task-3012928
      
      closes odoo/odoo#105552
      
      X-original-commit: 2b0587fb
      Signed-off-by: default avatarWarnon Aurélien (awa) <awa@odoo.com>
      7044223e
    • William Braeckman's avatar
      [FIX] website_sale: fix traceback with express checkout · c124fb32
      William Braeckman authored
      
      It can happen that the payment transaction route is called without the
      amount kwargs, the code would crash in that case as we tried to access
      it either way.
      We moved the code after setting the default amount in the kwargs to
      avoid a crash.
      
      closes odoo/odoo#105537
      
      Signed-off-by: default avatarWilliam Braeckman (wbr) <wbr@odoo.com>
      c124fb32
    • Habib (ayh)'s avatar
      [FIX] account: view arch should not contain owl directives · 5de857d5
      Habib (ayh) authored
      
      The Accounting Journal Dashboard Kanban view contains direct owl components and directives. This should not be the case as it may cause problems with studio.
      
      This commit replaces the direct owl with
      1. a view widget for the file uploader buttons.
      2. the kanban record template is extended to add the dropzone and file uploader with context
      
      Task-3040946
      
      closes odoo/odoo#104117
      
      Related: odoo/enterprise#33218
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      5de857d5
    • Viktors Lipskis (vili)'s avatar
      [FIX] web: fix smooth-scroll-on-drag behavior · 0ed6d65d
      Viktors Lipskis (vili) authored
      
      Smooth-scroll-on-drag offset is eliminated, resulting in correct placement of scroll-sensitive areas.
      
      task-2979060
      
      closes odoo/odoo#100676
      
      Related: odoo/enterprise#31554
      Signed-off-by: default avatarArnaud Joset <arj@odoo.com>
      0ed6d65d
    • Jacky (trj)'s avatar
      [FIX] point_of_sale,pos_sale,l10n_fr_pos_cert: add error popups back · 954d7336
      Jacky (trj) authored
      
      Due to bc8d7590c04a0f1391021c8d1354f1eabca9742c, the error popups were mistakenly removed.
      
      closes odoo/odoo#105535
      
      X-original-commit: 3847d711e0d95d63b242d2e23253e2665292aad3
      Signed-off-by: default avatarHeinz Robin (rhe) <rhe@odoo.com>
      Signed-off-by: default avatarTrinh Jacky (trj) <trj@odoo.com>
      954d7336
    • Pierre Paridans's avatar
      [FIX] web: text field's translation icon position · 21688937
      Pierre Paridans authored
      
      This commit restores the `display: inline-block` to the fields' textarea
      to match the char field's input and allowing the textarea and the icon
      to stand side-by-side. This rules went away in the
      odoo/odoo@fb0bebc6cff2374d0d5ee392d62af0279b885a92 commit, but should
      have been restored in this case afterward.
      
      Although, a tweak is required for the editable ListView as it triggers
      a layout shift at the row's height level (ie. bigger when editing). This
      is due to the textarea content's vertical alignment which, in its
      default setting (ie. baseline) makes room for the descender portion of a
      letter (eg. the part below the baseline, as "g", "j", "q", "p", "y"
      letters) and, as result, makes the field vertically bigger.
      
      Steps to reproduce:
      - In Settings, add (at least) another language
      - Open Project
      - Open a project
      - Edit a kanban stage
      => the description field's translation icon is below the textarea
      
      closes odoo/odoo#105152
      
      Signed-off-by: default avatarAdrien Dieudonné (adr) <adr@odoo.com>
      21688937
    • Pierre Paridans's avatar
      [FIX] web: kanban group's long title · d9872ecc
      Pierre Paridans authored
      
      In a grouped KanbanView, long group's title makes the group (aka.
      column) grows instead of keeping its original size and truncate the
      title using an ellipsis.
      
      This commit fixes it by forcing a maximum width in addition of the
      Flexbox rules (`flex-basis`, `flex-grow`) to prevent this effect.
      
      Steps to reproduce:
      - Open CRM
      - In the KanbanView, create a new Stage with a very long title
      => the column grows instead of keeping its original width
      
      closes odoo/odoo#105531
      
      Signed-off-by: default avatarAdrien Dieudonné (adr) <adr@odoo.com>
      d9872ecc
    • Pierre Paridans's avatar
      [REF] web: kanban group's width · d7aa7dc8
      Pierre Paridans authored
      In grouped KanbanView, group's width follows three usecases:
      - on smaller screens, the group (aka. column) takes 90% of the viewport
        (to give a hint of the next/previous column)
      - on desktop-like screens, the group's width is based on the regular record's
        width and padding
      - on desktop-like screens, a smaller variant of the one above (cf.
        `o_kanban_small_column`)
      
      As the definition of those usecases where a bit
      all-over-the-place, this commit takes advantage of the CSS custom
      properties and the cascade to conditionally define the
      `--KanbanGroup-width` property and set only once the group's width (cf.
      `flex-basis`).
      
      Note: it fixes a small issue where the "quick create" column was always
      set to the smaller variant, even with regular record size.
      
      Part-of: odoo/odoo#105531
      d7aa7dc8
    • Romain Derie's avatar
      [FIX] website, *: hide .s_popup itself too, not only its .modal child · 21a5e700
      Romain Derie authored
      *: website_mass_mailing (tests)
      
      - Web Editor facts:
      Since the refactoring of the editor done at [1], the cookies bar popup
      is receiving a `contenteditable=true` attribute, making it receive the
      chrome default `height` style for such elements.
      The problem is that if this cookies bar's modal is hidden, the bar will
      be shown as a thin empty white bar.
      
      - Website Builder / Popup Snippet / Cookies bar facts:
      A popup element is composed of a `.s_popup` parent containing the actual
      `.modal` BS modal. Our internal logic and events are hiding and showing
      this inner `.modal` modal element without considering its `.s_popup`
      parent. It means that when the `.modal` is hidden, its `.s_popup` parent
      is not touched and kept visible.
      It might looks like it's not an issue as it would just be an empty
      element (its only child is hidden) but it leads to some issues as
      explained just above: an ugly white bar is shown.
      Note that the cookies bar is nothing more than a `.s_popup` snippet.
      
      - Web Editor facts 2:
      During the mentioned refactoring [1], they actually added some code to
      hide this bug once you were playing with the edit mode (mainly for when
      you clicked on the invisible panel element or before saving).
      But this code was actually not fixing the case when you just entered
      edit mode.
      
      This commit simply remove that "edit only" web editor logic and add a
      new one in charge of simply synchronizing the `.s_popup` snippet
      visibility with its `.modal` BS modal in a public widget (which is
      obviously also executed in edit mode).
      
      Finally:
      - note that if there is no way through regular flow to arrive to the
        same result with a normal popup snippet, it is still concerned by this
        issue and you can reproduce it by moving it somewhere else in the DOM
        and/or simply adding it the `contenteditable=true` attribute.
      - we already fixed that issue a few months/years ago, I couldn't find
        a commit related to that so I don't know if it was due to the same
        root cause
      - in case one is wondering why we simply couldn't do that in the already
        existing `_onHideModal` of the `PopupWidget`, it is because that
        `hide.bs.modal` is not called when entering edit mode, because the
        `destroy` is destroying it before hiding the modal. The event is thus
        not fired. And we can't move the hide part before the destroy's super
        because otherwise, it would go through the normal hidden process which
        is creating a "seen" cookie for the popup as if it was closed
        manually.
      
      [1]: https://github.com/odoo/odoo/commit/740168ce8d27da3d6a7156d2d79655a898394923
      
      
      
      task-2754108
      
      closes odoo/odoo#105516
      
      X-original-commit: cfd53b8f
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      Co-authored-by: default avatarqsm-odoo <qsm@odoo.com>
      21a5e700
    • FrancoisGe's avatar
      [FIX] web: search in a m2o block the ui · ddfe9f3d
      FrancoisGe authored
      
      Before this commit, performing a search in a m2o can block your ui
      despite the result already being displayed.
      
      Why?
      When you perform your search in a m2o, a set of RPC queries are made
      with the different search values (name_search). If the last search value
      (the one that will be used by the m2o in its autocomplete) has already
      been resolved, but one of the other RPCs has still not been resolved,
      then the screen will remain blocked until all the rpc's have been resolved.
      
      Solution:
      Since we are only interested in the last rpc, we will cancel all the
      others. So with each new rpc, we will cancel the previous one.
      
      How to reproduce:
      - Go to a form view with a m2o field
      - Edit this field +- slowly (several rpc will be done with different values)
      - Receive the result of the search. (The autocomplete is displayed with
           the right values)
      
      Before this commit:
      If one of the other rpc's is not yet resolved, the ui will block
      until all rpc's are resolved.
      
      After this commit:
      The ui will not block.
      
      closes odoo/odoo#105277
      
      X-original-commit: 17004165
      Signed-off-by: default avatarSamuel Degueldre <sad@odoo.com>
      ddfe9f3d
    • Hubert Van de Walle (huvw)'s avatar
      [FIX] web: mobile: scroll in selection mode · cd874593
      Hubert Van de Walle (huvw) authored
      This is a port of https://github.com/odoo/enterprise/pull/30046
      
       for wowl
      
      Steps to reproduce:
      
      On a mobile device:
      - Go to Inventory > Product Variants
      - Switch to the list view
      - Long press on a record
      -> We can't scroll to select records below the current screen
      
      closes odoo/odoo#99318
      
      Related: odoo/enterprise#33839
      Signed-off-by: default avatarPierre Paridans (app) <app@odoo.com>
      cd874593
    • Ricardo Gomes Rodrigues (rigr)'s avatar
      [FIX] account_edi{,ubl_cii}: disable move_type check · 5ffa0d75
      Ricardo Gomes Rodrigues (rigr) authored
      
      Currently, if the user uploads a facturx document whose move_type does not match the move_type chosen by the user, the document is not auto filled with the information contained in the facturx XML because of a restrictive check. Therefore, the document is empty and is sent to the OCR which acts as a backup.
      
      Starting from this commit, we will remove this restrictive check. So, if the user uploads a facturx document, we will use the move_type define by facturx regardless of the move_type chosen by the user. This means that when we upload a facturx document, we will always use all the information that is in the xml to create the document and avoid using the OCR.
      
      task-id 2961932
      
      closes odoo/odoo#105499
      
      X-original-commit: 7b18c2e7
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      Signed-off-by: default avatarRicardo Gomes Rodrigues (rigr) <rigr@odoo.com>
      5ffa0d75
    • Florian Vranckx's avatar
      [IMP] base: improve perfomance of has_group · 4e4aec7a
      Florian Vranckx authored
      
      Using the already existing indexing on the model to slightly improve the perfomance.
      
      closes odoo/odoo#105346
      
      X-original-commit: 4344d399
      Signed-off-by: default avatarVranckx Florian (flvr) <flvr@odoo.com>
      4e4aec7a
    • Aaron Bohy's avatar
      [FIX] web: AutoComplete: don't show previous results · 83769b00
      Aaron Bohy authored
      
      ... when re-opening the dropdown.
      
      Before this commit, in an autocomplete component with an async
      source, when:
       - clicking on the input to open the dropdown,
       - then typing something to filter the results
       - then selecting one of them (which closes the dropdown)
       - and finally re-opening the dropdown:
      the previously displayed (and filtered) results were briefly
      displayed, while the source was being fetched again. It thus
      produced a weird and annoying flickering.
      
      This commit fixes the issue by reseting the source before fetching
      it.
      
      closes odoo/odoo#105478
      
      Signed-off-by: default avatarMichaël Mattiello <mcm@odoo.com>
      83769b00
    • Guillaume (guva)'s avatar
      [FIX] account: cumulated balance non exportable in GL · bd41d369
      Guillaume (guva) authored
      
      We made the field cumulated balance non exportable
      in the GL.
      
      Steps:
      
      - Go to Accounting->Accounting->General Ledger
      - Unfold and select one or several lines
      - export lines
      -> The cumulated balance is not computed
      
      The reason is we don't pass in the compute as we don't
      come from the search_read method when exporting, so we don't have a domain
      to compute the cumulated balance.
      As we can't force the domain, we override the fields_get method
      to make the field non exportable.
      
      opw-2800669
      
      closes odoo/odoo#105342
      
      X-original-commit: a3563da3
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      Signed-off-by: default avatarGuillaume Vanleynseele (guva) <guva@odoo.com>
      bd41d369
    • Aaron Bohy's avatar
      [FIX] web: kanban tests: fix typo · 48cd64c4
      Aaron Bohy authored
      
      closes odoo/odoo#105397
      
      Related: odoo/enterprise#33782
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      48cd64c4
    • Nicolas (vin)'s avatar
      [FIX] website_sale_*: fix a few tests · 9a81cf60
      Nicolas (vin) authored
      
      Some tests are running tours, which have triggers on the amount.
      The issue is that if the test is running on a company with another
      currency than usd, and these tours ends up using a pricelist in USD for
      example, then the prices in the website will be adapted and no longer
      match the trigger in the tours.
      This change aims to correct that by ensuring that only one pricelist
      can be used when these tours are running, and that this pricelist
      currency matches the one from the company. As such, the prices will be
      as expected and the tours will run properly.
      
      closes odoo/odoo#104755
      
      Related: odoo/enterprise#33516
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      9a81cf60
    • Nicolas (vin)'s avatar
      [FIX] l10n_ar: avoid renaming products in demo data · cfbe95ae
      Nicolas (vin) authored
      Because it causes them to be inconsistent with their images,
      and causes issues with some website tours depending on them.
      
      Part-of: odoo/odoo#104755
      cfbe95ae
  2. Nov 09, 2022
    • Walid HANNICHE (waha)'s avatar
      [FIX] sale_coupon: move global coupons to the end of the SO · 7004b17e
      Walid HANNICHE (waha) authored
      
      Steps to reproduce:
       - Install website_sale_coupon
       - Load demo data
       - Create a promotion program that applies on the order
       - Go to the webshop and add 2 different products to the cart
      
      Bug:
      The line of promotion is in second place, instead of at the end.
      
      Fix:
      move the old sale order line to the end if it applies on all the order
      
      opw-2985632
      
      closes odoo/odoo#105513
      
      X-original-commit: 48d20d44cf08fee411411665013fdaca72bf39c3
      Signed-off-by: default avatarWilliam Braeckman (wbr) <wbr@odoo.com>
      Signed-off-by: default avatarWalid Hanniche (waha) <waha@odoo.com>
      7004b17e
    • niyasraphy's avatar
      [IMP] account_sale_timesheet, project_{}, sale_poject_account : module license · 7f2e386d
      niyasraphy authored
      
      closes odoo/odoo#105501
      
      X-original-commit: a7a991bcdd052c0493c50afe9af8a3b44dcd17c2
      Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
      7f2e386d
    • William Braeckman's avatar
      [FIX] website_sale: fix traceback when unselecting attribute · b8a1b114
      William Braeckman authored
      
      This commit fixes a traceback when changing the attributes when the
      current page has no products to display
      
      TaskId-3045085
      
      closes odoo/odoo#105473
      
      Signed-off-by: default avatarWilliam Braeckman (wbr) <wbr@odoo.com>
      b8a1b114
    • niyasraphy's avatar
      [FIX] sale,purchase,stock,account: partner form warning alignment · 6aa86c92
      niyasraphy authored
      
      closes odoo/odoo#104931
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      6aa86c92
    • Laurent Smet's avatar
      [IMP] account: do not grep partners for statement matching · 694c3680
      Laurent Smet authored
      
      Doing a regex search forces a sequential scan on too many rows.
      Because this is a function called often during the bank reconciliation,
      it is better to prioritize a faster flow than an automatic detection that is
      likely to not return anything anyways.
      
      closes odoo/odoo#105347
      
      Related: odoo/enterprise#33772
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      694c3680
    • Adrien Dieudonné's avatar
      [FIX] web: form: ignore invisible items from rows · e177c63e
      Adrien Dieudonné authored
      
      Before this commit, we had an issue with the width calculated
      for data cell (see. sizeOfDataCell).
      In some case, the width was 50% instead of taking 100% of the
      available space.
      
      This was because some elements of the inner groups that should not
      have been visible were computed as if they were, taking an effective
      slot in an innergroup's row.
      
      E.g. with two labels:
      
      Before:
      "invisible label" and "label" on the same line with `style="width: infinite"`
      "data field" on a second line with `style="width: 50%"`
      
      After this commit:
      "label" and "data field" on the same line with `style="width: 100%"`
      
      Note that as `infinite` is not a valid value, this wasn't interpreted and
      style attribute was empty.
      
      Thanks to grid for still aligning elements even if they are technically
      in different rows. It's why we only saw this issue because of the
      width of the data cell.
      
      Steps to reproduce:
      - Go to Accounting
      - Customer -> Invoice
      - Create a new invoice
      -> See Customer field
      
      Thx to @kebeclibre
      
      closes odoo/odoo#105450
      
      Signed-off-by: default avatarLucas Perais (lpe) <lpe@odoo.com>
      e177c63e
    • FrancoisGe's avatar
      [FIX] web: empty group when changing page · 04467197
      FrancoisGe authored
      
      Before this commit, in a grouped list view, it was possible to have
      empty groups when changing pages.
      
      Why:
      Before this commit, if a grouped list performs a load, then it is
      checked if its previousParams are equal to the current one. If so, we
      keep all the old groups empty. This requirement is related to the kanban
      view, so we will move it to the kanban model.
      The kanban view needs it when we archive data but don't want to delete
      groups (colomns). So we perform a load but we don't want to delete the
      empty columns.
      
      How to reproduce:
      - Go to a grouped list view
      - Click on a record
      - Return to the list view using the breadcrumb
      - Go to the next page
      
      Before this commit:
      The groups on the first page are always present with those on the second
      page. The groups on the first page are empty.
      
      After this commit:
      We only have the groups on the first page.
      
      closes odoo/odoo#105418
      
      Signed-off-by: default avatarJulien Mougenot (jum) <jum@odoo.com>
      04467197
    • Hubert Van de Walle (huvw)'s avatar
      [FIX] purchase: Uom should not be displayed when disabled · bc6c2d8d
      Hubert Van de Walle (huvw) authored
      
      Steps to reproduce
      ==================
      
      - Use a mobile phone / mobile view in devtools
      - Go to Purchase > Purchase Orders
      - Click on one item
      -> A traceback occurs, the uom is missing
      
      Cause of the issue
      ==================
      
      The field is declared as
        `<field name="product_uom" groups="uom.group_uom"/>`
      
      The raw value is accessed with
        `<t t-esc="record.product_uom.value"/>`
      
      Solution
      ========
      
      Add the missing group
      
      opw-3033650
      
      closes odoo/odoo#105283
      
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      bc6c2d8d
    • David (dafr)'s avatar
      [FIX] stock_account: Use correct company for SVL account_move creation · c29c668d
      David (dafr) authored
      
      The valuation field of the product_id is company-dependent.
      If the user validate the picking in multi-company context with his current company != picking company, then the checks may fail, and the account move can not be created.
      
      closes odoo/odoo#105446
      
      X-original-commit: 6a8df26f
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      c29c668d
    • Thibault Libioulle's avatar
      [FIX] sale_mrp{,_margin}: fix dependency break on purchase_price · 84a9f027
      Thibault Libioulle authored
      
      This commit fixes premature usage of `purchase_price` field on
      sale.order.line model, before its definition in sale_margin module.
      
      Since this test requires both sale_mrp and sale_stock_margin to pass,
      this commit adds an auto-install bridge module that solely address this
      issue.
      
      Steps to reproduce:
      - Install sale_mrp module
      - Run tests (at least .test_kit_cost_calculation)
      
      Problem:
      Traceback:
      AttributeError: 'sale.order.line' object has no attribute 'purchase_price'
      
      See #100126
      
      closes #104891
      
      closes odoo/odoo#105444
      
      X-original-commit: ac921c88
      Signed-off-by: default avatarDjamel Touati (otd) <otd@odoo.com>
      Co-authored-by: default avatarThibault Libioulle <thibault.libioulle@aerospacelab.be>
      84a9f027
    • Nshimiyimana Séna's avatar
      [FIX] account: set correct account on cash basis tax line · 410eefcc
      Nshimiyimana Séna authored
      
      ### Steps to reproduce
      * go to Accounting > Settings and activate 'Cash Basis'
      * got to Chart of Accounts and create a new  account of type
        `Current Assets`. We'll call it `A`.
      * create a new tax, we'll call it `T`, with the following parameters:
        * Tax type: Purchases
        * Tax computation: Percentage of Price
        * Amount: 22%
        * Distribution of invoices:
          * add a line with the following parameters:
            % = 40, Based On = 'of tax' and Account = the tax paid account.
          * add a second line with the following parameters:
            %= 60, Based On = 'of tax'
        * Distribution of Credit Notes: Add the same lines as
          'Distribution of invoices'
        * In the Advanced Options tab, set :
          * Tax Eligibility = 'Based on Payment'
          * Cash Basis Transition Account = `A`
      * create a new vendor bill and add a product line to it and set
        Taxes = `T` on that line
      * confirm and register payment
      
      Now go to Accounting > Journal Items, group by Journal. Look through the
      'Cash Basis Taxes' group and find the entries related to the vendor bill
      you just made. One of the debit lines on account `A` is not correct.
      Here, the account should be the one specified on the invoice line.
      
      opw-2796727
      
      closes odoo/odoo#105431
      
      X-original-commit: b69fc397
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      Signed-off-by: default avatarNshimiyimana Serge Séna (sesn) <sesn@odoo.com>
      410eefcc
    • Younn Olivier's avatar
      [FIX] web_editor: fix pasting youtube videos from the editor · 4923c20c
      Younn Olivier authored
      Before this commit, following this flow in the Website Builder:
      - Enter edit mode,
      - Drop a snippet with text,
      - Paste a youtube video link,
      - Click on the "Embed Youtube Video" option of the powerbox,
      => There is a traceback.
      
      This is coming from the bad function calls in the Wysiwyg to create a
      video node.
      When [1] reworked the MediaDialog in owl, a first implementation was
      done exporting some utils (saveVideos, videoSpecificMediaClasses). But
      this implementation was not kept and later changed to use static methods
      and properties on the VideoSelector class (createElements and
      mediaSpecificClasses).
      
      Unfortunately, the outdated util methods used in the Wysiwyg were not
      changed, and it was breaking the youtube video instertions.
      
      This commit changes the Wysiwyg to use the existing
      VideoSelector.createElements and VideoSelector.mediaSpecificClasses
      static method and property to fix this flow.
      
      [1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b
      
      
      
      task-2687506
      
      closes odoo/odoo#105166
      
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      4923c20c
    • Ashmawy Walid (was)'s avatar
      [FIX] Inventory: prevent crash when printing package report if uom rounding bigger than 4 digits · 60bac70d
      Ashmawy Walid (was) authored
      
      closes odoo/odoo#105437
      
      X-original-commit: ae22a2c3e98d6ccf9c3262d576ff9b483736552d
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      60bac70d
    • Joseph Caburnay's avatar
      [FIX] web: fix crash when editing m2m avatar field in list view · 02a04670
      Joseph Caburnay authored
      
      When editing a m2m avatar field in the list view, keyboard navigation,
      e.g. pressing arrow-left when the focus is on the right-most item,
      results to a crash. Also, the "delete" button when in edit mode
      is not there anymore so the user is unable to remove items.
      
      This is because we are not building the proper list of tags. More
      specifically, we fail to provide `onKeydown` and `onDelete` handler
      to the tags, thus, it crashes and no delete button. This proposed
      change fixes both issues.
      
      closes odoo/odoo#105435
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      02a04670
    • Sergey Shebanin's avatar
      [FIX] web: translations hash don't consider all loaded modules · 859cd046
      Sergey Shebanin authored
      Only server wide modules are being taken into account when calculating translations hash.
      So user probably can't get translations of new installed modules unless it is forced by hard page reload (Ctrl+Shift+R).
      
      Problem exists since https://github.com/odoo/odoo/commit/80d74e7ee0eab83dc5100e0776df09d04b882fec
      
       and the cause in that `mods = odoo.conf.server_wide_modules or []` string was unpaired with the following `if` statement during refactoring.
      
      This commit restores computation of hash based on all loaded modules.
      
      closes odoo/odoo#105432
      
      X-original-commit: ac2fa4fe9af1e98afb92bb98d5acd704a3a17821
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      859cd046
    • Alexandre Kühn's avatar
      [FIX] mail: allow uploading same attachment twice · 97f445ae
      Alexandre Kühn authored
      
      Before this commit, when uploading an attachment then delete
      then re-upload attachment again, the reupload was unsuccessful.
      
      This happens because it should clear the `<input>` of type `file`,
      but the condition was wrong and therefore `<input>` was not cleared,
      thus keeping same value as before so input was not detected as
      changed. A change on this file input is necessary to detect user
      interaction file upload.
      
      This commit fixes trigger for clearing the `<input>` of type file,
      so that any file upload is properly detected, including uploading
      same attachment.
      
      Task-3060429
      
      closes odoo/odoo#105422
      
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      97f445ae
    • roen-odoo's avatar
      [FIX] point_of_sale: apply timezone on order list · a2263df3
      roen-odoo authored
      
      Current behavior:
      When you open the order list, the orders are displayed in UTC.
      
      Steps to reproduce:
      - Be sure you are in a timezone different than UTC
      - Start a PoS restaurant session
      - Go on a table and make and order
      - Go on the order list
      - Go back on the table, then go back on the order list
      - The time showed for the order is not correct (it's in UTC)
      
      This bug was happening because `moment(order.validation_date)` consider
      that the date is already in the local timezone, so it doesn't apply the
      timezone offset. So we have to apply the offset manually before sending
      it to the frontend.
      
      opw-3002417
      
      closes odoo/odoo#105408
      
      X-original-commit: bd366a6d
      Signed-off-by: default avatarMasereel Pierre <pim@odoo.com>
      Signed-off-by: default avatarEngels Robin (roen) <roen@odoo.com>
      a2263df3
    • Camille Spiritus's avatar
      [FIX] account: fix l10n_ch qr & din5008 display · 627b0f58
      Camille Spiritus authored
      
      Germany and Switzerland both use the DIN5008 paper layout and encoutered some issues while printing an invoice's pdf.
      
      In Germany, the display of pdf invoices changed with v16.0. The header and footer would always display borders, which would mess up the rest of the display.
      
      Adding the 'table-borderless' class solved this problem.
      
      In l10n_ch, this issue was also encountered, and the general display of the qr bill page was set off. This is problematic since this display is highly rigid.
      
      Those changes seem to be linked to wkhtmltopdf unability to process some of the Bootstrap5 changes.
      
      While waiting for a more long term solution regarding wkhtmltopdf and BS5 compatibility, calling directly the adequate external_layout allows us to get back a correct QR Bill.
      
      task-3037921
      
      closes odoo/odoo#105349
      
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      627b0f58
    • Julien Mougenot's avatar
      [FIX] web,project: Restore kanban drag&drop in Firefox · a319928f
      Julien Mougenot authored
      Before this commit, the drag & drop feature for the Project "Tasks"
      kanban view did not work if the drag sequence was initiated from the
      title of the card.
      
      This was due to the "o_kanban_record_headings" class having the CSS rule
      `overflow: hidden`, because of a well known 6 year-long-and-counting
      bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1352061
      
      
      
      Namely: mouse enter|leave events won't fire on anything underneath
      elements having `overflow: hidden`.
      
      This commit adds the rule `pointer-events: none` on those elements (only
      in draggable records) so that they won't interfere with mouse events.
      
      Also in this commit: fixed a syntax error in a CSS rule in project's
      "task_name_with_subtask_count_char_field" widget.
      
      closes odoo/odoo#104128
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      a319928f
    • niyasraphy's avatar
      [FIX] base: name search for ir_module_module model · a33165a7
      niyasraphy authored
      
      name, shortdec, summary fields are added to name search based on the fields set in the filter domain of existing search view of apps menu
      
      closes odoo/odoo#105395
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      a33165a7
    • Solan Delvenne (sode)'s avatar
      [FIX] snailmail: Force english locale on snail-mails · e0233bff
      Solan Delvenne (sode) authored
      
      Pingen does not support localized country names, as such we need to force English locale.
      
      closes odoo/odoo#105288
      
      X-original-commit: 006dcbf8
      Signed-off-by: default avatarFlorian Daloze (fda) <fda@odoo.com>
      e0233bff
    • fdardenne's avatar
      [FIX] web: legacy_client_actions: scroll to saved position · 225e809a
      fdardenne authored
      
      Before in a legacy client action, using a link to change view and
      going back to the client action with breadcrumb does not restore the
      scroll position.
      
      Now with this commit, the scroll position is restored when going back to``
      the client action.
      
      Steps to reproduce:
      - Install Accounting
      - Go to `Accounting -> Reporting -> Balance Sheet`
      - Unfold the tree to make the window scrollable
      - Click on a link at the bottom of the window
      - Go back to Balance Sheet
      
      closes odoo/odoo#105273
      
      Signed-off-by: default avatarAaron Bohy (aab) <aab@odoo.com>
      225e809a
Loading