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

0
Avatar

Maarten Bressers

--Maarten Bressers--

2546
| 3 1 2
Oisterwijk, Nederland
--Maarten Bressers--
Maarten Bressers
Op 06-10-20 09:28

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.


Blijf geïnformeerd

Over deze community

This is a forum for internal use only... Lees de regels

Vraag hulpmiddelen

3 volger(s)

Statistieken

Gevraagd: 06-10-20 09:28
Gezien: 13 keer
Laatst bijgewerkt: 06-10-20 09:28