Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
4 Ответы
6810 Представления

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
4202
2
сент. 23
9941
1
апр. 22
4236
0
окт. 21
2670
0
авг. 19
2305