deny import of factur-x minimal because lacking tax-data
This commit is contained in:
parent
06df601810
commit
144bbf37a1
1 changed files with 10 additions and 4 deletions
14
document.py
14
document.py
|
@ -24,7 +24,7 @@ from trytond.protocols.jsonrpc import JSONEncoder
|
|||
|
||||
xml_types = [
|
||||
(['xsd', 'Factur-X_1.07.2_MINIMUM', 'Factur-X_1.07.2_MINIMUM.xsd'],
|
||||
'Factur-X minimum', 'facturx_extended'),
|
||||
'Factur-X minimum', 'facturx_minimal'),
|
||||
(['xsd', 'Factur-X_1.07.2_EXTENDED', 'Factur-X_1.07.2_EXTENDED.xsd'],
|
||||
'Factur-X extended', 'facturx_extended'),
|
||||
(['xsd', 'Factur-X_1.07.2_EN16931', 'Factur-X_1.07.2_EN16931.xsd'],
|
||||
|
@ -405,12 +405,18 @@ class Incoming(metaclass=PoolMeta):
|
|||
invoice.on_change_lines()
|
||||
return invoice
|
||||
|
||||
def _readxml_facturx_minimal(self, xmltree):
|
||||
""" add missing values to conversion-result
|
||||
|
||||
"""
|
||||
# deny usage of factur-x minimal because it contains no tax-info
|
||||
raise UserError(gettext(
|
||||
'document_incoming_invoice_xml.msg_convert_error',
|
||||
msg='factur-x minimal not supported'))
|
||||
|
||||
def _readxml_facturx_extended(self, xmltree):
|
||||
""" read factur-x extended
|
||||
|
||||
Args:
|
||||
invoice (record): model account.invoice
|
||||
|
||||
Returns:
|
||||
record: model account.invoice
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue