Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4 Risposte
6845 Visualizzazioni

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

Anyone can help here?

Avatar
Abbandona

What did you tried so far?

Risposta migliore

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
Abbandona
Risposta migliore

Hello Nikul

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

Avatar
Abbandona
Risposta migliore

you can achieve it by overriding of read_group.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
3
set 24
4267
2
set 23
9959
1
apr 22
4250
0
ott 21
2680
0
ago 19
2314