콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
4 답글
7015 화면

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
9월 24
4600
2
9월 23
10162
1
4월 22
4477
0
10월 21
2899
0
8월 19
2441