Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odpovědi
6775 Zobrazení

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

Anyone can help here?

Avatar
Zrušit

What did you tried so far?

Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

Hello Nikul

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

Avatar
Zrušit
Nejlepší odpověď

you can achieve it by overriding of read_group.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
zář 24
4098
2
zář 23
9852
1
dub 22
4172
0
říj 21
2626
0
srp 19
2276