İçereği Atla
Menü
Bu soru işaretlendi
4 Cevaplar
6771 Görünümler

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

Anyone can help here?

Avatar
Vazgeç

What did you tried so far?

En İyi Yanıt

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

Avatar
Vazgeç
En İyi Yanıt

Hello Nikul

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

Avatar
Vazgeç
En İyi Yanıt

you can achieve it by overriding of read_group.

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
3
Eyl 24
4097
2
Eyl 23
9851
1
Nis 22
4167
0
Eki 21
2621
0
Ağu 19
2276