コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4518 ビュー

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
514
0
1月 25
444
1
12月 24
683
1
2月 19
4349
2
5月 15
3701