Commit e2fa5745 authored by Arnaud Fontaine's avatar Arnaud Fontaine

erp5_accounting_l10n_fr: 'at_date' in FEC Dialog requires month/day so these...

erp5_accounting_l10n_fr: 'at_date' in FEC Dialog requires month/day so these should be in the generated filename too.
parent 6ef72d5c
......@@ -13,7 +13,7 @@ fec_file = context.AccountingTransactionModule_viewComptabiliteAsFECXML(
result_list=result_list)
zipbuffer = StringIO()
zipfilename = at_date.strftime('FEC-%Y.zip')
zipfilename = at_date.strftime('FEC-%Y%m%d.zip')
zipfileobj = zipfile.ZipFile(zipbuffer, 'w', compression=zipfile.ZIP_DEFLATED)
zipfileobj.writestr('FEC.xml', fec_file.encode('utf8'))
zipfileobj.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment