Skip to content
Snippets Groups Projects
Commit 244120da 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#135504

X-original-commit: bfc83df7
Signed-off-by: default avatarWilliam André (wan) <wan@odoo.com>
Signed-off-by: default avatarLaurent Smet (las) <las@odoo.com>
parent e81e423a
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