flectra/addons/report_intrastat/report/report_intrastat_report.xml
2018-01-16 02:34:37 -08:00

21 lines
1.2 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<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))"
/>
</flectra>