Skip to content
Snippets Groups Projects
Commit bfc83df7 authored by Quentin's avatar Quentin
Browse files

[FIX] account_edi_ubl_cii: handle 0 basis_qty and None attachement_name


When parsed, if the attachment has a basis quantity of zero,
it creates an error, because it is used in a division.
The condition that checks whether is computed
should be done only if this variable is none.

The code does not handle if `attachement_name.text` is None,
which can be caused by an orphan ID tag (e.i. "<cbc:ID />") ,
in the xml of the pdf.

opw-3470969

closes odoo/odoo#135270

Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
parent 1b37eaaf
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment