account_usability: Improve bank statement list view
This commit is contained in:
@@ -63,6 +63,11 @@
|
|||||||
<field name="model">account.bank.statement</field>
|
<field name="model">account.bank.statement</field>
|
||||||
<field name="inherit_id" ref="account.view_bank_statement_tree"/>
|
<field name="inherit_id" ref="account.view_bank_statement_tree"/>
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
|
<tree position="attributes">
|
||||||
|
<!-- Remove is_difference_zero condition for colors -->
|
||||||
|
<attribute name="decoration-danger"></attribute>
|
||||||
|
<attribute name="decoration-info">state == 'open'</attribute>
|
||||||
|
</tree>
|
||||||
<field name="date" position="attributes">
|
<field name="date" position="attributes">
|
||||||
<attribute name="invisible">1</attribute>
|
<attribute name="invisible">1</attribute>
|
||||||
</field>
|
</field>
|
||||||
@@ -76,6 +81,12 @@
|
|||||||
<field name="balance_end_real" position="attributes">
|
<field name="balance_end_real" position="attributes">
|
||||||
<attribute name="optional">show</attribute>
|
<attribute name="optional">show</attribute>
|
||||||
</field>
|
</field>
|
||||||
|
<field name="state" position="attributes">
|
||||||
|
<attribute name="widget">badge</attribute>
|
||||||
|
<attribute name="decoration-info">state == 'open'</attribute>
|
||||||
|
<attribute name="decoration-warning">state == 'posted'</attribute>
|
||||||
|
<attribute name="decoration-success">state == 'confirm'</attribute>
|
||||||
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user