formatting
This commit is contained in:
parent
78f0c6e4e1
commit
7667a9b9b9
7 changed files with 62 additions and 60 deletions
10
xreport.py
10
xreport.py
|
@ -1,7 +1,7 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# This file is part of the cashbook-module from m-ds for Tryton.
|
||||
# The COPYRIGHT file at the top level of this repository contains the
|
||||
# full copyright notices and license terms.
|
||||
# This file is part of the account-invoice-xrechnung-module
|
||||
# from m-ds for Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
import zipfile
|
||||
from io import BytesIO
|
||||
|
@ -43,7 +43,7 @@ class XReport(Report):
|
|||
},
|
||||
max_length=100, word_boundary=True, save_order=True)
|
||||
|
||||
if data['as_zip'] == True:
|
||||
if data['as_zip'] is True:
|
||||
return (
|
||||
'zip',
|
||||
cls.compress_as_zip('%(fname)s.%(ext)s' % {
|
||||
|
@ -52,7 +52,7 @@ class XReport(Report):
|
|||
}, invoice_string),
|
||||
False,
|
||||
file_name)
|
||||
else :
|
||||
else:
|
||||
return ('xml', invoice_string, False, file_name)
|
||||
|
||||
# end XReport
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue