Add sum on move line
This commit is contained in:
@@ -587,9 +587,9 @@ class Line(OSV):
|
||||
fields.append(column.field.name)
|
||||
attrs = []
|
||||
if column.field.name == 'debit':
|
||||
attrs.append('sum="Total debit"')
|
||||
attrs.append('sum="Debit"')
|
||||
elif column.field.name == 'credit':
|
||||
attrs.append('sum="Total credit"')
|
||||
attrs.append('sum="Credit"')
|
||||
if column.readonly:
|
||||
attrs.append('readonly="1"')
|
||||
if column.required:
|
||||
|
||||
@@ -135,8 +135,8 @@
|
||||
<field name="date" select="1"/>
|
||||
<field name="partner" select="2"/>
|
||||
<field name="account" select="2"/>
|
||||
<field name="debit" select="2"/>
|
||||
<field name="credit" select="2"/>
|
||||
<field name="debit" select="2" sum="Debit"/>
|
||||
<field name="credit" select="2" sum="Credit"/>
|
||||
<field name="state" select="2"/>
|
||||
</tree>
|
||||
]]>
|
||||
|
||||
Reference in New Issue
Block a user