Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5248 มุมมอง

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?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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.

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.พ. 25
1149
0
ม.ค. 25
984
Field service upgrade แก้ไขแล้ว
1
ธ.ค. 24
1281
Field __last_update แก้ไขแล้ว
1
ก.พ. 19
4834
2
พ.ค. 15
4106