Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5169 Weergaven

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?

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Auteur

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.

Gerelateerde posts Antwoorden Weergaven Activiteit
0
feb. 25
1119
0
jan. 25
951
1
dec. 24
1244
1
feb. 19
4798
2
mei 15
4081