Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
4 Odpowiedzi
6917 Widoki

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

Anyone can help here?

Awatar
Odrzuć

What did you tried so far?

Najlepsza odpowiedź

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

Awatar
Odrzuć
Najlepsza odpowiedź

Hello Nikul

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

Awatar
Odrzuć
Najlepsza odpowiedź

you can achieve it by overriding of read_group.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
wrz 24
4389
2
wrz 23
10021
1
kwi 22
4314
0
paź 21
2744
0
sie 19
2384