[IMP]GOLEM Resource : better colors for reservation tree

This commit is contained in:
Fabien BOURGEOIS 2018-03-26 19:04:53 +02:00
parent 00d2eccf74
commit cdf468786e
2 changed files with 1 additions and 5 deletions

View File

@ -39,8 +39,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="name">GOLEM Resource Reservation Tree</field> <field name="name">GOLEM Resource Reservation Tree</field>
<field name="model">golem.resource.reservation</field> <field name="model">golem.resource.reservation</field>
<field name="arch" type="xml"> <field name="arch" type="xml">
<tree <tree colors="black: state=='draft'; blue: state=='validated'; gree : state=='validated'; grey: state=='canceled'; orange: state=='rejected'">
colors="black: state=='draft'; blue : state=='validated'; grey : state=='canceled'; orange : state=='rejected'">
<field name="resource_id" /> <field name="resource_id" />
<field name="date_start" /> <field name="date_start" />
<field name="date_stop" /> <field name="date_stop" />

View File

@ -24,9 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="model">golem.resource.reservation</field> <field name="model">golem.resource.reservation</field>
<field name='inherit_id' ref="golem_resource.golem_resource_reservation_view_tree"/> <field name='inherit_id' ref="golem_resource.golem_resource_reservation_view_tree"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//tree" position="attributes">
<attribute name="colors">red : invoice_state=='open'; green : invoice_state=='paid'; black: state=='draft'; blue : state=='validated'; grey : state=='canceled'; orange : state=='rejected'</attribute>
</xpath>
<field name="state" position="after"> <field name="state" position="after">
<field name="invoice_id" /> <field name="invoice_id" />
<field name="invoice_state" string="Invoice status" /> <field name="invoice_state" string="Invoice status" />