尝试
<xpath expr="//page[@name='registrations']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
如果不
<xpath expr="//page[@name='registrations']" position="replace">
</xpath>
尝试这个。
<xpath expr="//notebook" position="replace">
<page name="registrations" string="Registrations" invisible="1">
<group>
<group>
<field name="seats_min"/>
<label for="seats_availability"/>
<div>
<field name="seats_availability" widget='radio'/>
<span attrs="{'invisible': [('seats_availability', '=', 'unlimited')]}" class="oe_read_only">
to
</span>
<field name="seats_max" attrs="{'invisible': [('seats_availability', '=', 'unlimited')], 'required': [('seats_availability', '=', 'limited')]}"/>
</div>
</group>
<group>
<field name="auto_confirm" groups="base.group_no_one"/>
</group>
</group>
</page>
<page string="Email Schedule">
<group>
<field name="reply_to"/>
</group>
<field name="event_mail_ids">
<tree string="Email Schedule" editable="bottom">
<field name="sequence" widget="handle"/>
<field name="template_id" />
<field name="interval_nbr" attrs="{'readonly':[('interval_unit','=','now')]}"/>
<field name="interval_unit"/>
<field name="interval_type"/>
<field name="done"/>
</tree>
</field>
</page>
</xpath>
您可能需要使 html 不可见,以便其他依赖视图不会失败。