[FIX] bug in generate_facturx_from_file() when using argument additional_attachments
Bump version to 1.5
This commit is contained in:
parent
0350366edb
commit
aa1b5a69dc
|
@ -65,9 +65,13 @@ Contributors
|
|||
Changelog
|
||||
=========
|
||||
|
||||
* Version 1.5 dated 2019-11-13
|
||||
|
||||
* Fix bug in generate_facturx_from_file() when using argument additional_attachments
|
||||
|
||||
* Version 1.4 dated 2019-07-24
|
||||
|
||||
* Update Factur-X XSD to the final version of Factur-X v1.0.4
|
||||
* Update Factur-X XSD to the final version of Factur-X v1.0.04
|
||||
* Support XML extraction with ZUGFeRD invoices using 'zugferd-invoice.xml' filename (instead of the filename 'ZUGFeRD-invoice.xml' specified by the standard)
|
||||
|
||||
* Version 1.3 dated 2019-06-12
|
||||
|
|
|
@ -1 +1 @@
|
|||
__version__ = '1.4'
|
||||
__version__ = '1.5'
|
||||
|
|
|
@ -837,7 +837,7 @@ def generate_facturx_from_file(
|
|||
filename = os.path.basename(attach_filepath)
|
||||
mod_timestamp = os.path.getmtime(attach_filepath)
|
||||
mod_dt = datetime.fromtimestamp(mod_timestamp)
|
||||
with open(attach_filepath, 'r') as fa:
|
||||
with open(attach_filepath, 'rb') as fa:
|
||||
fa.seek(0)
|
||||
additional_attachments_read[fa.read()] = {
|
||||
'filename': filename,
|
||||
|
|
Loading…
Reference in New Issue