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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
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.
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
0
feb 25
|
495 | ||
|
0
gen 25
|
427 | ||
Field service upgrade
Risolto
|
|
1
dic 24
|
657 | |
Field __last_update
Risolto
|
|
1
feb 19
|
4309 | |
|
2
mag 15
|
3673 |