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

default filter in action

By
zineb
on 3/9/13, 5:43 AM 2,848 views

Hello,

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

1
eLBati
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>
        </field>
    </record>

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/9/13, 5:43 AM
Seen: 2848 times
Last updated: 3/16/15, 8:10 AM