Skip to Content
Menu
This question has been flagged
1 Reply
2764 Views

I have a case when a button field name "Is Late" for equipment rental module that I created it on Studio, when the equipment is returned or still not retuned after the allowed date of rental it will go green but I need it to be red instead of green I beleive the change will be in XML, My XML code is as follows:

<data>

  <xpath expr="//field[@name='x_name']" position="before">

    <field name="x_studio_serial_number"/>

  </xpath>

  <xpath expr="//field[@name='x_name']" position="attributes">

    <attribute name="string">Equipment Name</attribute>

  </xpath>

  <xpath expr="//field[@name='x_name']" position="after">

    <field name="x_studio_last_rented_by_1"/>

    <field name="x_studio_currently_rented_from" string="Rented From"/>

    <field name="x_studio_currently_rented_to" string="Rented To"/>

    <field name="x_studio_last_rented_on" string="Last Rented On"/>

    <field name="x_studio_is_late" widget="toggle_button"/>

    <field name="x_studio_is_available" widget="boolean_toggle" attrs="{}"/>

  </xpath>

</data>


</data>


Avatar
Discard
Author Best Answer

I try to use instead a selection ofwidget "kanban_state_selection please advice

Avatar
Discard