This is the XML that produces both screenshots I submitted. There are several sums in the XML, the two shown in the screenshots are:
<field colspan="4" name="line_ids" nolabel="1" widget="one2many_list"> <tree string="Receipt Lines" editable="bottom"> <field name="reference" string="Invoice Reference"/> <field name="partner_id" string="Partner" select="1"/> <field name="partial"/> <field name="amount" string="Total" sum="Total Invoices Amount"/> <field name="invoice_id" invisible="1"/> </tree> </field>
And:
<field colspan="4" name="direct_payment_ids" nolabel="1" widget="one2many_list" on_change="button_compute(context)"> <tree string="Direct Payment Lines"> <field name="method_id" select="1" required="1" domain="[('company_id','=', parent.company_id)]"/> <field name="currency_id" select="1" /> <field name="amount" string="Total" required="1" sum="Total Direct Payment Amount"/> </tree> <form> <field name="method_id" select="1" required="1" domain="[('company_id','=', parent.company_id)]" /> <field name="amount" string="Total" required="1" sum="Total Direct Payment Amount"/> <field name="currency_id" select="1" on_change="on_change_currency(currency_id, parent.company_id)"/> </form> </field>
This is the XML that produces both screenshots I submitted. There are several sums in the XML, the two shown in the screenshots are:
And: