<data priority="50">
    <xpath expr="//field[@name='date_end']" position="attributes">
        <attribute name="attrs">{'readonly': [('state','not in',('draft','sent','in_progress','open','ongoing'))]}</attribute>
    </xpath>
</data>
