Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2

How to change the default number of lines in listview?

By
ton123
on 3/12/13, 1:19 PM 4,858 views

There are a lot of listviews in OpenERP. They work very good and nice. I often use listviews for sales/addresbook/contacts and for products.

The number of lines can be choosen:

  • 24 lines
  • 80 lines
  • 100 lines
  • 200 lines
  • 500 lines
  • unlimited lines

The default value is always: 24.

I would like to have an other default value.

Is it possible to set the default value in the configuration parameters, if so how? E.g. on a system basis, on a per screen basis or is it possible to keep the default value of the last typed in value?

6

Ray Carnes

--Ray Carnes--
15697
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

Ray Carnes
On 3/12/13, 7:43 PM

The default limit for a list view is set on the corresponding Window Action.


VIA THE USER INTERFACE:

Window Actions are managed via:

Settings -> Customization -> Low Level Objects -> Actions -> Window Actions

Because things like Products can be viewed from many different places ...

Sales -> Products -> Products

Sales -> Products -> Products by Category (and then select a Category)

Purchases -> Products -> Products

Warehouse -> Products -> Products

POS Backend -> Products -> Products

Tools -> Configuration -> Lunch -> Products

... if you search for 'product.product' in the Object field, you will see 6 Window Actions named 'Products'.

So it is better to search for the Menu item, via:

Settings -> Customization -> User Interface -> Menu Items

... and then open the Action from there.

When you do, you will see the default value in the Limit field - and you can change this value from 80 to anything you want:

image description


VIA XML:

Change the limit field in the window action definition:

action add <field name="limit">your_default_limit</field>

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 3/12/13, 1:19 PM
Seen: 4858 times
Last updated: 5/2/15, 11:56 AM