Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2677 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
0
Agu 25
100
1
Agu 25
2048
1
Jul 25
2575
2
Jul 25
8014
2
Jul 25
4466