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.


Surveys: how to filter by requests?

Odooveloper (by Rui Franco)
on 6/16/14, 2:44 PM 533 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.....


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

3 follower(s)


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