我在notebook
元素的页面中添加了一个树视图。在将数据添加到树视图时,它会保存在数据库中,并且还会显示在树视图中。当我重新加载页面时,树视图中的数据消失并且它是空的。
代码如下所示:
<field name="arch" type="xml">
<notebook colspan="4">
<page string="Block Area">
<field colspan="4" name="block_line" nolabel="1" mode="tree,form">
<tree string="Block">
<field name="blockname" />
<field name="size" />
<field name="activefrom" />
<field name="activethru" />
<field name="active" />
</tree>
</field>
</page>
</notebook>
</field>