odoo tree attempts to modify the number of data display

The default in odoo is to display 80 items in the tree view, but we can modify and customize how many to display. The
following example is customized to 200 items per page. The
code is as follows:
Insert picture description here

  • This is to modify the original display
<xpath expr="//tree" position="attributes">
     <attribute name="limit">200</attribute>
</xpath>
  • Show the number of articles written by yourself
<tree limit=200>
	<field name="name"/>
</tree>

The effect is as follows:
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_42464956/article/details/110881935