Odoo Help


how to set "access_rules" to let users just see the records of his/her own group' members?

on 7/21/16, 4:33 AM 230 views

I have  written the general codes as below:

 <record id="some_task_user_rule" model="ir.rule">

<field name="name">Some Tasks only for owner</field>

<field name="model_id" ref="model_some_task"/>

<field name="groups" eval="[(4, ref('base.group_user'))]"/>

<field name="domain_force">




I don;t know how to write the "domain_force"; could you give me some advice?

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

1 follower(s)


Asked: 7/21/16, 4:33 AM
Seen: 230 times
Last updated: 7/21/16, 4:56 AM