Odoo Help


Surveys: how to filter by requests?

Rui Franco
on 6/16/14, 2:44 PM 895 views

I would like to create a rule to allow users to see only the surveys for which they have a request.

Yes, it is yet another many2many field (invited_user_ids)

Has anyone done this before?




Hi, i have created one survey before week ago.

In that only member of that page are allowe to see the page.

for that i have created one .xml  file


<?xml version='1.0' encoding='UTF-8'?>
         <record model="ir.rule" id="view_page_ept">
            <field name="name">View Page</field>
            <field name="model_id" ref="model_survey_page"/>
            <field name="global" eval="True"/>
            <field name="domain_force">[('members','in',[user.id])]</field>
        <record model="ir.rule" id="view_question_ept">
            <field name="name">View Question</field>
            <field name="model_id" ref="model_survey_question"/>
            <field name="global" eval="True"/>
            <field name="domain_force">[('page_id.members','in',[user.id])]</field>


Hope this will help you.....


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

3 follower(s)


Asked: 6/16/14, 2:44 PM
Seen: 895 times
Last updated: 3/16/15, 8:10 AM