Skip to content
Snippets Groups Projects
  1. Aug 28, 2023
  2. Aug 27, 2023
  3. Aug 25, 2023
    • Ricardo Gomes Rodrigues (rigr)'s avatar
      [IMP] account: allow switching from credit note to invoice · 863eba62
      Ricardo Gomes Rodrigues (rigr) authored
      Currently, the user has access to a "Switch into credit note/refund" but
      not the reverse button to go from a credit note/refund to an
      invoice/bill. This is now the case.
      
      This is a partial backport of https://github.com/odoo/odoo/pull/103427
      
      
      
      task-id 3102251
      
      closes odoo/odoo#132969
      
      Related: odoo/enterprise#46200
      Signed-off-by: default avatarFlorian Gilbert (flg) <flg@odoo.com>
      863eba62
    • Thomas Lefebvre (thle)'s avatar
      [FIX] hr_recruitment: correct count in mutli-company context · 8bce129a
      Thomas Lefebvre (thle) authored
      
      Steps to reproduce:
      -------------------
      - create a job position without specifying the company;
      - being in the first company, create an application for this job position;
      - being in the second company, create an other application;
      - go to the job position kanban view;
      
      Issue:
      ------
      Despite the selected company, the count for this job application is still two.
      
      Solution:
      ---------
      Include the allowed companies in the query to count the number of applicants.
      
      opw-3453348
      
      closes odoo/odoo#133033
      
      Signed-off-by: default avatarSofie Gvaladze (sgv) <sgv@odoo.com>
      8bce129a
    • Merel Geens (mege)'s avatar
      [IMP] odoo: prevent unsafe import from file · 5cc7d5e5
      Merel Geens (mege) authored
      
      It's possible to specify an existing module as the xml id prefix when
      importing records from a file. This will result in `ir_module_data`
      records being created with `noupdate` set to False. When the module is
      upgraded, these records will be deleted.
      
      This can lead to undesired side effects like journal items for
      accounts imported this way being deleted.
      
      This change prevents creating new records linked to existing modules
      when importing from a file. Instead, the user should either use no
      prefix or the name of a non-existent module, like `__import__`.
      
      opw-3231987
      
      closes odoo/odoo#133053
      
      X-original-commit: 56a53e90
      Signed-off-by: default avatarMerel Geens <mege@odoo.com>
      5cc7d5e5
    • Brice bib Bartoletti's avatar
      [IMP] account: tax tag on any journal item · 2023b96c
      Brice bib Bartoletti authored
      The aim of this commit is to allow any tax tag to be set on a journal
      item and to allow the user to put tax tag from foreign countries in
      which they have a VAT number on any tax.
      
      The end goal is to allow the user to impact tax reports from several
      country with the same journal item, avoiding the creation of a whole
      journal entry and setting the path for some more automation.
      
      Context:
      Our user has a company based in Belgium but has a warehouse in
      Netherland. Thus, when the company sells anything from that warehouse, it
      needs to fill the Dutch tax report directly.
      Moreover, the company needs to fill a grid on the Belgian VAT tax report.
      That means that the user would need to gather some journal items on both
      the Belgian tax report and the Dutch tax report.
      
      Before this commit:
      The user can't set tax tag from another country on its tax nor in the same move.
      
      After this commit:
      The user can set tax tags from any country for which its company has a
      foreign vat number on any tax and in a move
      
      Task-id: 3196547
      opw-2810712
      
      backport of https://github.com/odoo/odoo/commit/c45a164b136f3f12eb3b203646463dfa0bddd50b
      
      
      
      closes odoo/odoo#131088
      
      Related: odoo/enterprise#45385
      Signed-off-by: default avatarJohn Laterre (jol) <jol@odoo.com>
      2023b96c
    • Miquel Raïch's avatar
      [FIX] base: deleting selection fields of non tabled models · 736b0e03
      Miquel Raïch authored
      
      When a model selection record is going to be deleted, a _process_ondelete method is called in order to delete all the records of the corresponding model that have that selection. These records are obtained by calling _get_records, which uses a query that needs a table. Thus, we should avoid cases for non-abstract models that have _auto = False.
      
      closes odoo/odoo#133067
      
      X-original-commit: 408175a7
      Signed-off-by: default avatarRaphael Collet <rco@odoo.com>
      736b0e03
    • Jurgen (jugj)'s avatar
      [FIX] l10n_be_hr_payroll_(fleet): Fix Bike tax deduction computation · 7bdb6e66
      Jurgen (jugj) authored
      
      closes odoo/odoo#128827
      
      Related: odoo/enterprise#43982
      Signed-off-by: default avatarSofie Gvaladze (sgv) <sgv@odoo.com>
      7bdb6e66
  4. Aug 24, 2023
  5. Aug 23, 2023
    • Valeriya(vchu)'s avatar
      [FIX] payment_adyen: fix payment with paypal via adyen · 5316c903
      Valeriya(vchu) authored
      
      PayPal payment needs to be done through native paypal button component.
      Before this commit: in dropin we hid the native button which caused an
      error when the user chose paypal as payment method.
      After this commit: we show PayPal component with native button when
      user selects it to make payment.
      
      opw-3285830
      
      closes odoo/odoo#132680
      
      Signed-off-by: default avatarAntoine Vandevenne (anv) <anv@odoo.com>
      5316c903
    • Antoine Dupuis (andu)'s avatar
      [IMP] l10n_ro: Minor changes for l10n_ro_saft · af84d823
      Antoine Dupuis (andu) authored
      
      Back-port from v16 to v15 of the new l10n_ro_saft module.
      
      For the l10n_ro_saft module that generates the D.406 declaration, we
      need to:
      - create a new export tax specifically for services (which should be
        reported separately from goods); and
      - make sure the Bank, Outstanding Receipts and Outstanding Payments
        accounts are created with codes 5121xx, and the Cash account with code
        5311xx, because codes 5120 and 5130 are not available in the official
        CoA and were therefore causing validation errors in the SAF-T export.
      - because the CUI number (found in the company_registry field) for
        partners is required for the SAF-T export, and it is substantially
        the same as the VAT number, re-use logic from l10n_be to automatically
        fill in the company_registry if the VAT exists.
      
      closes odoo/odoo#127120
      
      Task-id: 3172198
      Related: odoo/enterprise#43531
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      af84d823
    • sofiagvaladze's avatar
      [FIX] resource: do not update attendance_ids when there is no company · 91d1f664
      sofiagvaladze authored
      
      On the 'resource.calendar', attendance_ids is a computed field and
      computation is triggered when company_id is changed.
      
      Now, if we remove company_id, attendance_ids are left empty.
      Instead, attendance_ids should be updated only when there is a new company set.
      
      task - 3451264
      
      closes odoo/odoo#131912
      
      Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
      91d1f664
    • Pedram (PEBR)'s avatar
      [FIX] point_of_sale: scanning barcode should not update available_in_pos · 3a1ed26a
      Pedram (PEBR) authored
      Prior to this commit, when limited product loading was enabled,
      scanning a product that had not been loaded yet would trigger a search
      for the product without taking into account the available_in_pos field,
      and it would also set available_in_pos to true.
      
      This commit ensures that when a product is loaded using its barcode,
      the behavior aligns with the changes introduced in this
      commit: https://github.com/odoo/odoo/pull/87329/commits/a83c7aea37b06e8b1f04f1f02982ff577d7058e9
      
      
      
      opw-3463427
      
      closes odoo/odoo#132241
      
      Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
      3a1ed26a
    • roen-odoo's avatar
      [FIX] pos_sale: correctly cancel all moves with 0 qty · 22d53075
      roen-odoo authored
      
      Current behavior:
      When you settle an order in the PoS and completely validate it, the
      remaining moves from the original sales should be cancelled.
      However, it was not the case because we were not adding all the picking
      in the `waiting_picking_ids` list. And so when we were checking this
      list we were not cancelling all the moves.
      
      Steps to reproduce:
      - Setup multi-step routes (Inventory > Settings > Multi-Step Routes)
      - Change the configuration of the warehouse to use the multi-step routes
      - Create a sale order for any product and confirm it
      - Open the PoS, and settle the order you just created
      - Validate the order
      - Go back to the sale order, and check the state of the delivery
      - Only one picking has been cancelled
      
      opw-3390529
      
      closes odoo/odoo#129621
      
      Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
      22d53075
    • Brice bib Bartoletti's avatar
      [FIX] l10n_at: tax template repartition lines · e882bf4c
      Brice bib Bartoletti authored
      
      1) The aim of this commit is to make the tax template more consistent with
      the instanciated tax.
      Indeed a tax wouldn't pass the constrains if it hadn't all its
      repartition line.
      
      2) Make the refund consistent with the rest of the taxes.
      
      closes odoo/odoo#132542
      
      Task-id: None
      X-original-commit: c8603a9e
      Signed-off-by: default avatarFlorian Gilbert (flg) <flg@odoo.com>
      e882bf4c
  6. Aug 22, 2023
    • Sébastien Theys's avatar
      [FIX] mail: set automatic email signature from correct company · 3d5a066a
      Sébastien Theys authored
      
      When sending an email from a multi-company environment, the automatic
      email signature is not corresponding to the company from which the email
      is sent.
      
      This is because the user context is not properly forwarded, in
      particular the `allowed_company_ids` key.
      
      The issue comes from the new rpc service not autmatically adding the
      user context to the request, whereas the legacy rpc service did.
      
      opw-3394780
      
      closes odoo/odoo#132684
      
      Signed-off-by: default avatarAlexandre Kühn (aku) <aku@odoo.com>
      3d5a066a
    • Saurabh Choraria's avatar
      [FIX] base: handle error when editing comment in view's architecture · 56cde894
      Saurabh Choraria authored
      
      Currently, When the user is adding a double hyphen or space or anything within a
      comment in a view's architecture and tries to save the view, then an error
      occurs.
      
      To reproduce the issue:
      1. Go to Settings > Technical > Views > open a view.
      2. In View Architecture comment out a line.
      3. Add a double hyphen or space or anything within the comment.
      4. Then save manually, the error will occur.
      
      To solve this issue the error has been handled using a try-except block in
      'parse_html' method.
      
      sentry-4306359331
      
      closes odoo/odoo#131888
      
      X-original-commit: 43184556
      Signed-off-by: default avatarNicolas Lempereur (nle) <nle@odoo.com>
      56cde894
    • Rodolpho Lima's avatar
      [FIX] web_editor: mobile toolbar visibility over modals · bd00d3e6
      Rodolpho Lima authored
      
      When the editor is displayed in a modal, the floating toolbar needs a
      higher z-index than the modal in order to be visible. This is due to the
      fact that the toolbar is mounted on the 'body' element (therefore, behind
      the modal in terms of z-index).
      
      The mobile toolbar, on the other hand, is mounted as a sibling of the
      editable's element, which means it is always visible when the html field
      is in a modal, without the need for a z-index. In fact, the mobile
      toolbar, being fixed (no auto-hide) and having a z-index higher than
      modals, leads to the undersired effect of being visible over modals that
      are displayed on top of the html field. An example can be seen in the
      Project app, where the editor is inside the task's description tab and a
      modal can be opened for the customer.
      
      This commit fixes such undesired visibility of the mobile toolbar over
      modals by not applying the z-index to the toolbar when it's not
      necessary (when not a direct child of the 'body' element).
      
      task-3263463
      
      closes odoo/odoo#123918
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      bd00d3e6
    • Rodolpho Lima's avatar
      [FIX] web_editor: toolbar scroll over navbar · 0843be04
      Rodolpho Lima authored
      Before this commit the floating toolbar would scroll over the headers
      above the html field, such as the form view header and the web client
      navbar.
      
      This commit ensures the toolbar is hidden when it overflows the scroll
      container.
      
      task-3263463
      
      Part-of: odoo/odoo#123918
      0843be04
    • Rodolpho Lima's avatar
      [FIX] web_editor: toolbar position update on scroll · b07cecb7
      Rodolpho Lima authored
      Before this commit the floating toolbar position was not being updated
      on scroll events in certain scenarios. The problem resulted from adding
      the event listener to the incorrect scroll container, which was
      calculated only once in the Wysiwyg life cycle, on start.
      
      The calculated scrollable container could be incorrect due to:
      - changes in the web client resulting from the swich from read to edit
      mode taking place after the Wysiwyg was started,
      - changes in the web client resulting from a window resize (particularly
      when, in the form view, the chatter switches position from right to
      bottom and vice-versa),
      - the editor being mounted inside an iframe and the scroll container
      being an element in the top document.
      - the editor being mounter inside an iframe and the scroll container
      being the iframe's root element.
      
      This commit solves the issue by detecting scroll events anywhere in the
      document (and in the iframe's document when it applies) and updating the
      toolbar position when the editable is a descendant of the scrolled
      element.
      
      task-3263463
      
      Part-of: odoo/odoo#123918
      b07cecb7
    • Krzysztof Magusiak's avatar
      [FIX] mail: _search_message_partner_ids performance · 852d0c0c
      Krzysztof Magusiak authored
      Manual backport of
      https://github.com/odoo/odoo/commit/d1aac322c2201d7b96d43a82f7c130ff2c140776
      
      
      
      Use the operator inselect instead of in with a read() before it.
      This ensures a subquery is used instead of two separate queries.
      
      When you have a user that is following thousands of tasks and the
      security filter depends on this search, all queries are very slow. Using
      a subquery prevents from reading these ids and sending back a very long
      query to the database.
      
      closes odoo/odoo#121561
      
      closes odoo/odoo#132621
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      852d0c0c
    • Thomas Lefebvre (thle)'s avatar
      [FIX] calendar: add attendee_id for deletion · 3bdb9161
      Thomas Lefebvre (thle) authored
      
      Steps to reproduce:
      -------------------
      - create an event in the calendar;
      - click on "Everybody's calendars" filter;
      - delete the event.
      
      Issue:
      ------
      The event name is crossed out (declined)
      instead of being deleted,
      even if we are the organizer.
      
      Cause:
      ------
      The value of `event.attendee_id` inside the
      `_onDeleteRecord` is `undefined`.
      The condition will therefore never be `true`.
      
      Solution:
      ---------
      Add the organizer's id to the event
      so that he can delete it in the case
      of "Everybody's calendars" filter.
      
      opw-3230254
      
      closes odoo/odoo#129157
      
      Signed-off-by: default avatarArnaud Joset (arj) <arj@odoo.com>
      3bdb9161
    • Dawn Hwang's avatar
      [FIX] point_of_sale: Fix typo that prevents reversal on refresh · e1128de2
      Dawn Hwang authored
      
      closes odoo/odoo#132577
      
      Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
      e1128de2
  7. Aug 21, 2023
    • prye-odoo's avatar
      [FIX] l10n_de: remove l10n_de_document_title field from template · 81183495
      prye-odoo authored
      When the user configures the 'external_layout_din5008' layout template in the
      general settings and tries to any QWeb reports, that case generates the
      traceback.
      
      Steps to reproduce:
      - Install the 'l10n_de' and 'sale_timesheet' modules.
      - Settings > General Settings
      - Search for 'Document Layout' and configure the 'external_layout_din5008'
        layout.
      - Settings > Technical > User Interface > Views
      - Search the 'external_layout_din5008'  QWeb template view.
      - Search  '<span t-if="not o and not docs">
      <t t-esc="company.l10n_de_document_title"/></span>'
        line and replace by,
      '<span t-if="company"><t t-esc="company.l10n_de_document_title"/></span>'
      - Go to the Sales menu and print any reports from the print menu.
      After that, a traceback was generated.
      Error:
      AttributeError: 'res.company' object has no attribute 'l10n_de_document_title'
      Template: l10n_de.external_layout_din5008
      
      The 'l10n_de_document_title' field does not exist in the 'res.company'
      object and also this field used in 'l10n_de.external_layout_din5008'
      template, and this template is configured as layout.  So, remove this line from
      this template.
      Code reference:
      https://github.com/odoo/odoo/blob/14.0/addons/l10n_de/report/din5008_report.xml#L109
      
      
      
      Sentry-4283510443
      
      closes odoo/odoo#132505
      
      X-original-commit: 95468505
      Signed-off-by: default avatarFlorian Gilbert (flg) <flg@odoo.com>
      81183495
    • Daniel Kosky (dako)'s avatar
      [IMP] l10n_tr: KDV 20% · a99b012b
      Daniel Kosky (dako) authored
      
      Turkey has adapted its standard VAT from 18% up to 20%
      This commit sets the 18% VAT taxes and its tax group to inactive and
      introduces the respective 20% taxes and a 20% tax group.
      
      closes odoo/odoo#132425
      
      Task-id: None
      X-original-commit: e7d71d0e
      Signed-off-by: default avatarBrice Bartoletti (bib) <bib@odoo.com>
      Signed-off-by: default avatarDaniel Kosky (dako) <dako@odoo.com>
      Co-authored-by: default avatarRamazan Subaşı <subasiramazan@gmail.com>
      a99b012b
    • Adrien Widart (awt)'s avatar
      [FIX] mrp: prevent bom cycle · 4a4f92c5
      Adrien Widart (awt) authored
      To reproduce the issue:
      1. Create two products A, B
      2. Create two BoMs:
         - Product: A
           - Component: B
         - Product: B
           - Component: A
      3. On one BoM, open the report "Structure & Cost"
      
      Error: an Odoo Server Error is raised: "[...] maximum recursion
      depth exceeded while calling a Python object"
      
      The error occurs because of the cycle between both BoMs. There is
      already a check for that in `:MrpBom.explode`:
      https://github.com/odoo/odoo/blob/2a73890d304476833d76bac9a36ef92f12f267a3/addons/mrp/models/mrp_bom.py#L329
      
      
      But it's too late in the flow. We should not be able to configure
      such BoMs.
      
      OPW-3200969
      
      closes odoo/odoo#132477
      
      Signed-off-by: default avatarAdrien Widart (awt) <awt@odoo.com>
      4a4f92c5
    • roen-odoo's avatar
      [FIX] point_of_sale: Correctly set fiscal position on refunded order · b2c0944d
      roen-odoo authored
      
      Current behavior:
      If you apply a fiscal position on a POS order, then refund it, the
      fiscal position is not applied on the refund order.
      
      Steps to reproduce:
      - Create a fiscal position that match 15% of taxes to 0% of taxes
      - Create a POS order with a product that has 15% of taxes
      - Apply the fiscal position on the order
      - Refund the order
      - Check the taxes on the refund order, they are not correct
      
      opw-3371028
      
      closes odoo/odoo#128863
      
      Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
      b2c0944d
    • dhba-odoo's avatar
      [FIX] web_editor: color pallete flicker · 7a997788
      dhba-odoo authored
      
      Before this commit:
      
      After applying formatting styles to text that already has some color applied to
      it, we encountered an issue where the color pallete would flicker when
      attempting to change the color.
      
      After this commit:
      
      Now, the color palette will no longer flicker when trying to change the color of
      text that has formatting styles applied to it.
      
      task-3417998
      
      closes odoo/odoo#128352
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      7a997788
    • PNO's avatar
      [FIX] stock: change error message · e80235e7
      PNO authored
      
      The error can be raised either when a move is in state done or cancel. However, the error message only says we cannot split split if the move is in done, which can be misleading.
      
      closes odoo/odoo#132333
      
      X-original-commit: 45bab967
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      Signed-off-by: default avatarPedro Nogueira (pno) <pno@odoo.com>
      e80235e7
Loading