- Nov 09, 2022
-
-
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:
Laurent Smet <las@odoo.com>
-
- Nov 03, 2022
-
-
Julien Van Roy authored
[FIX] l10n_fr_fec,[l10n_]account_edi_ubl_cii[_tests]: fix factur-x tests and use `default_move_type` key Fix broken tests due to 2 different commits: * https://github.com/odoo/odoo/commit/51609d19177c080835116f0ad9c04c33536d926a is adding the `ram:DefinedTradeContact` tag and should thus be added in the test files * https://github.com/odoo/odoo/commit/de55cfa7098fc1fa07398044cb977f20d213f6da is using the context key `default_move_type` to import any ubl_cii document (and being able to distinguish between invoice and vendor bills). This key should therefore be added in the tests as well. We essentially backport the missing code from https://github.com/odoo/odoo/commit/5f78893ad6cf199ce0da72335ce65835d9cd37d9 which was forgotten in 14.0. Also fix a broken test in l10n_fr_fec due to the renaming of the taxes: https://github.com/odoo/odoo/commit/85a634c7527f20b56b15c2da90a37dfd637da63b closes odoo/odoo#104792 Signed-off-by:
Nicolas Viseur (vin) <vin@odoo.com>
-
- Jun 17, 2022
-
-
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:
Laurent Smet <las@odoo.com>
-