Employee Manager must be able to view only his salary structure under the page "Employee Salary Structure". He must not be able to view the page in his team member's employee data alone.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
Bu soru işaretlendi
1
Cevapla
2239
Görünümler
Hi Krithika Ravindran,
You can achieve this by using following code
<record id="you_unique_id" model="ir.rule">
<field name="name">Employee Salary Structure</field>
<field name="model_id" ref="model_your_model_name"/>
<field name="domain_force">[('employee_id.user_id','=',user.id)]</field>
</record>
If you have a group , you can add it below line
<field name="groups" eval="[(4, ref('model_name.group_name'))]"/>
Thank You.
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye Olİlgili Gönderiler | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
Odoo Mail Sending Limit
Çözüldü
|
|
2
Ara 23
|
14786 | |
|
0
Eki 23
|
33 | ||
|
3
Eki 23
|
788 | ||
|
1
Eki 23
|
569 | ||
|
1
Ağu 23
|
2503 |