odoo tree试图数据展示数量修改

odoo中默认的是在tree视图中显示80条,但是我们是可以修改的,自定义显示多少
以下示例自定义为200条一页
代码如下:
在这里插入图片描述

  • 这是修改原生的条数展示
<xpath expr="//tree" position="attributes">
     <attribute name="limit">200</attribute>
</xpath>
  • 自己写的条数展示
<tree limit=200>
	<field name="name"/>
</tree>

效果如下:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_42464956/article/details/110881935