forked from Yaltik/golem
Colorisation de la listes des réservation (invoicing_state)
This commit is contained in:
parent
bc8c6dbd58
commit
93ff8cd802
@ -24,6 +24,9 @@ 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 : invoicing_state=='open'; green : invoicing_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="invoicing_state"/>
|
<field name="invoicing_state"/>
|
||||||
</field>
|
</field>
|
||||||
|
Loading…
Reference in New Issue
Block a user