[FIX] account: invoice should be stored the first it is printed

This commit is contained in:
Jérome Maes
2016-12-30 09:50:29 +01:00
parent 44685b595b
commit 082eef133d
+1
View File
@@ -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')"
/>
<record id="account_invoices" model="ir.actions.report.xml">