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?
Esta pergunta foi sinalizada
1
Responder
8189
Visualizações
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.
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscrever-se| Publicações relacionadas | Respostas | Visualizações | Atividade | |
|---|---|---|---|---|
|
|
0
fev. 25
|
3851 | ||
|
|
0
jan. 25
|
3165 | ||
|
Field service upgrade
Resolvido
|
|
1
dez. 24
|
3813 | |
|
Field __last_update
Resolvido
|
|
1
fev. 19
|
6757 | |
|
|
2
mai. 15
|
6271 |