diff --git a/addons/account/views/account_report.xml b/addons/account/views/account_report.xml index a0f48744aa5..56d352ba8f5 100644 --- a/addons/account/views/account_report.xml +++ b/addons/account/views/account_report.xml @@ -9,6 +9,7 @@ report_type="qweb-pdf" name="account.report_invoice" file="account.report_invoice" + attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/','')+'.pdf')" />