콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

I want to hide the Employee Chatter Feed by a record rule that allows the loging user to see his own Employee Chatter Feed.

I try a record Rule: 

Object: mail.message

Domain: [('parent_id','=',user.id)]

But is not working.


I`m in v11 Odoo SaaS


Thanks.

아바타
취소
베스트 답변

Hello Mario Molinos,

You can use below rule to allow employee to see their own chatter.

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

    <field name="name">Rule to Allow Own chatter</field>

    <field name="model_id" ref="model_mail_message"/>

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

    <field name="domain_force">[('author_id', '=', user.partner_id.id)]</field>

</record>

Hope it may help you!

Thank you!

Regards,




Email:      odoo@aktivsoftware.com  

Skype: kalpeshmaheshwari

   


아바타
취소
작성자

I´m not the Author of all the messages in my Chatter. So this Domain doesn´t works for my purpose.

작성자 베스트 답변

I solved it by a Record Rule in the mail.message model.

['|',('res_id','=',user.employee_ids.id),('model','!=','hr.employee')]

아바타
취소
관련 게시물 답글 화면 활동
3
2월 23
5497
2
6월 25
5011
2
1월 25
2739
3
1월 24
2389
0
2월 24
2040