Ir al contenido
Menú
Se marcó esta pregunta
4 Respuestas
6799 Vistas

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

Anyone can help here?

Avatar
Descartar

What did you tried so far?

Mejor respuesta

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
Descartar
Mejor respuesta

Hello Nikul

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

Avatar
Descartar
Mejor respuesta

you can achieve it by overriding of read_group.

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
sept 24
4176
2
sept 23
9925
1
abr 22
4229
0
oct 21
2659
0
ago 19
2291