From 0fa969a4a7c3457e3ff8bfb9ad8fa698ee68067d Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 18 Jan 2019 15:35:08 +0000 Subject: [PATCH] [FIX] sale: attachment name - Create a SO, keep it as draft - Click on 'Send by Email' The name of the attached PDF file contains `_draft`. This doesn't really make sense anymore, since the SO will be set to 'Sent' right after sending. Therefore, if sending a second time, `_draft` won't be added to the filename. opw-1930282 closes odoo/odoo#30367 --- addons/sale/data/mail_data.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/data/mail_data.xml b/addons/sale/data/mail_data.xml index 5f85067b19f..5d037573d9d 100644 --- a/addons/sale/data/mail_data.xml +++ b/addons/sale/data/mail_data.xml @@ -102,7 +102,7 @@ - ${(object.name or '').replace('/','_')}${object.state == 'draft' and '_draft' or ''} + ${(object.name or '').replace('/','_')} ${object.partner_id.lang}