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?
Pertanyaan ini telah diberikan tanda
1
Balas
8203
Tampilan
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.
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
|
0
Feb 25
|
3871 | ||
|
|
0
Jan 25
|
3179 | ||
|
Field service upgrade
Diselesaikan
|
|
1
Des 24
|
3822 | |
|
Field __last_update
Diselesaikan
|
|
1
Feb 19
|
6766 | |
|
|
2
Mei 15
|
6314 |