Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2680 Visualizzazioni

I want to download quotation with the name Quotation number as "SQ/001" but it prints "SQ_001". How to remove this underscore and print as it is in sale.

code:

print_report_name="(object.state in ('draft', 'sent') and 'Quotation - %s' % (object.name)) or 'Sale Order - %s' % (object.name)"

Avatar
Abbandona
Risposta migliore

Hello,  Sakthi Priya,


Please you can try with below code,
print_report_name = "(object.state in ('draft', 'sent') and 'Quotation -% s'% (object.name) .replace (' / ',' _ ')) or' Sale Order -% s'% (object.name) .replace ('/', '_') " 

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
ago 25
100
1
ago 25
2048
1
lug 25
2576
2
lug 25
8014
2
lug 25
4466