Skip to content

Commit

Permalink
Merge pull request #679 from ecino/10.0-emanuel
Browse files Browse the repository at this point in the history
CO-1758 FIX tree colors for partner sponsorships view
  • Loading branch information
ecino authored May 31, 2018
2 parents d5e248c + 1e0e405 commit c288fe4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sponsorship_compassion/views/res_partner_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div attrs="{'invisible' : [('contracts_paid','=', [])]}">
<h3>Sponsorships as payer only</h3>
<field name="contracts_paid" context="{'default_type': 'S'}">
<tree colors="blue:state == 'draft';black:state == 'active';gray:state == 'terminated'">
<tree colors="blue:state == 'draft';black:state == 'active';green: state == 'waiting';gray:state in ('terminated','cancelled')">
<field name="child_id" />
<field name="child_name" />
<field name="start_date" />
Expand All @@ -34,14 +34,14 @@
<field name="months_paid"/>
<field name="total_amount" />
<field name="state" />
<button name="open_contract" type="object" string="open" />
<button name="open_contract" type="object" icon="fa-external-link" />
</tree>
</field>
</div>
<div attrs="{'invisible' : [('contracts_correspondant','=', [])]}">
<h3>Sponsorships as correspondent only</h3>
<field name="contracts_correspondant" context="{'default_type': 'S'}">
<tree colors="blue:state == 'draft';black:state == 'active';gray:state == 'terminated'">
<tree colors="blue:state == 'draft';black:state == 'active';green: state == 'waiting';gray:state in ('terminated','cancelled')">
<field name="child_id" />
<field name="child_name" />
<field name="start_date" />
Expand All @@ -59,7 +59,7 @@
<div attrs="{'invisible' : [('contracts_fully_managed','=', [])]}">
<h3>Sponsorships fully managed</h3>
<field name="contracts_fully_managed" context="{'default_type': 'S'}">
<tree colors="blue:state == 'draft';black:state == 'active';gray:state == 'terminated'">
<tree colors="blue:state == 'draft';black:state == 'active';green: state == 'waiting';gray:state in ('terminated','cancelled')">
<field name="child_id" />
<field name="child_name" />
<field name="start_date" />
Expand All @@ -77,7 +77,7 @@
<div attrs="{'invisible' : [('other_contract_ids','=', [])]}">
<h3>Other contracts</h3>
<field name="other_contract_ids" context="{'default_type': 'O'}">
<tree colors="blue:state == 'draft';black:state == 'active';gray:state == 'terminated'">
<tree colors="blue:state == 'draft';black:state == 'active';green: state == 'waiting';gray:state in ('terminated','cancelled')">
<field name="name" />
<field name="start_date" />
<field name="end_date" />
Expand Down

0 comments on commit c288fe4

Please sign in to comment.