Odoo Help

6
1 Answer
1
Janarthanan
4/26/17, 2:54 AM

Hi @annadurai try this

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

<field name="name">Partner Own Documents</field>
<field name="model_id" ref="base.model_res_partner" />
<field name="domain_force">['|','|',
('user_ids','in',[user.id]),
('supplier','=',True),
'&amp;','&amp;','&amp;',
('user_id','!=',False),
('user_id','=',user.id),
('team_id','!=',False),
('team_id','=',user.team_id.id)]
</field>
<field name="groups" eval="[(6, 0, [ref('sales_team.group_sale_salesman')])]" />
</record>

Ask a Question
Writer
Keep Informed
1 follower(s)
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