Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
4 Відповіді
6861 Переглядів

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

Anyone can help here?

Аватар
Відмінити

What did you tried so far?

Найкраща відповідь

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

Аватар
Відмінити
Найкраща відповідь

Hello Nikul

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

Аватар
Відмінити
Найкраща відповідь

you can achieve it by overriding of read_group.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
3
вер. 24
4297
2
вер. 23
9964
1
квіт. 22
4261
0
жовт. 21
2692
0
серп. 19
2341