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?
Câu hỏi này đã bị gắn cờ
1
Trả lời
8207
Lượt xem
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.
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
|
0
thg 2 25
|
3877 | ||
|
|
0
thg 1 25
|
3182 | ||
|
Field service upgrade
Đã xử lý
|
|
1
thg 12 24
|
3823 | |
|
Field __last_update
Đã xử lý
|
|
1
thg 2 19
|
6767 | |
|
|
2
thg 5 15
|
6322 |