Odoo Help

0

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

By
vx2008
on 7/21/16, 4:33 AM 364 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">

.....

</field>

</record>


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

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.

Register

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)

Stats

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