summaryrefslogtreecommitdiff
path: root/addons/sale/data/mail_data.xml
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2019-01-18 15:35:08 +0000
committerNicolas Martinelli <nim@odoo.com>2019-01-18 15:35:08 +0000
commit0fa969a4a7c3457e3ff8bfb9ad8fa698ee68067d (patch)
tree64d47cf6b631b70bbd2819ac81928e5a9890b695 /addons/sale/data/mail_data.xml
parentc15551a3f2b109e8da1b1fc40ae0bc10b19c4442 (diff)
[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
Diffstat (limited to 'addons/sale/data/mail_data.xml')
-rw-r--r--addons/sale/data/mail_data.xml2
1 files changed, 1 insertions, 1 deletions
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 @@
</div>
</field>
<field name="report_template" ref="action_report_saleorder"/>
- <field name="report_name">${(object.name or '').replace('/','_')}${object.state == 'draft' and '_draft' or ''}</field>
+ <field name="report_name">${(object.name or '').replace('/','_')}</field>
<field name="lang">${object.partner_id.lang}</field>
<field name="user_signature" eval="False"/>
<field name="auto_delete" eval="True"/>