export of xrechnung 2.2 + 2.3 + 3.0

This commit is contained in:
Frederik Jaeckel 2024-12-05 11:28:44 +01:00
parent 2dac79debe
commit eda7216907
4 changed files with 48 additions and 6 deletions

View file

@ -31,7 +31,7 @@ class XReport(Report):
pool = Pool()
IrDate = pool.get('ir.date')
Invoice = pool.get('account.invoice')
EDocument = pool.get(data['edocument'])
EDocument = pool.get(data['edocument'].split('-')[0])
invoice, = Invoice.browse([data['invoice']])
template = EDocument(invoice)