I want to set the class of my form depending on an object condition. Here is a example of what I'm trying to do with pseudo code:
<record model="ir.ui.view" id="my_demo_record_view">
<field name="name">my_demo.record.form</field>
<field name="model">my_demo.record</field>
<field name="arch" type="xml">
if ('priority', '=', 'important'):
<form class="my_demo_important_form" string="Record Form">
else:
<form string="Record Form">
...
</form>
</field>
</record>