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

in a class, a field.Char with fa-icon name like fa-dollar.


in form view how to this name as fa-icon?



アバター
破棄
最善の回答

Hi,




Please refer the below example:


<span class="badge rounded-pill">
     i class="fa fa-fw fa-star" aria-label="Opportunities"
     role="img" title="Opportunities"/>
<t t-out="record.opportunity_count.value"/>
</span>

The above code is from the addons where star icon is shown in the partner view in CRM module.

アバター
破棄
最善の回答

Add icon="fa-dollar" to the button in the form view.

Here's an example: https://github.com/odoo/odoo/blob/15.0/addons/mass_mailing_sale/views/mailing_mailing_views.xml#L17

アバター
破棄
関連投稿 返信 ビュー 活動
3
8月 24
4806
1
7月 22
1894
0
4月 22
2871
3
5月 25
2212
1
5月 25
366