Skip to content
Snippets Groups Projects
  1. May 03, 2023
    • 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
  2. May 02, 2023
  3. Apr 30, 2023
  4. 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
  5. Apr 27, 2023
    • Maruan Aguerdouh (magm)'s avatar
      [FIX] crm: lost button don't trigger lost reason popup in list for leads · 3834577a
      Maruan Aguerdouh (magm) authored
      
      Steps to reproduce:
      
      - Install crm
      - Go to settings and activate leads in crm.
      - Go to leads list and select any lead, now mark it as lost.
      
      Issue:
      
      It will ask for lost reason. But if we do it from the Leads form view,
      we don't get to set any reason. I discussed with the PO and we don't
      want to add the lost reason in the leads.
      
      Solution:
      
      Modified action of lost so it takes leads into account.
      
      opw-3119748
      
      closes odoo/odoo#119546
      
      X-original-commit: 1d68b5c7
      Signed-off-by: default avatarMaruan Aguerdouh Mohtar (magm) <magm@odoo.com>
      3834577a
    • Victor Piryns (pivi)'s avatar
      [FIX] project: correct pager of project portal view · eed70a81
      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 greeted with a 404.
      
      Expected behaviour:
      You should be able to scroll through the pages of tasks related to
      the shared project without hitting a 404.
      
      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 -> 404.
      
      Reason for the problem:
      Missing route `/my/project/<int:project_id>/page/<int:page>`.
      
      Fix:
      Add the missing route.
      Essentially a backport of 336befc0
      
      Affected versions:
      - 15.0
      - saas-15.2
      - 16.0       <-- issue is different for this version and newers
      - saas-16.1
      - saas-16.2
      - master
      
      opw-3220659
      
      closes odoo/odoo#119905
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      eed70a81
    • Marc Durepos's avatar
      [CLA] Bemade Inc. signs CCLA · 3757f2ab
      Marc Durepos authored
      
      closes odoo/odoo#119075
      
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      3757f2ab
    • niyasraphy's avatar
      [FIX] base: prevent copying of contact tag partners · b41356bd
      niyasraphy authored
      
      before this commit, on duplicating a contact tag
      will duplicate the assigned partners also.
      
      suppose if we have a partner A with tag B assigned,
      and then we duplicate tag B and create new tag C,
      the newly created tag is automatically getting
      assigned to partner A.
      
      after this commit, the copy is set to False for
      partner_ids field in tag and then the partners
      wont be copied on duplicating a tag
      
      closes odoo/odoo#116791
      
      X-original-commit: 1ffc0471
      Signed-off-by: default avatarJulien Castiaux (juc) <juc@odoo.com>
      b41356bd
  6. Apr 26, 2023
    • Soukéina Bojabza's avatar
      [FIX] website_sale: remove cart popover on language selectors in header · ceba7142
      Soukéina Bojabza authored
      Since commit [1], when we are in the `/shop/cart` page and if a language
      selector is in the header, a cart popover also appears when hovering the
      languages. This happens because the `websiteSaleCartLink` widget
      selector also targets the cart links inside the language buttons.
      
      This commit solves this issue by excluding the language selectors from
      this widget selector.
      
      [1]: https://github.com/odoo/odoo/commit/ecefa679b224ce0e4a5a7e91ce28936321132d9c
      
      
      
      opw-3288727
      
      closes odoo/odoo#119833
      
      X-original-commit: bdfceb8e
      Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
      ceba7142
    • william-andre's avatar
      [FIX] account: manage shipping address without `sale` installed · f563f9b9
      william-andre authored
      
      A previous commit[^1] added the shipping address in case the `sale`
      module is installed. But it didn't manage the case where that module
      is not installed.
      
      opw-3199710
      
      [^1]: bd5071ac
      
      closes odoo/odoo#119853
      
      X-original-commit: f75e1c68
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      f563f9b9
    • abd-msyukyu-odoo's avatar
      [FIX] web_editor: fontawesome subnodes should make a node non-empty · 2cf2dc53
      abd-msyukyu-odoo authored
      
      For each node that the `insert` command inserts, the previous node is evaluated
      and tested to be a `shrunk` block. If it is, it is considered "invisible" and
      removed.
      
      Prior to this commit, an element containing sub-elements with a fontawesome icon
      was considered to be `isEmptyBlock==='true'` even though it is supposedly
      visible as it contains that icon.
      
      Therefore in cases where multiple nodes are inserted at once, if one of them has
      only fa-icon nodes as children, that node would not have been inserted.
      
      Task-3284580
      
      closes odoo/odoo#119792
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      2cf2dc53
    • Horacio Tellez's avatar
      [FIX] sale: use billing address whenever possible · 1fc75acf
      Horacio Tellez authored
      
      In the case of transaction linked to sales orders it is
      more appropiated to use the invoice partner related to the
      sale order than its main partner.
      After this fix the invoice partner of sale orders will be
      used for transactions linked to it.
      
      opw - 3212748
      
      closes odoo/odoo#118506
      
      Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
      1fc75acf
    • Khushi Vakil's avatar
      [IMP] l10n_in_edi: check ship from address name is must set · 2f395a9b
      Khushi Vakil authored
      
      Current behaviour before PR:
        1.Go to Company Partner
        2.Create a shipping address
        3.Set this shipping address in the warehouse
        4.Create a sale order with that warehouse
        5.Create an Invoice
        Then that invoice can't be send because the address name is empty.
      
      Current behaviour after PR:
        If anyone creates a contact under the company as the shipping address and if
        the name is empty then in this case it assigns the company name
      
      Task:3259223
      
      closes odoo/odoo#117660
      
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      2f395a9b
    • Victor Piryns (pivi)'s avatar
      [FIX] project: remove "I take it" from task following email header · 3cd8613e
      Victor Piryns (pivi) authored
      
      Current behaviour:
      On a brand new task with no assignees, when we add an user to follow
      the task with an email, there is a link "I take it" that is supposed
      to assign the newly following user as the assignee of the task. This
      link is dead, returning a 404.
      
      Expected behaviour:
      Either correct the link, or remove it from the email header.
      
      Steps to reproduce:
      - Install Project
      - Create a task, with no assignees
      - Add a new follower to the task with Send Email checked.
      - Check the outgoing email, and click on the link "I take it".
      - 404 response
      
      Reason for the problem:
      The route which we were using for this `/mail/assign` doesn't exist
      anymore since version 15. This was an intended design change, to
      remove noice. The user can click on "See task" and assign himself on
      there.
      
      Fix:
      Remove the "I take it" link from the email header.
      
      Affected versions:
      - 15.0
      - saas-15.2
      - 16.0
      - saas-16.1
      - saas-16.2
      - master
      
      opw-3276036
      
      closes odoo/odoo#119821
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      3cd8613e
    • Claire Bretton (clbr)'s avatar
      [FIX] account: don't install demo_data in chart_template tests · db85f087
      Claire Bretton (clbr) authored
      Chart template tests install demo_data that are not required and
      can cause an access right error in some builds:
      https://runbot.odoo.com/runbot/build/27709490
      
      
      
      closes odoo/odoo#119784
      
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      db85f087
    • Josse Colpaert's avatar
      [FIX] l10n_es_edi_sii: the 21% ISP tax in itself is not isp · a192c164
      Josse Colpaert authored
      The tax 21% ISP actually behaves like a normal 21% tax
      (it gets reported in the same lines, ...)
      
      But the reason for its existence is that in case of the
      fiscal position Revendedor ISP...  it gets mapped to the
      0% ISP tax (which needs to be 0)
      
      Before, if you would however send a 21% ISP tax to the SII,
      it would be set as ISP and you would get an error telling
      that the tax rate should be 0 in case of ISP.  (but now, it
      will be reported as S1 and not trigger the error)
      
      See also discussion in
      https://github.com/odoo/odoo/pull/119339#issuecomment-1519720558
      
      
      
      closes odoo/odoo#119645
      
      X-original-commit: ab03b50c
      Signed-off-by: default avatarOlivier Colson (oco) <oco@odoo.com>
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      a192c164
    • Nicolas Lempereur's avatar
      [FIX] sale_management: quotation template+sequence=lessbug · 17b081a3
      Nicolas Lempereur authored
      
      Scenario:
      
      - set a quotation template on a quotation that adds lines ordered with
        a sequence (eg. 3 lines with sequences 10, 11, 12)
      - add lines in this quotation
      - save
      
      Issue:
      
      The added lines have sequence 10 and the seen order changes.
      
      This is caused by 6f11060d that tries to
      mitigate a more rare issue when there is more than one page of lines.
      
      Solution:
      
      Reverting the previous fix, and setting the sequence of the first line
      to -99:
      
      - when resequencing the first page, the sequence will be -99 to -60 =>
        records from the second page will not get in the first page
      
      - new lines will be added at the end
      
      Issues still present:
      
      - when resequencing the second page, item from 3 pages get into it (it
        was already the case before 6f11060d)
      
      - when adding a new line (without resequencing), it is added at the end
        and not at the beginning of the next page
      
      But those are just behavior in any list view (as is the original issue
      of 6f11060d, but since it was partially
      fixed for a year, this patch try to give an in-between solution instead
      of just reverting it).
      
      opw-2833913
      
      closes odoo/odoo#119231
      
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      17b081a3
    • Xavier Morel's avatar
      [IMP] test_module_operations: make uninstall step more graceful · 3d062850
      Xavier Morel authored
      
      - process modules to uninstall individually in order to better handle
        their state at that point
      - uninstall (and reinstall) modules in provided order, rather than
        whatever postgres feels like (or a sort which might not match what
        we want), mostly useful when uninstalling modules in bulk
      - warn if a module is either missing or already uninstalled, rather
        than silently do nothing
      
      closes odoo/odoo#118332
      
      Signed-off-by: default avatarXavier Morel (xmo) <xmo@odoo.com>
      3d062850
    • Xavier Morel's avatar
      [IMP] test_module_operations: logging configuration · 03a51773
      Xavier Morel authored
      - switch to `dictConfig` for easier bulk-manipulation of loggers
      - set `unlink` and `ir_model` loggers to warning, to limit the
        humongous spam that is a normal uninstall session
      
      Part-of: odoo/odoo#118332
      03a51773
    • Xavier Morel's avatar
      [IMP] module_operation_tester: use subcommands · 5d1adb3e
      Xavier Morel authored
      Add subcommands to make running the script clearer (as exclusive
      switches is a bit weird nowadays).
      
      Keep the old `--uninstall` and `--standalone` switches, but make them
      mutually exclusive (and optional) to retain current behaviour.
      
      Part-of: odoo/odoo#118332
      5d1adb3e
Loading