[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
This commit is contained in:
@@ -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"/>
|
||||
|
||||
Reference in New Issue
Block a user