How do I limit the number of results in a tree view?
So, within a form view I have an embedded tree view (one2many field). This embedded view, by default, shows 80 results before it starts paging. As this is an embedded view, the number of results is simply too much to be useful. Ideally, I want to limit the number of results to 10.
Now, I have found how to change the number of results system wide but that is not what I want. I only want to change the number of results on this one single view whilst leaving the other views unaffected. Is this functionality possible? If it is not possible out of the box, has anyone written any code to update the web client to make it possible?
Code in question:
<field name="activitylog" colspan="3" nolabel="1" > <tree string="Activity Log Entries"> <field name="entry_date" /> <field name="activity_type" /> <field name="name" /> <field name="state" /> <field name="contact_id" /> <field name="user_id" /> <button type="object" string="Open Activity" name="button_view_activity" icon="gtk-open" /> </tree> </field>
I want that tree view to be limited by results. Many thanks