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.

0

OpenERP 7 one2many pagination

By
Eddy Tan
on 8/21/13, 7:51 AM 2,237 views

I used one2many field in my module to display a tree view,
but there's no pagination for the list and the list become so long.

when I check the previous version of OpenERP(6.1) the pagination is there by default.
how to enable it in OpenERP 7 ?
Thanks..

Hello Eddy, do you get the solution for that ? I have the same problem ..

laribi
on 9/27/13, 9:03 AM

unfortunately I haven't got the solution yet, maybe it's just disabled in the widget and we just need to enable it , but I haven't know where .,

Eddy Tan
on 9/28/13, 2:04 AM

Hello , i find it : you can use this class on the one2many field .new_one2many { overflow: scroll; width:82%; }

laribi
on 9/30/13, 5:30 AM

Hi,I am also facing same issue. When i checked for new_one2many, i cannot find any class with name "new_one2many". Can you please help me to get the solution?

Zesty Beanz Technologies, Prajul P T
on 4/3/14, 4:15 AM
0
supreeth
On 11/18/14, 6:04 AM

Refer this it will help all.

We can give pagination for two items/fields. One for menus and one for tabs.

For menus: just write one like code in <field name="limit">15</field> in ir.actions.act_window model. i.e.

<record id="action_program" model="ir.actions.act_window"> <field name="name">Program</field> <field name="type">ir.actions.act_window</field> <field name="res_model">lis.program</field> <field name="view_type">form</field> <field name="limit">15</field> <field name="view_mode">tree,form</field> <field name="search_view_id" ref="view_program_filter"/> <field name="view_id" ref="program_tree"/> </record>

For tab: go to

C:\Program Files (x86)\OpenERP 7.0-20140622-231040\Server\server\openerp\addons\web\static\src\js

File view_list.js Line num 117

limit: function () { if (this._limit === undefined) { this._limit = (this.options.limit || this.defaults.limit || (this.getParent().action || {}).limit || 80); } return this._limit; },

Change that default number 80 to your choice.

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: 8/21/13, 7:51 AM
Seen: 2237 times
Last updated: 3/16/15, 8:10 AM