formatting
This commit is contained in:
parent
192a93fd7c
commit
a2e1ef6664
3 changed files with 6 additions and 14 deletions
|
@ -49,7 +49,7 @@ class Invoice(Invoice):
|
||||||
|
|
||||||
if self.invoice.comment:
|
if self.invoice.comment:
|
||||||
notes.extend(self.invoice.comment.split('\n'))
|
notes.extend(self.invoice.comment.split('\n'))
|
||||||
if len(notes) > 0:
|
if notes:
|
||||||
return '; '.join(notes)
|
return '; '.join(notes)
|
||||||
|
|
||||||
def invoice_line_tax(self, line):
|
def invoice_line_tax(self, line):
|
||||||
|
@ -75,10 +75,7 @@ class Invoice(Invoice):
|
||||||
def taxident_data(self, tax_identifier):
|
def taxident_data(self, tax_identifier):
|
||||||
""" get tax-scheme-id and codes
|
""" get tax-scheme-id and codes
|
||||||
"""
|
"""
|
||||||
result = {
|
result = {'code': None, 'id': None}
|
||||||
'code': None,
|
|
||||||
'id': None,
|
|
||||||
}
|
|
||||||
|
|
||||||
if tax_identifier:
|
if tax_identifier:
|
||||||
if tax_identifier.type == 'de_vat':
|
if tax_identifier.type == 'de_vat':
|
||||||
|
@ -120,7 +117,7 @@ class Invoice(Invoice):
|
||||||
def quote_text(self, text):
|
def quote_text(self, text):
|
||||||
""" replace critical chars
|
""" replace critical chars
|
||||||
"""
|
"""
|
||||||
if text is not None:
|
if text:
|
||||||
return html.quote(text)
|
return html.quote(text)
|
||||||
|
|
||||||
def _get_template(self, version):
|
def _get_template(self, version):
|
||||||
|
|
3
party.py
3
party.py
|
@ -31,7 +31,6 @@ class PartyConfiguration(metaclass=PoolMeta):
|
||||||
def __setup__(cls):
|
def __setup__(cls):
|
||||||
super(PartyConfiguration, cls).__setup__()
|
super(PartyConfiguration, cls).__setup__()
|
||||||
cls.identifier_types.selection.append(
|
cls.identifier_types.selection.append(
|
||||||
('edoc_route_id', 'X-Rechnung Route-ID')
|
('edoc_route_id', 'X-Rechnung Route-ID'))
|
||||||
)
|
|
||||||
|
|
||||||
# end Configuration
|
# end Configuration
|
||||||
|
|
8
setup.py
8
setup.py
|
@ -4,14 +4,10 @@
|
||||||
# full copyright notices and license terms.
|
# full copyright notices and license terms.
|
||||||
|
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
# To use a consistent encoding
|
|
||||||
from codecs import open
|
from codecs import open
|
||||||
from os import path
|
from os import path
|
||||||
import re
|
import re
|
||||||
try:
|
from configparser import ConfigParser
|
||||||
from configparser import ConfigParser
|
|
||||||
except ImportError:
|
|
||||||
from ConfigParser import ConfigParser
|
|
||||||
|
|
||||||
here = path.abspath(path.dirname(__file__))
|
here = path.abspath(path.dirname(__file__))
|
||||||
MODULE = 'edocument_xrechnung'
|
MODULE = 'edocument_xrechnung'
|
||||||
|
@ -88,9 +84,9 @@ setup(
|
||||||
'Natural Language :: English',
|
'Natural Language :: English',
|
||||||
'Operating System :: OS Independent',
|
'Operating System :: OS Independent',
|
||||||
'License :: OSI Approved :: GNU General Public License (GPL)',
|
'License :: OSI Approved :: GNU General Public License (GPL)',
|
||||||
'Programming Language :: Python :: 3.7',
|
|
||||||
'Programming Language :: Python :: 3.8',
|
'Programming Language :: Python :: 3.8',
|
||||||
'Programming Language :: Python :: 3.9',
|
'Programming Language :: Python :: 3.9',
|
||||||
|
'Programming Language :: Python :: 3.10',
|
||||||
],
|
],
|
||||||
|
|
||||||
keywords='tryton xrechnung edcoument',
|
keywords='tryton xrechnung edcoument',
|
||||||
|
|
Loading…
Reference in a new issue