<field name="arch" type="xml">
<xpath expr="//field[@name='config_id']" position="attributes">
<attribute name="widget">selection</attribute>
- <attribute name="domain">[('state', '=', 'active')]</attribute>
+ <attribute name="domain">[('state', 'in', ('active',))]</attribute>
+ <attribute name="attrs">{'readonly': [('state', 'not in', ('opening_control',))]}</attribute>
</xpath>
</field>
</record>