Skip to content
Snippets Groups Projects
  1. May 05, 2023
    • Jinjiu Liu's avatar
      [FIX] web_editor: deleting copied table causing a false error traceback · 77f2c589
      Jinjiu Liu authored
      
      Reproduction:
      1. Open LibreOffice Calc (linux), create an empty xls file
      2. In LibreOffice, input random things as a 4 (rows) by 2 (columns)
      table
      3. Create a new note in Odoo, copy the table to it
      4. Hold Shift and click the place right before the first cell (out of
      the table but still in the editable area)
      5. Delete the selected table, a trace back popped up
      
      Fix: add an extra condition to make sure parentFragmentTr is not null
      before unpacking it
      
      Note: as you probably noticed, the cleared table does not retain the
      original dimensions, e.g. it turns to a 2-row, 4-column table. This is a
      deeper issue of how we restore the table, and another task will be
      created for this. This PR is a first-aid patch to solve the error
      message as it confuses the client a lot
      
      opw-3255144
      
      closes odoo/odoo#119674
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      77f2c589
    • Khushi Vakil's avatar
      [FIX] mrp_subcontracting: change resupply subcontractor source location · 13f078e4
      Khushi Vakil authored
      
      In this commit the resupply subcontractor source location is changed from
      virtual production to WH/stock
      
      Task id: 3263796
      
      closes odoo/odoo#118316
      
      Signed-off-by: default avatarTiffany Chang <tic@odoo.com>
      13f078e4
    • yhu-odoo's avatar
      [FIX] mrp: duplicate lot when auto-generate serial · 697399be
      yhu-odoo authored
      
      Previous commit 1b840d06 tried to fix
      the issue action_generate_serial may try to generate a existing lot.
      But it made the lot number completely product specific. This change is
      too big for stable, we revert the change in this commit.
      
      Also to fix the issue, when action_generate_serial tries to generate a
      lot, we always try the result from ir.sequence frist, only when the lot
      already exists, we then try create one based on the product's lastest
      lot number.
      
      Task-3187003
      
      closes odoo/odoo#120581
      
      Signed-off-by: default avatarArnold Moyaux (arm) <arm@odoo.com>
      697399be
    • Roy Le's avatar
      [CLA] Viindoo updates Odoo's CLA · 1c10ab5c
      Roy Le authored
      
      closes odoo/odoo#120583
      
      X-original-commit: 8aefb386
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      1c10ab5c
    • flvr-odoo's avatar
      [FIX] hr_expense: prevent linking of expense with no perm · 1d83f202
      flvr-odoo authored
      
      Previously, a user could link his own expenses to a expense sheet
      of someone else.
      
      This would not be allowed upon creation but was allowed when updating
      the values of the expense.
      
      This commit add a simple check at the beginning of the write()
      
      closes odoo/odoo#120592
      
      X-original-commit: 7bcd64c5
      Signed-off-by: default avatarVranckx Florian (flvr) <flvr@odoo.com>
      1d83f202
    • Kamlesh Pathekar's avatar
      [FIX] website_sale: fix the disappearing attribute filter · 28bb2cc7
      Kamlesh Pathekar authored
      
      Steps:
      - In eCommerce activate Filter by prices and Attributes & variants filters
      - select one attribute with >1 item (e.g. aluminum legs)
      - put a price limit.
      - the attribute filter is removed.
      
      The commit will prevent the removal of the 'variants attribute filter'
      when an attempt is made to apply a price range.
      
      task-3101343
      
      closes odoo/odoo#111478
      
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      28bb2cc7
  2. May 04, 2023
    • Ivan Yelizariev's avatar
      [FIX] website_sale_digital: let salesman download digital via portal · 17780c6a
      Ivan Yelizariev authored
      Portal shows all Sale Orders available for current user. For example, salesman
      can see his sales. If such a user can download digital files via product form in
      backend, it makes sense to let user download them via SO page on portal.
      However, it wasn't the case because /my/download requires product be purchased
      by current user [1]. Fix it by checking read access first.
      
      STEPS
      
      * in backend create SO with digital product (customer must be different from
      current user)
      * create invoice and register a payment
      * navigate to portal  (without using customer's token),
      * open SO, click download on digital product
      
      [1]: https://github.com/odoo/odoo/blob/1a24477fab4dd323cf94c010321d8942fb2c1a01/addons/website_sale_digital/models/account_invoice.py#L14-L22
      
      
      
      opw-3144600
      
      closes odoo/odoo#120492
      
      X-original-commit: 51fd5d3c
      Signed-off-by: default avatarMorgane Demesmaeker <edm@odoo.com>
      17780c6a
    • ravb-odoo's avatar
      [REV] project: revert 'fix recurrence boolean should be hidden issue' · 66480c0f
      ravb-odoo authored
      
      Description:
      This reverts commit f3c306260fbd0766c2cfe98bd0ac826b7662acbc.
      
      Previous Change:
      In project module, when sub-tasks is created then recurrence boolean field
      should not be visible in that task. It only visible in parent tasks.
      
      Changes Made:
      This commit reverts the changes made in commit
      f3c306260fbd0766c2cfe98bd0ac826b7662acbc. to return the code to its previous
      state, where the recurrence field is visible in sub-tasks.
      
      task-3252521
      
      closes odoo/odoo#120392
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      66480c0f
    • Victor Feyens's avatar
      [FIX] sale: recompute taxes on company change · fc5e5b05
      Victor Feyens authored
      
      When the company is modified on a SO, the taxes will be recomputed
      iff the fiscal position has changed (which will only happen if the fiscal
      positions were configured/set on the SO).
      
      After this commit, the behavior is harmonized with the purchase flows,
      and the taxes will always be recomputed on company change, even if the fiscal
      position was not modified by the company change.
      
      opw-3234905
      
      closes odoo/odoo#120298
      
      Signed-off-by: default avatarVictor Feyens (vfe) <vfe@odoo.com>
      fc5e5b05
    • Patrick Hoste's avatar
      [FIX] website_slides: fix multiple course review bug · c3b11554
      Patrick Hoste authored
      
      Before this commit, it was possible for one to post
      multiple reviews when all the already posted reviews
      had the 'Employee Only' state. A traceback was also
      thrown when trying to update an 'Employee Only'
      comment. It was also possible to edit a log note.
      This commit fixes all these issues.
      
      Task-2810085
      
      closes odoo/odoo#107958
      
      Signed-off-by: default avatarStéphane Debauche (std) <std@odoo.com>
      c3b11554
    • Guillaume (guva)'s avatar
      [FIX] hr_expense: expense{_sheet} state reset move to draft · f6a13938
      Guillaume (guva) authored
      
      Override the button_draft method, in order to
      reset the expense and expense_sheet state
      when resetting a move to draft.
      
      Steps:
      
      - Create an expense
      - Submit and approve the report
      - Post journal entry and register payment
      - Reset the JE to draft
      -> The expense and expense sheet states
         remain the same as before resetting
         to draft. They should be respectively
         'approved' and 'post'
      
      opw-3279364
      
      closes odoo/odoo#120514
      
      X-original-commit: d1d12574
      Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
      Signed-off-by: default avatarGuillaume Vanleynseele (guva) <guva@odoo.com>
      f6a13938
    • Guillaume (gdi)'s avatar
      [FIX] web: remove prohibited dropzones of the menu editor · 3e278f87
      Guillaume (gdi) authored
      
      In the website menu editor and in the studio menu editor, the user can
      drag & drop the elements that constitute the menu of his website/app.
      Users can also put a menu into another menu to create a sub-menu. For
      the website, we allow two levels of menu but not more. For studio we
      allow 5 levels of menu. When the user starts to drag an item, dropzones
      can be drawn on the prohibited level (3 in website, 6 in studio) while
      he can't create this level of menu. This commit adds a css rule to hide
      those forbidden dropzones.
      
      task-3251032
      
      closes odoo/odoo#120470
      
      X-original-commit: dac80feb
      Signed-off-by: default avatarloco-odoo <loco@odoo.com>
      3e278f87
  3. May 03, 2023
    • MerlinGuillaume's avatar
      [FIX] mail: disable the sidebar when opening a pdf in the chatter · 74e76bfb
      MerlinGuillaume authored
      
      The pdf viewer sometimes displays the sidebar when we open the pdf
      
      Solution:
      Add `pagemode=none` to the url when opening a pdf in attachments
      
      opw-3193516
      
      closes odoo/odoo#120347
      
      X-original-commit: da9b89ad
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      Signed-off-by: default avatarGuillaume Merlin (megu) <megu@odoo.com>
      74e76bfb
    • Mahamadasif Ansari's avatar
      [FIX] payment: prevent deletion of payment acquirer if it has external reference · a0bfc654
      Mahamadasif Ansari authored
      "ValueError: External ID not found in the system: payment.payment_acquirer_
      stripe" is generated because the user deleted the Stripe payment acquirer
      record and its corresponding model tried to access the record of it.
      
      Steps to produce the error:
      1. Install e-commerce
      2. Install install 'Stripe Payment Acquirer ' module
      2. delete the Stripe payment from payment acquirer
      3. Go to the e-commerce dashoboard
      4. Click Set Payment
      5. select Credit card (via Stripe)
      6. enter any secret and Publishable key
      7. click apply
      
      This commit solves the above issue by preventing the deletion
      of the payment acquirer if it has a external reference.
      
      sentry-4041178833
      
      closes odoo/odoo#120391
      
      X-original-commit: https://github.com/odoo/odoo/commit/c54a398513666508161796a498e8f8c3c7401b9f
      
      
      Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
      a0bfc654
    • Naman Shah's avatar
      [FIX] crm: remove the field date_closed from demo data · b4e3eace
      Naman Shah authored
      
      Purpose:
      The purpose of this commit is to change the current behavior of days to close
      graph generating from customizable desk demo data.
      
      Specification:
      For the opportunities, the day_close field is a compute field depending upon the
      date_closed field. For the customizable desk demo data, the date_closed field
      pre-existed, due to that customizable desk opportunity was not won or lost but
      the graph report was generated.
      so, this commit fixes the current behavior for customizable desk opportunity.
      
      Task-3278039
      
      closes odoo/odoo#120384
      
      X-original-commit: e368725b
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      b4e3eace
    • Julien Van Roy's avatar
      [FIX] account_edi_ubl_cii: handle paid invoice at import · b1e07f81
      Julien Van Roy authored
      
      The edi attachment (for every format in `account_edi_ubl_cii`) contains
      a tag indicating whether the invoice is fully/partially paid.
      
      Before this fix, when this tag was filled, a down payment section was
      created on the invoice. For a fully paid invoice, the resulting amount
      was then 0, so the invoice was marked as "Paid".
      
      This was wrong. The correct amounts need to be kept on the invoices.
      This fix no longer creates a down payment, instead a message is logged
      in the chatter.
      
      task-3264843
      opw-3248200
      
      closes odoo/odoo#120340
      
      X-original-commit: 47905d21
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      Signed-off-by: default avatarJulien Van Roy <juvr@odoo.com>
      b1e07f81
    • Victor Piryns (pivi)'s avatar
      [FIX] project: add access_token to portal pager · 73d8c5ca
      Victor Piryns (pivi) authored
      
      Current behaviour:
      If a project has more than 80 tasks, there is pagination activated
      in the project portal view. But when clicking on the second page, we
      are requested to login, even when we come from a shared link.
      
      Expected behaviour:
      You should be able to scroll through the pages of tasks related to
      the shared project without being requested to login.
      
      Steps to reproduce:
      - Install Project
      - Create 100+ tasks in 1 project
      - Copy the share link of that project.
      - Log out, open the shared link.
      - Go to page 2 of the tasks -> login request.
      
      Reason for the problem:
      Missing `access_token` in the pager urls to browse through the tasks.
      
      Fix:
      Add the `access_token` as url argument in the links when creating
      the pager for the portal view. Backport PR #119941
      
      Affected versions:
      - 15.0
      - saas-15.2
      
      opw-3220659
      
      closes odoo/odoo#120382
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      73d8c5ca
    • Benjamin Vray's avatar
      [FIX] website_blog: fix read next article block · 05b04d84
      Benjamin Vray authored
      
      Before this commit, on a blog page with the "regular cover" and "read
      next article" options enabled, the image in the "read next article"
      block would shrink when the text was too long.
      
      Steps to reproduce the bug:
      
      - Go to a blog page (e.g. "Sierra Tarahumara").
      - Enable the "regular cover" and "read next article" options.
      - Enter edit mode.
      - Scroll down the page.
      - Enter a lot of text as the title of the "read next article" block.
      - Bug: As the text increases, the width of the image decreases.
      
      opw-3267842
      
      closes odoo/odoo#119945
      
      X-original-commit: 06a6e78b
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      05b04d84
    • xO-Tx's avatar
      [FIX] web: fix autoMoreMenu with no-hamburger option · 615ef8d0
      xO-Tx authored
      
      On small viewports, and with the "Same as desktop" option enabled on
      header, The "autohide menu" adaptation is disabled and overflowing
      menu items are visible.
      
      The goal of this commit is to fix this behaviour by keeping the
      "autohide" feature enabled on expanded navbar.
      
      task-3261909
      
      closes odoo/odoo#119553
      
      Signed-off-by: default avatarloco-odoo <loco@odoo.com>
      615ef8d0
  4. May 02, 2023
  5. Apr 30, 2023
  6. Apr 28, 2023
    • roen-odoo's avatar
      [FIX] pos_sale: correctly update move qty when settling a pos order · 20461135
      roen-odoo authored
      
      Current behavior:
      When settling a pos order containing 2 different product, the qty of the
      2 products would be modified even if you only deliver one of them
      through the pos order.
      
      Steps to reproduce:
      - Create 2 product A and B
      - Create a sale order with 1 product A and 1 product B
      - Open a PoS session, and settle the order you just created
      - Deliver only 1 product A
      - Close the PoS session
      - Go the the sale order delivery, you will see that the qty are not
        correct
      
      opw-3227053
      
      closes odoo/odoo#117402
      
      Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
      20461135
    • HuylenbroeckFlorent's avatar
      [FIX] Install l10n_eu_oss without chart template · d6907d7a
      HuylenbroeckFlorent authored
      
      When installing l10n_eu_oss without a localization installed, a line fails
      in the get_oss_tags function of res_company, thus halting the installation
      and returning an error.
      
      This fail is due to the function relying on the company in self having its
      'chart_template_id' set, when this is not always the case.
      
      Adding a failsafe to that function allows the installation of the module to
      proceed in the event that the chart_template_id is not set.
      
      opw-3291118
      opw-3289913
      
      closes odoo/odoo#120104
      
      X-original-commit: 4b140806
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      Signed-off-by: default avatarHuylenbroeck Florent (flhu) <flhu@odoo.com>
      d6907d7a
    • Moises Lopez's avatar
      [FIX] requirements.txt: unpin pytz · 710a2b2a
      Moises Lopez authored
      
      On Debian based systems, the `tzdata` package is maintained to reflect changes
      in timezones and there is no need to upgrade the `python3-tz` package.
      On the other hand, for those who are using `pip` and thus our `requirements.txt`,
      the package needs to be up to date. By unpinning it in the requirements.txt:
      
      - new installations based on pip will be up to date
      - older installations based on pip can easily upgrade
      - debian based installations have to maintain the tzdata package
      - mixed installs like on runbot will rely on Debian tzdata
      
      closes odoo/odoo#117527
      
      closes odoo/odoo#120084
      
      Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
      710a2b2a
    • John Wilson's avatar
      [FIX] tests/common: Fix tests on Windows and with Debian release · f8d36d4a
      John Wilson authored
      
      closes odoo/odoo#119895
      
      Signed-off-by: default avatarXavier Dollé (xdo) <xdo@odoo.com>
      f8d36d4a
    • Maximilien (malb)'s avatar
      [FIX] hr_expense: approval date · ef5715c3
      Maximilien (malb) authored
      
      Before this PR from version 15 to 16.1, the approval date was not populated so
      when you were in studio and add this field manually. The field stayed empty
      which wasn't the behaviour we wanted.
      
      When clicking the approve button, the approval date is now populated with the
      complete date.
      
      closes odoo/odoo#117126
      
      Task-id: 3254147
      Signed-off-by: default avatarQuentin De Paoli <qdp@odoo.com>
      ef5715c3
    • Benjamin Vray's avatar
      [FIX] website, web_editor: fix colors of snippets in "all pages" popup · 4edc8f93
      Benjamin Vray authored
      Since this commit [1], the option to set the background color for
      snippets in the footer has been removed. However, this should not affect
      the snippets in the "All pages" popup, which is also located in the
      footer.
      
      This commit fixes that by showing the background color option for popup
      snippets in the footer.
      
      Steps to reproduce the bug:
      
      - Drop a popup.
      - Set the "Show On" option to "All pages".
      - Drop a text block in the popup.
      => The text color is white over a white BG (because it is in the footer
      and the footer text is white).
      
      [1]: https://github.com/odoo/odoo/commit/00f70f7936d37ec1c7c26065b2126045337e2825
      
      
      
      task-3102275
      
      closes odoo/odoo#120083
      
      Signed-off-by: default avatarBenoit Socias (bso) <bso@odoo.com>
      4edc8f93
    • Damhaut Florian (flda)'s avatar
      [FIX] product: Improved error message for pav deletion · 5079a027
      Damhaut Florian (flda) authored
      
      What are the steps to reproduce your issue?
      - Create a product with more than one attribute.
      - Let say color White, black and purple
      - Create a 'draft' invoice for the purple product variant
      - Remove the 'purple' attribute value from the product
      - It will archive that variant (because the account.move linked to it)
      - Try to delete the attribute value from menu Sales > Cofinfiguration > Attribute
      
      What is the current behavior that you observe?
      - technical error message
      
      What would be your expected behavior in this case?
      - non-technical message for end-users
      
      Solution :
      - Change both message to tell user he cannot delete the value if the value has been referenced somewhere else.
      opw-2623583
      
      missing forward-port of db1e52f0
      
      closes odoo/odoo#119989
      
      Signed-off-by: default avatarMorgane Demesmaeker <edm@odoo.com>
      5079a027
    • Zeel Patel's avatar
      [IMP] l10n_in_edi_ewaybill: transporter id must have GST number · d09c9358
      Zeel Patel authored
      
      In this commit, when user has created a transporter from the invoice view and if it's forget to enter GSTIN
      Then we throws error to set GSTIN in transporter
      
      transporter always have GSTIN, without having GSTIN any one is not allowed to transport goods in India.
      
      task - 3262215
      
      closes odoo/odoo#117658
      
      Signed-off-by: default avatarQuentin De Paoli <qdp@odoo.com>
      d09c9358
    • David Monjoie's avatar
      [FIX] web_editor: fix ClipboardJS traceback in Firefox 109 · c0da01c7
      David Monjoie authored
      Starting with Firefox 109, a widget element prototype that is put
      inside an iframe will not be instanceof its original constructor.
      See: https://github.com/webcompat/web-bugs/issues/118350
      
      This is because a node that is adopted by an iframe will have its
      prototype changed to match the constructor from within the iframe
      instead of its original one. This has been the case for a long time.
      See: https://bugzilla.mozilla.org/show_bug.cgi?id=1470017
      
      It largely went unnoticed because of another quirk of Firefox related
      to the use of instanceof which was fixed in version 109.
      See: https://bugzilla.mozilla.org/show_bug.cgi?id=1360715
      
      
      
      Since this bug was fixed it became apparent, in the form of a
      traceback, that the wrong instance of ClipboardJS was being used
      in the case of Firefox, due to the forced prototype change.
      
      This commit could be reverted once Firefox is fixed.
      
      Steps to reproduce the issue in Firefox > 109:
      - Create a new mass mailing.
      - Choose the third template with "Thank you for joining us!".
      - Click on the "LOGIN" button link inside the email.
      - Get a traceback about a paremeter not being the right type.
      
      Task-3186513
      OPW-3172914
      
      closes odoo/odoo#120003
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      Co-authored-by: default avatarJinjiu Liu <jili@odoo.com>
      Co-authored-by: default avatarDavid Monjoie <dmo@odoo.com>
      c0da01c7
    • Deependra Solanki's avatar
      [FIX] web_editor: fix dropdown positioning when toolbar at bottom of screen · 790b80a4
      Deependra Solanki authored
      
      Before this commit:
      
      When the toolbar was located at the bottom of the screen, the dropdown menus
      would open outside of the viewport.
      
      After this commit:
      
      When the toolbar is in the bottom of the screen the dropdown will always open
      upwards ensuring they remain visible within the viewport.
      
      Task - 3149341
      
      closes odoo/odoo#118759
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      790b80a4
  7. Apr 27, 2023
Loading