Skip to content
Snippets Groups Projects
  1. Sep 15, 2023
  2. Sep 10, 2023
  3. Sep 03, 2023
  4. Aug 31, 2023
  5. Aug 28, 2023
  6. Aug 27, 2023
  7. Aug 13, 2023
  8. Aug 07, 2023
  9. Aug 06, 2023
  10. Jul 30, 2023
  11. Jul 18, 2023
    • bve-odoo's avatar
      [FIX] account_edi_ubl_cii: handle ubl version 2.2 and 2.3: · 9b02bcfc
      bve-odoo authored
      
      Customer reported an XML file with an UBL_version 2.2
      reported <cbc:UBLVersionID>2.2</cbc:UBLVersionID>
      at the beginning of the XML file.
      
      As reported on the wikipedia page of the
      'Universal Business Language' (UBL):
      - the version 2.2 has been approved&published on July 2018.
      - the version 2.3 has been approved&published on June 2021.
      
      opw-3316684
      
      closes odoo/odoo#128729
      
      X-original-commit: 86fbee95
      Signed-off-by: default avatarLaurent Smet (las) <las@odoo.com>
      9b02bcfc
  12. Jul 16, 2023
  13. Jul 12, 2023
  14. Jul 09, 2023
  15. Jul 02, 2023
  16. Jun 26, 2023
  17. Jun 25, 2023
  18. Jun 24, 2023
    • Yolann Sabaux's avatar
      [FIX] account_edi_ubl_cii: exclude note-section · 9099e99d
      Yolann Sabaux authored
      
      Steps to reproduce:
      - Install the lux localization
      - Configure Peppol for a customer: Select a customer > tab accounting > under "electronic invoicing":
      format: Peppol BIS Billing 3.0
      Peppol e-address: 0130 - Directorates of the European Commission
      Peppol Endpont: testendpoint
      
      - Create an invoice for the peppol customer
      - Add a section or a note in the Invoice
      - Confirm the Invoice
      
      Issue:
      Raise user error:  Odoo requires a tax for EACH LINE, instead of each product
      
      Solution:
      Exclude the section/note line
      
      opw-3354757
      
      closes odoo/odoo#126269
      
      X-original-commit: fb716296
      Signed-off-by: default avatarLaurent Smet (las) <las@odoo.com>
      9099e99d
  19. Jun 20, 2023
  20. Jun 18, 2023
  21. Jun 16, 2023
    • Julien Van Roy's avatar
      [FIX] account_edi_ubl_cii: no xml declaration with the send & print · d3323d1b
      Julien Van Roy authored
      
      Issue: the xml declaration "<?xml version='1.0' encoding='UTF-8'?>" is
      lost when opening the send & print wizard with existing xml attachments.
      
      Explanation: When opening the send and print wizard, the PDF are
      generated and postprocessed by `_postprocess_pdf_report`. In the
      `_postprocess_pdf_report` override in `account_edi_ubl_cii`, the xml
      attachments are parsed through `tree = etree.fromstring(xml)`, then the
      base64 PDF is inserted, and the etree is converted to a bytes through
      `etree.tostring(cleanup_xml_node(tree))` and the resulting bytes is
      written back on the attachment, but the xml declaration disappeared.
      
      Solution: include the arguments `xml_declaration=True, encoding='UTF-8'`
      in the `tostring` function when converting the etree to a bytes.
      
      opw-3144519
      
      closes odoo/odoo#125285
      
      X-original-commit: d89f5cb2
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      Signed-off-by: default avatarJulien Van Roy <juvr@odoo.com>
      d3323d1b
  22. Jun 14, 2023
    • bve-odoo's avatar
      [FIX] account_edi_ubl_cii: allow none-admin to create xml · 04c2bb02
      bve-odoo authored
      
      Steps to reproduce on fresh 15.0:
      Connected as Admin:
      1. Install l10n_lu_peppol_id,
      2. Modify the field 'edi_format_ids'
      on a journal (here will be on customer invoices)
      to the value 'Peppol BIS Billing 3.0'
      3. Invoice a product using this journal and confirm it.
      > The XML will be generated and attached to the move.
      The mimetype of this attachement will be application/xml
      
      If you do the same step 3 with a user that does not have
      the write access right to the model ir_ui_view
      (see _check_contents in base), the attachment will be
      of type text/plain.
      
      The issue that this trigger, is that the email going out
      will have the wrong Content-Type for the attachments.
      Which will lead to incorrect management on other provider.
      
      We can bypass the security here as the XML is generated
      by Odoo.
      
      opw-3263542
      
      closes odoo/odoo#124709
      
      X-original-commit: 9ae7fdb8
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      04c2bb02
  23. Jun 11, 2023
  24. Jun 04, 2023
  25. Jun 02, 2023
  26. May 31, 2023
    • Julien Van Roy's avatar
      [FIX] account_edi_ubl_cii: handle fixed taxes in UBL/CII · 47c47bf2
      Julien Van Roy authored
      
      Use case: the eco-taxes (recupel, auvibel, etc) are fixed taxes in Odoo,
      which apply before the "regular" (percentage) tax on an invoice line. We
      can have one or more fixed taxes and 1 regular tax.
      
      In EN16931, there can only be 1 tax per invoice line. Thus, the fixed
      taxes are encoded as charge on the invoice lines (with reason code
      `AEO`: "Collection and recycling"). The tags `AllowanceCharge` (in UBL)
      and `SpecifiedTradeAllowanceCharge` (in CII) are used. Then a serie of
      tax related infos need to be changed: the taxes in UBL/CII should not
      contain the fixed ones and the total untaxed amount needs to be adapted,
      as well as the total tax amount (since the fixed taxes were removed).
      
      To be able to import the fixed taxes back in Odoo, the charges on the
      invoice lines are read and their names and amounts are used to search on
      the existing taxes.
      
      task-3274208
      
      closes odoo/odoo#122955
      
      X-original-commit: 49ba394a
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      47c47bf2
  27. May 28, 2023
  28. May 24, 2023
    • aliya's avatar
      [FIX] account_edi_ubl_cii: fix partner creation during import · fc1f9b15
      aliya authored
      
      If a partner in the imported invoice does not exist, we create one on the fly. However, the partner is created without a country and `_run_vat_test` doesn't check it properly in 15.0, and fails in later versions, where we try to get the country code from the country we pass from `_import_retrieve_and_fill_partner`, which is `False`.
      
      This commit retrieves the country from the imported invoice to create the partner and passes the object instead of the `country_code` string to `_run_vat_test`
      
      closes odoo/odoo#122250
      
      X-original-commit: 757ea532
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      Signed-off-by: default avatarAliya Tastemirova (alta) <alta@odoo.com>
      fc1f9b15
  29. May 23, 2023
  30. May 21, 2023
  31. May 17, 2023
  32. May 14, 2023
  33. May 10, 2023
  34. May 09, 2023
    • Julien Van Roy's avatar
      [FIX] mail,account_edi: fix creation of invoice upon email reception · ef09c121
      Julien Van Roy authored
      When receiving an email on a mailbox with an alias that triggers the
      creation of invoices, 4 bugs could occur.
      
      1. If the xml received contains replacement characters (U+FFFD �), and
      the charset of the part of the email is "US-ASCII" the encoding of the
      string will fail, preventing the rest of the flow to be completed. Be
      more resilient, encode the string and ignores these characters if this
      case occurs.
      
      NB: sometimes, the charset is omitted for a Content-type: text/xml. This
      is valid but not recommended (see:
      https://www.ietf.org/rfc/rfc2376.txt). In this case, the default used is
      "US-ASCII". This means that any non-ascii char will be lost (they are
      replaced by the replacement character: �, see:
      https://github.com/python/cpython/blob/3.10/Lib/email/contentmanager.py#L67
      
      )
      when decoding the attachment.
      
      2. When the xml attachment is created in Odoo, the mimetype is
      'text/plain' (rather than 'application/xml'). Thus, the
      `_decode_attachment` needs to be more flexible when guessing the type of
      the attachment (to know which function to use to read the content of the
      attachment and create the invoice).
      
      3. When creating an invoice from an email with an xml attachment, the
      xml is attached as the `message_main_attachment_id`. It's only later on
      that the content of the xml is read and we possibly find the PDF in
      base64 inside. When creating the PDF attachment, it was not set as the
      `message_main_attachment_id`, so the PDF was not rendered on the right
      part of the invoice form view. Add a clause to replace the
      `message_main_attachment_id` in such a case.
      
      4. When the xml attachment represents a credit note, the move_type of
      the invoice created by the email alias needs to be changed. Indeed, the
      invoice is created before decoding the attachment, so we can only change
      the `move_type` later.
      
      opw-3144519
      opw-3149649
      
      closes odoo/odoo#120887
      
      X-original-commit: b5214e1d
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      Signed-off-by: default avatarJulien Van Roy <juvr@odoo.com>
      ef09c121
  35. May 07, 2023
  36. May 03, 2023
    • Julien Van Roy's avatar
      [FIX] account_edi_ubl_cii: handle paid invoice at import · 47333b5b
      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#120353
      
      X-original-commit: 47905d21
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      Signed-off-by: default avatarJulien Van Roy <juvr@odoo.com>
      47333b5b
  37. Apr 30, 2023
  38. Apr 26, 2023
Loading