I found the solution on my own
<record model="ir.rule" id="portal_project_rule"> <field name="name">Project: portal users: portal</field> <field name="name">Projects belog to portal user or company</field> <field name="model_id" ref="project.model_project_project"/> <field name="domain_force"> ['|', ('partner_id.child_ids', 'in', [user.partner_id.id]), ('partner_id', 'in', [user.partner_id.id]), ('privacy_visibility', 'in', ['portal']), ] </field> </record>
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
|Asked: 10/17/13, 5:50 AM|
|Seen: 1159 times|
|Last updated: 3/16/15, 8:10 AM|