Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4 Antwoorden
6785 Weergaven

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

Anyone can help here?

Avatar
Annuleer

What did you tried so far?

Beste antwoord

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
Annuleer
Beste antwoord

Hello Nikul

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

Avatar
Annuleer
Beste antwoord

you can achieve it by overriding of read_group.

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
3
sep. 24
4131
2
sep. 23
9870
1
apr. 22
4202
0
okt. 21
2639
0
aug. 19
2283