Reputation: 8001
By default, OpenERP displays 20 records when retrieving data. Is there any way I can change the default no of records to something else? I can't find it anywhere
Upvotes: 1
Views: 4048
Reputation: 151
If you want to change the limit of the items displayed in a view, you have to edit the Window Action attached to it.
Go to Settings > Technical > Actions > Window Actions
(Odoo v10).
Select the action you want to change, edit and change the field Limit
, for the number of records you want to display.
Alternately, with Developer Mode
activated, open the view. Open Developer Tools (the bug icon) > Edit Action
and change field Limit
.
Upvotes: 2
Reputation: 5044
To change the default number of records to display in a tree view, When you define the action
add <field name="limit">your_record_limit</field>
For example, in sale order the default number of record is 80, we can change it to 150 by adding <field name="limit">150</field>
to the ir.action.act_window
<record id="action_order_form" model="ir.actions.act_window">
<field name="name">Sales Orders</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">sale.order</field>
<field name="view_type">form</field>
<field name="limit">150</field>
<field name="view_mode">tree,form,calendar,graph</field>
<field name="search_view_id" ref="view_sales_order_filter"/>
</record>
Upvotes: 0