Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
4 Respostas
6847 Visualizações

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

Anyone can help here?

Avatar
Cancelar

What did you tried so far?

Melhor resposta

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
Cancelar
Melhor resposta

Hello Nikul

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

Avatar
Cancelar
Melhor resposta

you can achieve it by overriding of read_group.

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
3
set. 24
4270
2
set. 23
9960
1
abr. 22
4251
0
out. 21
2680
0
ago. 19
2314