Skip to content
Snippets Groups Projects
  1. Sep 10, 2023
  2. Sep 03, 2023
  3. Jun 11, 2023
  4. May 31, 2023
    • Julien (jula)'s avatar
      [FIX] account_edi: bug if account_edi_facturx uninstalled · 1a8d35b6
      Julien (jula) authored
      
      The method `_get_unece_code` is called in the module `account_edi` and `account_edi_facturx`.
      The latter depends on the former but the opposite is not true. So this method should be defined in the module `account_edi` otherwise a traceback appears when we confirm an invoice and `account_edi_facturx` is not installed.
      
      opw-3171405
      
      closes odoo/odoo#122912
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      1a8d35b6
  5. May 28, 2023
  6. Apr 30, 2023
  7. Apr 23, 2023
  8. Apr 16, 2023
  9. Apr 09, 2023
  10. Mar 26, 2023
  11. Mar 19, 2023
  12. Feb 26, 2023
  13. Feb 05, 2023
  14. Dec 18, 2022
  15. Dec 11, 2022
  16. Nov 30, 2022
  17. Nov 24, 2022
    • Julien Van Roy's avatar
      [FIX] {l10n_}account_edi_ubl_cii{_tests}: handle price_include taxes · 649e0f2d
      Julien Van Roy authored
      
      In Factur-X, there is no way to represent a tax "price_include" because
      every amounts should be tax excluded.
      
      Currently in Factur-X, a line with a tax price_include = True will be
      incorrectly exported. Indeed, the Factur-X.xml is generated by setting the
      GrossPriceProduct as the price_unit. In Factur-X, this amount (and the others
      in the line details) should be tax excluded. Thus, it's wrong to set the
      GrossPriceProduct as the price_unit.
      
      To fix this, the GrossPriceProduct should be the price_unit if no tax
      price_include = True is set, otherwise, the gross price = price_unit/(1+tax/100).
      
      This way, the Factur-X file will be consistent with the norm.
      
      Note that the import of a Factur-X xml will thus try to pick taxes with price_include = False,
      and the price_unit will be tax excluded. If no matching tax with price_include = False is
      retrieved, a tax with price_include = True is searched, if found, the price_unit is
      recomputed accordingly. In both cases, the lines subtotals are the same.
      
      opw-3032382
      
      closes odoo/odoo#105276
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      649e0f2d
  18. Nov 20, 2022
  19. Oct 11, 2022
  20. Oct 02, 2022
  21. Sep 25, 2022
  22. Aug 30, 2022
  23. Aug 25, 2022
    • Ivan Yelizariev's avatar
      [FIX] account_edi{,_facturx}: properly retrieve product/description · 6c60b59a
      Ivan Yelizariev authored
      
      Odoo attaches factur-x doc to every invoice pdf. That data can be used to upload
      invoice to another Odoo instance.
      
      On uploading such an invoice, Odoo tries to find product in its DB. But it
      doesn't work if original product has Sales Description which is by default
      copied to line's Description (field `name`).
      
      Fix it by searching by first line in the name value of factur-x. Product name
      doesn't contain \n symbol in most cases anyway.
      
      This commit doesn't fix factur-x doc generation because of stable version
      policy. In next Odoo release we should use separate factur-x attributes for
      product name and invoice line description.
      
      opw-2878530
      
      closes odoo/odoo#95066
      
      Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
      6c60b59a
  24. Jul 31, 2022
  25. Jun 17, 2022
    • Julien Van Roy's avatar
      [ADD] account_edi_ubl_cii,l10n_account_edi_ubl_cii_tests: support common UBL and CII edi formats · b467c2c6
      Julien Van Roy authored
      This commit aims at unifying the UBL formats for invoices and credit notes.
      
      Starting from the work of LAS, the module account_edi_ubl_cii contains the templates for UBL and CII,
      and provides inheritance for UBL: UBL 2.0 < UBL 2.1 < UBL Bis 3.
      It contains also the formats E-FFF, EHF3 (fully covered by Bis 3), XRechnung (in UBL), Factur-x (the only one in CII).
      All these formats are also improved to pass the ecosio validator and/or the country specific validator
      (for Factur-x: the validator from the FNFE, and Chorus Pro).
      
      Note that the xml files generated contain the pdf of the invoice/credit note encoded in base64.
      An xml file alone imported in Odoo will thus automatically retrieve the pdf.
      
      Before generating the xml files, we now also check a series of known constraints and possibly display
      a warning on top of the move view if some are not enforced (the xml file is generated anyway but it might not be valid).
      
      Tests were required: a new module was needed with dependency to the tested l10n: l10n_account_edi_ubl_cii_tests.
      The prefix "l10n_" prevents runbot from launching the tests everytime.
      
      Backport of: https://github.com/odoo/odoo/pull/88027
      
      
      
      closes odoo/odoo#83849
      
      Task: 2628093
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      b467c2c6
  26. Jun 16, 2022
    • Nicolas (vin)'s avatar
      [IMP] l10n_fr_facturx_chorus_pro: new module for Chorus PRO · 4978d90c
      Nicolas (vin) authored
      
      Add a new module that makes three new fields available on the invoices.
      These fields are required when using facturx to send invoices to
      public services through Chorus PRO.
      
      The original template is updated to make it easier when integrating
      the ubl refactoring coming soon, and avoid template issues that would
      happen with an inherit if the inheriting module isn't updated after the
      refactoring deployment.
      
      opw-2714544
      
      closes odoo/odoo#92954
      
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      4978d90c
  27. Jun 12, 2022
  28. Jun 05, 2022
  29. May 29, 2022
  30. May 22, 2022
  31. May 11, 2022
  32. May 01, 2022
  33. Apr 27, 2022
    • Nicolas (vin)'s avatar
      [FIX] account_facturx: fix discount amount calculation · 80cc25cf
      Nicolas (vin) authored
      
      The discount inside a facturx document has recently changed to include
      the amount instead of the percent.
      In the process, there is an issue when using tax_included where
      the discount would be computed not based on the amount without tax
      but on the amount taxed.
      
      This change will align the discount computation on what will be
      used in 15.0+
      
      closes odoo/odoo#89656
      
      X-original-commit: 95f4794e
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      80cc25cf
  34. Apr 25, 2022
    • Nicolas (vin)'s avatar
      [FIX] account_facturx: make factur-x xml compliant · 83f31995
      Nicolas (vin) authored
      The xml we generate for factur-x is no longer compliant with all
      the latest standards. With these changes, we are providing the tools
      to make it work once again and make sure it is validated by the
      factur-x and zugferd validators in all aspect (PDFA/3, XMP, XML)
      It should also be valid to be sent to Chorus pro if applicable.
      
      This adds a mapping to the UNECE unit of measure codes for uom, that
      are required for factur-x.
      
      It will also calculate a category for each taxes as such:
          - If the tax is an export from EU to outside EU, G.
          - If the supplier and customer are both in EU but different country,
              K
          - If both are in EU, in the same country but the tax amount is 0, E
          - Otherwise, it will be S.
      See https://unece.org/fileadmin/DAM/trade/untdid/d16b/tred/tred5305.htm
      
      
      
      opw-2714544
      
      closes odoo/odoo#89491
      
      X-original-commit: d25fdafc
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      83f31995
  35. Apr 17, 2022
  36. Apr 10, 2022
  37. Apr 03, 2022
  38. Mar 28, 2022
  39. Mar 27, 2022
  40. Mar 13, 2022
Loading