在表单视图中,有时候需要设置many2one字段点击不打开form,要实现这个效果,只需要在字段后面增加属性 no_open即可:
<field name="city" options="{'no_open': True}"/>