Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
4 Răspunsuri
6844 Vizualizări

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

Anyone can help here?

Imagine profil
Abandonează

What did you tried so far?

Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

Hello Nikul

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

Imagine profil
Abandonează
Cel mai bun răspuns

you can achieve it by overriding of read_group.

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
3
sept. 24
4262
2
sept. 23
9955
1
apr. 22
4249
0
oct. 21
2677
0
aug. 19
2310