Odoo Help


default filter in action

on 3/9/13, 5:43 AM 3,080 views


Is the default filter is included in the action code in version 7 openerp ?

On 3/9/13, 6:11 AM

As for 6.1, you can use the context: {'search_default_FILTER_NAME':1}

See how the Installed Module menu action works:

    <record id="open_module_tree" model="ir.actions.act_window">
        <field name="name">Installed Modules</field>
        <field name="res_model">ir.module.module</field>
        <field name="view_type">form</field>
        <field name="view_mode">kanban,tree,form</field>
        <field name="context">{'search_default_installed':1}</field>
        <field name="search_view_id" ref="view_module_filter"/>
        <field name="help" type="html">
          <p><b>No module found!</b></p>
          <p>You should try others search criteria.</p>

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 platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


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