[FIX] account_edi{,ubl_cii}: disable move_type check
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>
Showing
- addons/account_edi/models/account_edi_format.py 2 additions, 6 deletionsaddons/account_edi/models/account_edi_format.py
- addons/account_edi_ubl_cii/models/account_edi_common.py 10 additions, 3 deletionsaddons/account_edi_ubl_cii/models/account_edi_common.py
- addons/l10n_account_edi_ubl_cii_tests/tests/common.py 1 addition, 1 deletionaddons/l10n_account_edi_ubl_cii_tests/tests/common.py
Loading