diff --git a/addons/account/views/account_report.xml b/addons/account/views/account_report.xml index 605c6f7c64b..5b301a2fa80 100644 --- a/addons/account/views/account_report.xml +++ b/addons/account/views/account_report.xml @@ -12,6 +12,16 @@ attachment_use="True" attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/','')+'.pdf')" /> + + (object.type == 'out_invoice' and object.state == 'draft' and 'Draft Invoice' or + object.type == 'out_invoice' and object.state in ('open','paid') and 'Invoice'+'-'+(object.number) or + object.type == 'out_refund' and object.state == 'draft' and 'Refund' or + object.type == 'out_refund' and 'Refund'+'-'+(object.number) or + object.type == 'in_invoice' and object.state == 'draft' and 'Vendor Bill' or + object.type == 'in_invoice' and object.state in ('open','paid') and 'Vendor Bill'+'-'+(object.number) or + object.type == 'in_refund' and object.state == 'draft' and 'Vendor Refund' or + object.type == 'in_refund' and 'Vendor Refund'+'-'+(object.number)) + + + (object.type == 'out_invoice' and object.state == 'draft' and 'Duplicate Invoice' or + object.type == 'out_invoice' and object.state in ('open','paid') and 'Duplicate Invoice'+'-'+(object.number) or + object.type == 'out_refund' and object.state == 'draft' and 'Duplicate Refund' or + object.type == 'out_refund' and 'Duplicate Refund'+'-'+(object.number) or + object.type == 'in_invoice' and object.state == 'draft' and 'Duplicate Vendor Bill' or + object.type == 'in_invoice' and object.state in ('open','paid') and 'Duplicate Vendor Bill'+'-'+(object.number) or + object.type == 'in_refund' and object.state == 'draft' and 'Duplicate Vendor Refund' or + object.type == 'in_refund' and 'Duplicate Vendor Refund'+'-'+(object.number)) + + + 'Due Payments'+'-'+(object.name) + + + 'Registration Event'+'-'+(object.name) + + + 'Print Badge'+'-'+(object.name) +