[FIX] account: make invoice report reprint from attachment again

A few month ago, based on unclear specs, something was merged.
Today, we come back, since it does not do what we want. We do
not take into account the fact that between 2 printings, the user
has changed its report layout or its data company.

Initial commit : dccfdb0ddb
This commit is contained in:
Jérome Maes
2017-01-27 10:24:07 +01:00
parent 5a7908fbce
commit 3f7d90db65
+1
View File
@@ -9,6 +9,7 @@
report_type="qweb-pdf"
name="account.report_invoice"
file="account.report_invoice"
attachment_use="True"
attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/','')+'.pdf')"
/>