-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] l10n_it_edi: fix xml namespace when importing
When importing vendor bills it may appen that xml are rejected with a TypeError traceback (TypeError: empty namespace prefix is not supported in XPath) because the namespace parsed from the file is something similar to { None: 'http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2', 'xsd': 'http://www.w3.org/2001/XMLSchema', 'xsi':'http://www.w3.org/2001/XMLSchema-instance' } which create an issue on xpath when the key None is detected. Avoiding writing explicitly the namespace to avoid the null key fix the issue. Other solution would require fixing the namespace parsing directly in the library. opw-2198541 closes odoo#46702 X-original-commit: 04009a8 Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
- Loading branch information
Showing
2 changed files
with
49 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.