Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2673 Vizualizări

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)"

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
0
aug. 25
96
1
aug. 25
2045
1
iul. 25
2573
2
iul. 25
8010
2
iul. 25
4461