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

I have a python function that dynamically creates a new field of type "float" in the model ir.model.fields. How can I set the parameter group_operator = False so it does not display a value when records are grouped in the list view?

아바타
취소
베스트 답변

Hi,

You can add the group_operator=False in the field definition in your python file.

your_field= fields.Float(string='Field String',required=True, group_operator=False)

For more info refer this video:How To Remove Sum of Total in Groupby in Tree View in Odoo

Thank you

아바타
취소
작성자

Thank you for your answer however I am creating the field dynamically, which means I have a function that creates the field and the field is not statically defined in my .py file.

관련 게시물 답글 화면 활동
0
2월 25
824
0
1월 25
683
1
12월 24
985
Field __last_update 해결 완료
1
2월 19
4583
2
5월 15
3891