Tips and Tricks (internal only)

Welcome!

This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.

0

De aantal regels aanpassen in lijstweergaven

Avatar
Maarten Bressers
Avatar
Negeren
1 Antwoord
0
Avatar
Maarten Bressers
Beste antwoord

zie url: https://odootricks.tips/some-xml-tips/

Limit (Tree Views)

As standard, Odoo will display 40 lines in List (Tree) views, but this can be changed in the XML.

Here’s an example of adding a list of BOMs to a product (note: there’s already a “smart button” for this, so it may not be the most useful example). The steps to add this are described here: adding a one2many

This is the XML generated by Odoo Studio

This is the line in the XML that we need to change:

<tree string="Bill of Materials" limit = "5" default_order="product_tmpl_id">

This is the result:

As you will see, 5 records are displayed.

Avatar
Negeren