Odoo Help


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.


OpenERP 7 search box showing long patient record list how to set min limit

on 5/10/13, 9:39 AM 2,547 views

In openerp 7 i have more than 2000 patient records in search box entered letter 'a' its shows all the record how to set minimum limit to search record which method need to override in Openerp 7 version?

<record id="view_intake_filter" model="ir.ui.view">
          <field name="name">intake.filter</field>
          <field name="model">patinet.form</field>
          <field name="type">search</field>
          <field name="arch" type="xml">
          <search string="patient Intake">
               <field name="patient_id"/>


| 5 4 8
Casablanca, Morocco
On 5/10/13, 2:47 PM

Add <field name="limit">100</field> to your action


Override the search method

def search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False):
    limit = 100
    return super(patinet_form, self).search(cr, uid, args, offset, limit, order, context, count)

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)


Asked: 5/10/13, 9:39 AM
Seen: 2547 times
Last updated: 3/16/15, 8:10 AM