Skip to content
Snippets Groups Projects
  1. Aug 31, 2023
    • Julien Van Roy's avatar
      [FIX] account_edi_ubl_cii: line id start at 1 in UBL · 3ce90ddf
      Julien Van Roy authored
      
      In Saudi Arabia, the InvoiceLine/ID should not be greater than 6 digits.
      Using the move.line_id, this limit can be exceeded.
      
      Simply count the invoice line ids starting from 1 instead.
      
      In master, add a parameter `line_id` to `_get_invoice_line_vals`.
      
      closes odoo/odoo#133675
      
      X-original-commit: 94aac2ed
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      Signed-off-by: default avatarJulien Van Roy (juvr) <juvr@odoo.com>
      3ce90ddf
    • Pedram (PEBR)'s avatar
      [FIX] point_of_sale: set default language for new customers · 567c7c8b
      Pedram (PEBR) authored
      
      Previously, when creating a new customer from the POS interface, if
      the default language was not changed in the form, an empty string
      would be sent to the backend. This resulted in the new customer not
      having a language set.
      
      This commit establishes the default language selection as the user's
      selected language when creating a new customer within the POS system.
      
      opw-3466525
      
      closes odoo/odoo#133020
      
      Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
      567c7c8b
    • Victor Piryns (pivi)'s avatar
      [FIX] project: ignore sort key in url args when it's invalid · 4cdea395
      Victor Piryns (pivi) authored
      
      Issue:
      In the project's portal view, if the user is previewing his tasks of a
      project with a specific order that is not date or name, and then
      goes back to the project list view via the breadcrumb, he is met
      with an error 500.
      
      Steps to reproduce:
      - Install Project
      - With the portal user, go to Project
      - Click on a project and sort the task by 'project'
      - Go back to the project view via the breadcrumbs.
      - Error 500
      
      Cause:
      Due to the definition of the url of the breadcrumbs which is
      set with `keep_query` which keeps the arguments of the url. The
      issue with that is that for the project list view, some of the sort
      arguments are not defined, as they are only present in the task view.
      So if we sort based on 'project' there is a `KeyError` in the
      controller of the project portal view.
      
      Fix:
      If the `sortby` is not one of the valid keys, we fallback on 'date'
      sorting, which is the behaviour in case when there is no `sortby`
      argument in the url. This will keep the `sortby` in the arguments of
      the URL, but just ignoring it. This is better UX than having a hard
      redirection, because if the user decides to click on a project, the
      tasks will be sorted with his previous order specified, which is
      usually the wanted behaviour.
      
      Affected versions:
      15.0 -> 16.0
      
      opw-3425342
      
      closes odoo/odoo#133642
      
      X-original-commit: 00126875
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      Signed-off-by: default avatarPiryns Victor (pivi) <pivi@odoo.com>
      4cdea395
    • Levi Siuzdak (sile)'s avatar
      [FIX] account: keep invoice currency on journal change · 3255a0d5
      Levi Siuzdak (sile) authored
      
      Versions:
      ---------
      - 16.0
      - saas-16.1
      - saas-16.2
      - saas-16.3
      - saas-16.4
      
      Steps to reproduce:
      -------------------
      1. install the purchase and account_accountant modules
      2. create a purchase order using a non-default currency;
      3. create bill;
      4. switch to a journal without set currency.
      
      Issue:
      ------
      Currency of bill automatically changes from the one used
      by the order to the company default.
      
      Cause:
      ------
      The `account.move` model only looks at bank statements, journal,
      and the company default when computing currency, ignoring any
      value that might already be present in the invoice:
      ```
      def _compute_currency_id(self):
          for invoice in self:
              currency = (
                  invoice.statement_line_id.foreign_currency_id
                  or invoice.journal_id.currency_id
                  or invoice.journal_id.company_id.currency_id
              )
              invoice.currency_id = currency
      ```
      
      Solution:
      ---------
      Try to retrieve currency from `invoice.currency_id` before
      falling back on the company default.
      
      opw-3434518
      
      closes odoo/odoo#131366
      
      Signed-off-by: default avatarLevi Siuzdak (sile) <sile@odoo.com>
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      3255a0d5
  2. Aug 30, 2023
  3. Aug 29, 2023
    • Louis Wicket (wil)'s avatar
      [I18N] payment_stripe: reexport translations · 24414c67
      Louis Wicket (wil) authored
      
      Some strings are missing in the pot file and are therefore not
      translated. This commit updates the pot file to the latest changes.
      
      closes odoo/odoo#133495
      
      Signed-off-by: default avatarLouis Wicket (wil) <wil@odoo.com>
      24414c67
    • hupo-odoo's avatar
      [FIX] account: autopost draft entries · 4244331a
      hupo-odoo authored
      The following commit https://github.com/odoo/odoo/commit/0015662d166f5e07bcbd6c5e9e14f8837ffa58a3
      
       was incorrectly done because the records are already limited to a 100 in the search query. We therefore remove redundant loop.
      
      We also moved up all possible UserError in the _post() method before the soft computation such that if any UserError is raised (with the autopost cron for example), the soft computation will not be executed.
      
      task-3482939
      
      closes odoo/odoo#133485
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      4244331a
    • Nicolas Bayet's avatar
      [FIX] web_editor: update link url regex · a42a19e4
      Nicolas Bayet authored
      
      In order to fix wrong url recognition, improve the url REGEX by:
      - Recognize an url with a dot at the end in the string
        `www.google.be.`. It was not recognized before this commit.
      - Do not allow a special character after an url that is not separated
        by "/", "?", or "#". Before this commit, the content
        `www.google.be!` would have been recognized the url as
        `www.google.be!` instead of `www.google.be`.
      - Do not include in the url some character if they appear at the end.
        The chars are:
        - .
        - ,
        - }
        - )
        - ]
        - '
        - "
      
      task-3373367
      
      closes odoo/odoo#125217
      
      Signed-off-by: default avatarDavid Monjoie (dmo) <dmo@odoo.com>
      a42a19e4
    • Gabriel de Paula Felix (gdpf)'s avatar
      [FIX] calendar: future_events deletion forbiddance without sync · e18d7054
      Gabriel de Paula Felix (gdpf) authored
      
      Now it is possible to delete future_events of recurrences when they are not synced with Outlook. Also fixes sync problems of Google events when Outlook sync is active. Next step: divide by modules and squash commits.
      
      closes odoo/odoo#132519
      
      Task-id: 3473180
      Signed-off-by: default avatarArnaud Joset (arj) <arj@odoo.com>
      e18d7054
    • Gabriel de Paula Felix (gdpf)'s avatar
      [FIX] microsoft_calendar: user error when trying to delete recurrence · aa0b5ab8
      Gabriel de Paula Felix (gdpf) authored
      Deletion flow working alright now.
      
      Task-id: 3473180
      Part-of: odoo/odoo#132519
      aa0b5ab8
    • Gabriel de Paula Felix (gdpf)'s avatar
      [FIX] microsoft_calendar: traceback trying to delete recurrence · 1aec961d
      Gabriel de Paula Felix (gdpf) authored
      Before this commit, trying to delete a recurrent event that was already synced with Google Calendar or Microsoft Calendar was raising a traceback and not showing the User Error which forbids this action to be done.
      
      After this commit, the traceback is not shown anymore and the User Error is correctly presented to the user while trying to delete a recurrent event (with Microsoft synchronization active).
      
      Traceback snippet:
      
      result = _call_kw_multi(method, model, args, kwargs)
      File '/data/build/odoo/odoo/api.py', line 448, in _call_kw_multi
        result = method(recs, *args, **kwargs)
      File '/data/build/odoo/addons/microsoft_calendar/models/calendar.py', line 168, in action_mass_archive
        if self._check_microsoft_sync_status() and any(self.microsoft_id):
      TypeError: 'bool' object is not iterable
      
      The above server error caused the following client error:
      RPC_ERROR: Odoo Server Error
      
      Issue: 3468190
      Task-id: 3473180
      Part-of: odoo/odoo#132519
      1aec961d
    • Theo VINCENT (thvi)'s avatar
      [FIX] point_of_sale: closing session without cash · 192036b4
      Theo VINCENT (thvi) authored
      
      The closing session popup input for bank payment methods throws an error when no cash payment method is configured.
      
      Steps to reproduce:
       - Configure a shop without any cash payment method and with at least one bank payment method
       - Open a session for that shop
       - Click on the button to display the closing session popup
       - In the popup, change the amount of the bank payment method
      
      An error is thrown.
      
      The fix simply consists in correctly checking if there is a cash payment method.
      
      closes odoo/odoo#133425
      
      Task-id: 3468828
      X-original-commit: b1dca1d0
      Signed-off-by: default avatarJoseph Caburnay (jcb) <jcb@odoo.com>
      192036b4
    • Christophe Simonis's avatar
      [FIX] point_of_sale: always create missing picking types · 05c026d7
      Christophe Simonis authored
      
      Don't do it only at install.
      
      closes odoo/odoo#133385
      
      X-original-commit: 5add840b
      Signed-off-by: default avatarNicolas Seinlet (nse) <nse@odoo.com>
      Signed-off-by: default avatarChristophe Simonis (chs) <chs@odoo.com>
      05c026d7
    • Mahdi Cheikh Rouhou (macr)'s avatar
      [FIX] web : delete domain will delete all record on group by · a0a02357
      Mahdi Cheikh Rouhou (macr) authored
      
      Issue:
      ======
      When selecting a domain in a list displayed with a groupby(vendor for
      example) and then apply action -> deleted , it will only delete the
      unfolded record.
      
      Steps to reproduce the error:
      =============================
      - Create multiple purchase orders with different vendors
      - Go to purchase and groupby vendor
      - Unfold only one vendor and select all items
      - Select all will appear on the top -> click on it
      - action -> delete
      - it will only remove the unfolded records
      
      Problem:
      =========
      `isDomainSelected`is true in `DynamicGroupList` but it's `list` list
      will not have the same thing because it's not propagated to it. Also
      there is no reload after the deleted so the groups will stay on the list
      as empty groups which is not expected.
      
      Solution:
      =========
      I overrided the `selectDomain` function to propagate `isDomainSelected`
      and added `load`after the delete operations to update the aggregate and
      remove the fully removed groups.
      
      opw-3461732
      
      closes odoo/odoo#132001
      
      Signed-off-by: default avatarJulien Mougenot (jum) <jum@odoo.com>
      a0a02357
    • Jurgen (jugj)'s avatar
      [FIX] l10n_be_hr_payroll_(fleet): Fix Bike tax deduction computation · c9427cf7
      Jurgen (jugj) authored
      
      closes odoo/odoo#133170
      
      X-original-commit: 7bdb6e66
      Related: odoo/enterprise#46305
      Signed-off-by: default avatarSofie Gvaladze (sgv) <sgv@odoo.com>
      Signed-off-by: default avatarJurgen Gjini (jugj) <jugj@odoo.com>
      c9427cf7
    • Lucas Lefèvre (lul)'s avatar
      [FIX] spreadsheet: remove debug log · 51dbb523
      Lucas Lefèvre (lul) authored
      
      closes odoo/odoo#132722
      
      Signed-off-by: default avatarLucas Lefèvre (lul) <lul@odoo.com>
      51dbb523
    • Victor Piryns (pivi)'s avatar
      [FIX] sale_project: take aml with neg.amounts from inv. in proj.profit. · 46bf2bdf
      Victor Piryns (pivi) authored
      
      Issue:
      In project profitability, `account.move.line` from invoices without
      the corresponding sales order with negative amounts where not taking
      into account for the computation of the profit margins.
      
      Steps to reproduce:
      - Install Sales, Accounting, Project, Inventory
      - Create 3 products:
        - 1 service (S1), fixed price, creates project on confirm
        - 1 service (S2), fixed price, creates nothing
        - 1 storable (P), a lot of quantity on hand, invoiced when delivered
      - Create an SO with SOL:
        - S1 with price 0 (1 qty)
        - S2 with price -320 (1 qty)
        - P with price 320 (1 qty)
      - Confirm SO, deliver P, create invoice
      - Confirm invoice > Duplicate > confirm
      - Go to the proj.profitability of the SO, notice that the negative
        lines were not taken into account, leading to the addition of the
        "Other Revenues" section with a positive 320 margin.
      
      Cause:
      The domain for the `account.move.line` was excluding lines whos
      subtotal was not > 0.
      
      Fix:
      Change that domain leaf to be != 0.
      
      Affected versions:
      16.0 up to master
      
      Reference:
      opw-3389670
      
      closes odoo/odoo#130992
      
      Signed-off-by: default avatarXavier Bol (xbo) <xbo@odoo.com>
      46bf2bdf
    • Roy Le's avatar
      [FIX] account: correct methods prototype to avoid error when inheriting · a719faf5
      Roy Le authored
      
      closes odoo/odoo#133408
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      a719faf5
    • dinolew's avatar
      [FIX] l10n_cn_city: correct the zipcode from the list · 157d279a
      dinolew authored
      
      closes odoo/odoo#133066
      
      X-original-commit: 854923b8
      Signed-off-by: default avatarQuentin De Paoli <qdp@odoo.com>
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      157d279a
    • Dino Lew's avatar
      [CLA] signature for wllbll · e0f12a6c
      Dino Lew authored
      X-original-commit: b9de6fc2
      Part-of: odoo/odoo#133066
      e0f12a6c
    • std-odoo's avatar
      [FIX] web: properties, fix the label requirement check · 5c072074
      std-odoo authored
      
      Bug
      ===
      The labels of the properties and their names are always required,
      the check was wrongly done and still used the historical name "id"
      instead of "name".
      
      If a property value is missing, the color of the label is marked in red.
      But the datepicker and dropdown are also in read which we don't want
      (only the label).
      
      Task-3188915
      
      closes odoo/odoo#123640
      
      Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
      5c072074
    • Benjamin Vray's avatar
      [FIX] website: fix images wall with link on image · 9893391c
      Benjamin Vray authored
      
      After this commit, we prevent the slideshow from appearing when clicking
      on an "Images Wall" snippet image that has been set as a link.
      
      Steps to reproduce the bug:
      
      - Drag and drop an "Images Wall" snippet onto the page.
      - Add some images in the snippet.
      - Click on an image within the snippet.
      - In the editor text toolbar, click on the "Link" button.
      - Set the URL of the link to "/contactus".
      - Click on the "Save" button in the modal.
      - Save the page.
      - Click on the image with the link.
      - Bug: The slideshow briefly appears before redirecting to the "contact
      us" page.
      
      task-3425624
      
      closes odoo/odoo#133347
      
      X-original-commit: 8b29eabb
      Signed-off-by: default avatarColin Louis (loco) <loco@odoo.com>
      9893391c
    • Nshimiyimana Séna's avatar
      [FIX] loyalty: add link to discout products in loyalty.program form view · 767eccb1
      Nshimiyimana Séna authored
      
      A customer has a gift card product linked to a specific income account.
      When sold, the income account associated with the gift card product is
      credited correctly. The issue arises when the gift card is consumed
      within a sales order. An order line is added using a "dummy product" to
      indicate the gift card's usage (one dummy product is created for each
      loyalty program). Due to this, when an account move is created from the
      sale order, the income account defined on the dummy product is used
      instead of the one on the gift card product. This leads to the wrong
      income account being debited, causing unbalanced accounting entries.
      
      There's currently no way to link back to the original gift card product
      from a `loyalty.card` record. Because of this, the system cannot
      identify the correct income account to debit. Fixing this would require
      adding a new field, which we can't do in stable.
      
      A potential workaround is to find the dummy product and set the income
      account to the same as the gift card product. However, with one dummy
      product for each `loyalty.program`, all named "Gift Card", finding the
      right dummy product is difficult.
      
      This commit aims to simplify the workaround by adding a link to the
      associated dummy product on the `loyalty.program` form view. This change
      should ease the process of finding and modifying the correct dummy
      product, thus mitigating the issue in the current stable version.
      
      opw-3239720
      opw-3373287
      
      closes odoo/odoo#132857
      
      Signed-off-by: default avatarSéna Serge Nshimiyimana (sesn) <sesn@odoo.com>
      767eccb1
  4. Aug 28, 2023
Loading