How define gray footer under one2many_list for sum, eg. https://postimg.org/image/jc9alzoeh/
Just in the embedded tree of your One2many field add sum="Title":
<field name="o2m_field_name" >
<tree>
...
<field name="field_name" sum="Total field name"/>
</tree>
<form>
....
...
</form>
</field