How to Show Percent(%) symbol when I use Group by?
I used a Percent(%) in form view but when I used in Groupby Symbol is not display.
Anyone can help here?
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,
I think you are trying to add % symbol after a field.
Try like this.
<form> |
Thanks & Regards
Avinash N K
No, he is trying to show % symbol when records are grouped by in the tree view.
Ohh. I take it as mistaken because you are mention form view in the question.
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.
RegisterAccess to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.
Test it now
What did you tried so far?