Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2688 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
aug. 25
106
1
aug. 25
2053
1
jul. 25
2583
2
jul. 25
8021
2
jul. 25
4472