Skip to Content
Menu
This question has been flagged
4 Replies
6889 Rodiniai

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

Anyone can help here?

Portretas
Atmesti

What did you tried so far?

Best Answer

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

Portretas
Atmesti
Best Answer

Hello Nikul

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

Portretas
Atmesti
Best Answer

you can achieve it by overriding of read_group.

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
3
rugs. 24
4326
2
rugs. 23
9988
1
bal. 22
4293
0
spal. 21
2716
0
rugp. 19
2361