تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4 الردود
6850 أدوات العرض

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.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
سبتمبر 24
4273
2
سبتمبر 23
9960
1
أبريل 22
4252
0
أكتوبر 21
2681
0
أغسطس 19
2317