Fix/4.0.1
- 20 Dec, 2017 2 commits
-
-
agb80 authored
fix(ir.attachment.facturae.mx): search for XML total only as attribute from cfdi:Comprobante element When XML contains addendums it's possible that attribute total exist in other elements than the cfdi:Comprobante; in those cases the XML validations could be problematic. This change restrict function _parse_xml to read for total only as an attribute of cfdi:Comprobante element ignoring addendums.
-
agb80 authored
It's possible that in certain circunstances we need to read UUID from XML file without create a ir.attachment.facturae.mx objetct: for example when the UUID there is already on database and we want to get the record ID, in that situations, we need to get the UUID from file to be able to look for it on database. Proposed solution for that situations is allow _parse_xml function to be provided with a XML file content to parse. Maybe in the long term this change is not going to be needed anymore when we implement the CFDI download from SAT.
fe4a5a33
-