تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
9430 أدوات العرض


In Odoo-10 List view start time and end time data added using the below code

time = fields.Float(string='Start Time',required=True)
end_time = fields.Float(string='End Time',required=True)    These are my modal fields

<field name="time" widget="float_time" />
<field name="end_time" widget="float_time" />    These are my view fields

 and the problem is while using Groupby it shows total start time and total end time..

how can i solve this to avoid sum? 


الصورة الرمزية
إهمال
الكاتب

thhank you for your support 

its working...

أفضل إجابة

Hi, You can remove sum of total in group by in tree view by means of group_operator as follows:

time = fields.Float(string='Start Time',required=True, group_operator=False)

end_time = fields.Float(string='End Time',required=True,group_operator=False)

Thank you.

الصورة الرمزية
إهمال