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

I used a Percent(%) in form view but when I used in Groupby Symbol is not display.

Anyone can help here?

アバター
破棄

What did you tried so far?

最善の回答

Hello Nikul,

You can add character function field with and store=True, which returns the string with percentage sign appends, like this :

@api.depends('basic')
def _compute_percent(self):
    for rec in self:
       rec.per_net_amt = str(rec.basic) + " %"

per_net_amt = fields.Char(compute='_compute_percent', string="percent field", store=True)
​basic = fields.Float("Basic Amount")

Hope it will help you.
Thanks

アバター
破棄
最善の回答

Hello Nikul

Check this app store module will help you https://apps.odoo.com/apps/modules/12.0/percent_field/

アバター
破棄
最善の回答

you can achieve it by overriding of read_group.

アバター
破棄
関連投稿 返信 ビュー 活動
3
9月 24
4287
2
9月 23
9963
1
4月 22
4258
0
10月 21
2682
0
8月 19
2323