From 082eef133da33d58e54a1874b9977973f2e23e54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Maes?= Date: Thu, 29 Dec 2016 16:15:36 +0100 Subject: [PATCH] [FIX] account: invoice should be stored the first it is printed --- addons/account/views/account_report.xml | 1 + 1 file changed, 1 insertion(+) 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')" />