コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2675 ビュー

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

アバター
破棄
最善の回答

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

アバター
破棄
関連投稿 返信 ビュー 活動
0
8月 25
96
1
8月 25
2045
1
7月 25
2573
2
7月 25
8010
2
7月 25
4461