Odoo Help

0

0
1 Answer
0
francislouie
22‏/2‏/2018 2:07 ص

here's my sample ir_rule for contract


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

<field name="name">Contracts of my Company</field>

<field name="model_id" ref="hr_contract.model_hr_contract"/>

<field name="perm_read" eval="True"/>

<field name="perm_write" eval="True"/>

<field name="perm_create" eval="True"/>

<field name="perm_unlink" eval="True"/>

<field eval="True" name="global"/>

<field name="domain_force">['|',('employee_id.company_id','=',False),('employee_id.company_id','child_of',[user.company_id.id])]</field>

</record>

Ask a Question
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