Skip to content
Snippets Groups Projects
  1. Nov 09, 2022
    • Ricardo Gomes Rodrigues (rigr)'s avatar
      [FIX] account_edi{,ubl_cii}: disable move_type check · 81a68544
      Ricardo Gomes Rodrigues (rigr) authored
      
      Currently, if the user uploads a facturx document whose move_type does not match the move_type chosen by the user, the document is not auto filled with the information contained in the facturx XML because of a restrictive check. Therefore, the document is empty and is sent to the OCR which acts as a backup.
      
      Starting from this commit, we will remove this restrictive check. So, if the user uploads a facturx document, we will use the move_type define by facturx regardless of the move_type chosen by the user. This means that when we upload a facturx document, we will always use all the information that is in the xml to create the document and avoid using the OCR.
      
      task-id 2961932
      
      closes odoo/odoo#105287
      
      Signed-off-by: default avatarLaurent Smet <las@odoo.com>
      81a68544
  2. Nov 03, 2022
  3. 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
Loading