<?xml version="1.0"?>
<data><xpath expr="//field[@name='plan_available_ids']" position="after">
                    <field name="department_id" invisible="1"/>
                </xpath>
                <xpath expr="//group[@invisible='not plan_available_ids']" position="attributes">
                    <attribute name="invisible">1</attribute>
                </xpath>
                <xpath expr="//group[@invisible='not plan_id']" position="attributes">
                    <attribute name="invisible">0</attribute>
                </xpath>
                <xpath expr="//field[@name='plan_date']" position="before">
                    <field name="plan_id" options="{&quot;no_open&quot;: True, &quot;no_create&quot;: True}" invisible="not bool(plan_available_ids)"/>
                </xpath>
                <xpath expr="//field[@name='plan_date']" position="attributes">
                    <attribute name="invisible">not plan_id</attribute>
                </xpath>
                <xpath expr="//field[@name='plan_on_demand_user_id']" position="attributes">
                    <attribute name="invisible">not plan_id or not plan_has_user_on_demand</attribute>
                </xpath>
                <xpath expr="//label[hasclass('o_form_label')]" position="attributes">
                    <attribute name="invisible">not plan_id</attribute>
                </xpath>
                <xpath expr="//field[@name='plan_summary']" position="attributes">
                    <attribute name="invisible">not plan_id</attribute>
                </xpath>
            </data>