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?
Tämä kysymys on merkitty
1
Vastaa
8221
Näkymät
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.
Nautitko keskustelusta? Älä vain lue, vaan osallistu!
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy| Aiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
|---|---|---|---|---|
|
|
0
helmik. 25
|
3890 | ||
|
|
0
tammik. 25
|
3193 | ||
|
Field service upgrade
Ratkaistu
|
|
1
jouluk. 24
|
3830 | |
|
Field __last_update
Ratkaistu
|
|
1
helmik. 19
|
6773 | |
|
|
2
toukok. 15
|
6331 |