Skip to content
Snippets Groups Projects
  1. Aug 10, 2022
  2. Aug 09, 2022
  3. Aug 08, 2022
  4. Aug 07, 2022
  5. Aug 05, 2022
    • Guillaume (guva)'s avatar
      [FIX] l10n_it_edi: fiscal code format · 984c4d4a
      Guillaume (guva) authored
      
      According to
      www.agenziaentrate.gov.it/portale/web/guest/schede/istanze/richiesta-ts_cf/informazioni-codificazione-pf
      
      The tax identification number of natural persons
      consists of an alphanumeric expression of sixteen characters.
      
      The first fifteen characters are indicative of the master data
      of each individual in the following order:
      
      - 3 alphabetic characters for the surname;
      - 3 alphabetic characters for the first name;
      - 2 numeric characters for the year of birth;
      - 1 alphabetic character for the month of birth;
      - 2 numeric characters for the day of birth and sex;
      - 4 characters, 1 alphabetic and 3 numeric for the Italian municipality
        or foreign state of birth.
      The sixteenth character, alphabetic, serves as a control.
      
      The main fix is about this part:
      
      When two or more individuals have master data generating
      the same tax code (homocodes), the tax code is differentiated
      for each of them. For this purpose, systematic substitutions
      of one or more digits starting from the right one are made
      within the seven numeric characters contained in the code
      with corresponding alphabetic characters according to the
      following table:
      
      0 = L 4 = Q 8 = U
      1 = M 5 = R 9 = V
      2 = N 6 = S
      3 = P 7 = T
      
      Also the check for iva number format was incomplete.
      Indeed, The three penultimate digits correspond to the region of the
      VAT office and must be between 001 and 100 inclusive,
      or equal to 120, 121, 888 or 999.
      
      We use the stdnum library's methods for the validation of fiscal code
      and iva number format.
      
      opw-2797408
      
      closes odoo/odoo#97584
      
      X-original-commit: 262eb7bd
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      984c4d4a
    • Leo Tran's avatar
      [CLA] Viindoo updates Odoo's CLA · 20fd5112
      Leo Tran authored
      
      closes odoo/odoo#97576
      
      X-original-commit: 8ba0c300
      Signed-off-by: default avatarMartin Trigaux (mat) <mat@odoo.com>
      20fd5112
    • Benoit Socias's avatar
      [FIX] website: avoid double-escape of pages search results · 30cb1c23
      Benoit Socias authored
      Since [1] when the search bar was refactored, a search facility was
      added on website pages and the rendering of those search results did
      not correctly handle some of the HTML escaping.
      
      This is related to the fact that the `ir_ui_view`'s `arch_db` field is
      stored with this double escaping on text nodes, which is done by
      `wysiwyg.js` through the `_getEscapedElement` method since [2].
      
      This commit unescapes the last layer of `&amp;` before extracting the
      page's text for generating the search results.
      
      Steps to reproduce:
      - Add some "&", "<" or ">" characters in a page.
      - Use the search snippet to lookup for the page.
      => The results in both autocomplete and the results pages display the
      content with an extra unwanted escaping (&amp;...)
      
      [1]: https://github.com/odoo/odoo/commit/9f9c4bb7e40233e633f97c60fb00ae191e9077af
      [2]: https://github.com/odoo/odoo/commit/f5acea7f9ce232773ec3adf1828a3d18bbedee1e
      
      
      
      opw-2908645
      
      closes odoo/odoo#96620
      
      Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
      30cb1c23
    • clementmbr's avatar
      [FIX] purchase_stock: avoid updating kit components price_unit · d491d205
      clementmbr authored
      
      closes odoo/odoo#97568
      
      X-original-commit: d0537e32
      Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
      d491d205
    • Pierre Paridans's avatar
      [FIX] web: don't hide datepicker on scroll for iOS · f9e49e13
      Pierre Paridans authored
      
      This commit fixes a glitch on iOS (both iPhone & iPad landscape) where,
      when the user attempts to open the datepicker of a custom filter's
      field, it pops up and immediately close.
      
      This is due to the desktop behavior which hides datepickers on scroll to
      avoid hidding fields behind it.
      
      In our case, a scroll is triggered once the focus is set in the date's
      input and the virtual keyboard opens up... which then hides the
      datepicker!
      
      Sadly, this behavior's purpose being still useful in desktop, we don't
      have much other solution than "just" disabling it on affected platforms
      (ie. iOS) as it affects both small screens (ie. iPhones) and
      dekstop-like ones (ie. iPad).
      
      Hopefully, a better solution will be found at some point in a future
      version, avoiding this kind of "trick"...
      
      Note: replacing the "scroll" event with the "wheel" event seems to fix
      the issue at first glance... but actually has side-effects for devices
      using both touchscreens and a mouse (ie. 2-in-1 laptops).
      
      Steps to reproduce:
      - Open any collection view (list, kanban...)
      - Open "Filter" dropdown and add a custom filter
      - Choose a date/datetime field (ie. created_on)
      - Tap the input
      => datepicker opens up and close immediately
      
      opw-2671618
      opw-28192998
      
      closes odoo/odoo#97486
      
      X-original-commit: a233cfe2
      Signed-off-by: default avatarAdrien Dieudonné (adr) <adr@odoo.com>
      Signed-off-by: default avatarPierre Paridans (app) <app@odoo.com>
      f9e49e13
    • MerlinGuillaume's avatar
      [FIX] l10n_es_edi_sii: use a certificate on SSL connection · 1d76ab52
      MerlinGuillaume authored
      It is not possible to process an invoice and send it to the SII
      
      Steps to reproduce:
      1. Install l10n_es_edi_sii module
      2. Switch to company 'ES Company'
      3. Go to Settings > Invoicing > Spain Localization > Registro de Libros
         connection SII and select 'Hacienda Foral de Gipuzkoa'
      4. Go to Invoicing > Configuration > Accounting > Journals and open
         'Customer Invoices'. In the 'Advanced Settings' tab, enable EDI
         functionality 'SII IVA Llevanza de libros registro (ES)'
      5. Go to Invoicing > Configuration > Spain > Certificate (ES) and import
         the certificate (file named sello_entidad_act.p12 in
         l10n_es_edi_sii/demo/certificates/) with password "IZDesa2021"
      6. Create an invoice with any customer and product and confirm it
      7. Click on 'Process now', an error is raised
      
      Solution:
      Use PyOpenSSL to be able to use certificate checking
      
      Problem:
      With the version of requests specified in the requirements, SSLContext
      object doesn't have a `_ctx` attribute anymore. That's because PyOpenSSL
      is not used by default (https://pyup.io/changelogs/requests/#2.24.0) and
      ssl is used instead. However we need PyOpenSSL to be able to use
      certificate checking (https://urllib3.readthedocs.io/en/latest/reference/contrib/pyopenssl.html
      
      )
      
      opw-2925510
      
      closes odoo/odoo#97290
      
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      1d76ab52
    • Benoit Socias's avatar
      [FIX] website, test_website: fallback on exact search if max reached · 6d24ea28
      Benoit Socias authored
      
      For performance reasons, when fuzzy search was introduces it was
      decided to limit the number of records used for finding fuzzy terms to
      1000.  Because of this, when a database contains more than 1000
      products matching words that start with the same letter, further
      products are not examined. This can lead to searches not finding an
      existing exact match.
      
      This commit introduces a fallback mechanism so that, if we are in a
      situation where the maximum number of examined records was fetched, we
      also explicitly check for a possible exact match across all records.
      
      Steps to reproduce:
      - Do not install the pg_trgm extension.
      - Have more than 1000 products containing searchable words (name,
      description...) starting with the same letter.
      - Add one more such product (so that it is not in the 1000 first ones).
      - Search for that last product by correctly typing the word.
      => Exact match was not returned.
      
      task-2870947
      
      closes odoo/odoo#92864
      
      Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
      6d24ea28
    • Adrien Minet's avatar
      [FIX] account_edi: documents of draft invoice no longer sent · b27ff3c3
      Adrien Minet authored
      
      How to reproduce the bug ?
      
      - install point_of_sale,l10n_mx_edi
      - In Point of Sale > Settings, add at least one Payment Methods
      - Still in Point of Sale > Settings, create one Point of Sale
      - In Point of Sale > Products > Products, select one product.
      - In the Accounting tab of the product, set the UNSPSC Category.
      - Go back on the dashboard of Point of Sale and start a new session.
      - Add the product you have selected before and go to calidate the
      invoice.
      - Pick a payment methode and a costumer and check the invoice option.
      - Validate the invoice.
      - Close the session and go to Point of Sale > Orders > Orders.
      - Click on the order you have just created and click on Invoice (in the
      top right corner).
      - Reset the invoice in draft.
      - Wait for the cron task to be executed or execute it manually.
      
      What is the bug ?
      
      The cron task that send all the edi documents doesn't consider the state
      of the account_move linked to it. Because of that if an invoice poster
      is reset to draft, it will have a document and this document will be
      sent.
      
      opw-2925137
      
      closes odoo/odoo#97009
      
      Signed-off-by: default avatarAdrien Minet <admi@odoo.com>
      Signed-off-by: default avatarJosse Colpaert <jco@odoo.com>
      b27ff3c3
Loading