I used a Percent(%) in form view but when I used in Groupby Symbol is not display.
Anyone can help here?
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
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
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.
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
| 
            
                How can I style Odoo Form?
            
            
                    Résolu
            
         |  | 3 sept. 24  | 5125 | |
|  | 2 sept. 23  | 10640 | ||
|  | 1 avr. 22  | 4808 | ||
|  | 0 oct. 21  | 3136 | ||
|  | 0 août 19  | 2671 | 
What did you tried so far?