Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
9141 Zobrazení


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? 


Avatar
Zrušit
Autor

thhank you for your support 

its working...

Nejlepší odpověď

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.

Avatar
Zrušit