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

Our odoo was configured to send email when a leave(time off) is approved. It was done using Automated actions.
From past 2,3 days it's not working. Below is the error getting from Odoo logs.

odoo.addons.mail.models.mail_mail: Mail with ID 9772 and Message-Id '' successfully sent
odoo.models.unlink: User #1 deleted mail.mail records with IDs: [9772]
odoo.addons.mail.models.mail_mail: Sent batch 1 emails via mail server ID #False

Any idea why odoo is deleting those records.


아바타
취소
베스트 답변

Hi Charles,

When you send mail in your send_mail method or any mail related method need parameter like force_send=True

and second condition is Your odoo Email template have auto delete false.

아바타
취소
작성자

Thank you Nikhil,
I checked auto delete option, it's not selected.
where can i edit send_mail method

You create automated action so its direct create Odoo frontend
inside -> Technical -> Automated Actions

작성자

this github link not working, can you check please

작성자 베스트 답변

Thank you, i can't find force send option here.

아바타
취소

i think you automated action trigger during based on state update and model is Time Off(hr.leave)

작성자

wondering why it's not working now from 1 week. Should I change the trigger to anything else

can you check your outgoing server connection is success.
settings -> Technical -> Outgoing mail server -> Test.

작성자

yes, mail server test is working. Emails when a leave request created working fine.

관련 게시물 답글 화면 활동
1
3월 15
5026
3
4월 24
2534
1
9월 23
2361
5
7월 20
6326
0
3월 17
3506