flectra/addons/report_intrastat/report/report_intrastat_report.xml

21 lines
1.2 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-01-16 11:34:37 +01:00
<flectra>
<report
id="account_intrastatinvoices"
model="account.invoice"
string="Intrastat Invoices"
report_type="qweb-pdf"
name="report_intrastat.report_intrastatinvoice"
file="report_intrastat.report_intrastatinvoice"
print_report_name="
(object.type == 'out_invoice' and object.state == 'draft' and 'Intrastat Invoice' or
object.type == 'out_invoice' and object.state in ('open','paid') and 'Intrastat Invoice - %s' % (object.number) or
object.type == 'out_refund' and object.state == 'draft' and 'Intrastat Credit Note' or
object.type == 'out_refund' and 'Intrastat Credit Note - %s' % (object.number) or
object.type == 'in_invoice' and object.state == 'draft' and 'Intrastat Vendor Bill' or
object.type == 'in_invoice' and object.state in ('open','paid') and 'Intrastat Vendor Bill - %s' % (object.number) or
object.type == 'in_refund' and object.state == 'draft' and 'Intrastat Vendor Credit Note' or
object.type == 'in_refund' and 'Intrastat Vendor Credit Note - %s' % (object.number))"
/>
2018-01-16 11:34:37 +01:00
</flectra>