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

Hello All,

By default if I don't want to receive any email then I can go to my user preference & select "Never" to following option,

"Receive Inbox Notifications by Email"

But If I want to restrict email for particular models only then ?

For example, I don't want emails which are coming to me against "project.task" model. 

All Odoo developers know that mails are coming from "message_post" method of mail.thread class. Now in that I can get a particular model against emails are being send to users. At that time do you suggest that I do some custom code and restrict users to have emails on unwanted models. 

However I am thinking to add Many2Many field in user's preference where as user can select unwanted models from email. And that will be only visible in case of If i didn't selected "Never" Option in "Receive Inbox Notifications by Email" setting.

Let me know your thoughts,

아바타
취소
베스트 답변

I think 'Never' works as an 'if' condition as follows

if not 'Never':
receive emails

your suggestion goes as follows

if not 'Never':
get the model of the incoming email
check if this model included in the prevented list, :
then ignore this email

So, I think that this reasoning is good and could be applied, go ahead.


아바타
취소
관련 게시물 답글 화면 활동
0
5월 16
3245
0
3월 15
3544
1
1월 23
4539
1
5월 17
4517
0
7월 16
4058