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
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
0
Dec 24
|
59 | ||
Field __last_update
Solved
|
|
1
Feb 19
|
3721 | |
|
2
May 15
|
3117 | ||
|
0
Mar 15
|
2998 | ||
|
0
Sep 24
|
228 |