flectra/addons/report_intrastat/report/report_intrastat_report.xml
flectra-admin 769eafb483 [INIT] Inception of Flectra from Odoo
Flectra is Forked from Odoo v11 commit : (6135e82d73)
2018-01-16 11:45:59 +05:30

21 lines
1.2 KiB
XML

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