From 3f7d90db656cc23080cf687a3b20bd69b6f84ad5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Maes?= Date: Fri, 27 Jan 2017 10:24:04 +0100 Subject: [PATCH] [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 : dccfdb0ddb9c928c7c4d660ce3c29af5af0705c5 --- 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 56d352ba8f5..5823b04764f 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_use="True" attachment="(object.state in ('open','paid')) and ('INV'+(object.number or '').replace('/','')+'.pdf')" />