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

i need to send automtic mail using server action what is the python code use for it ?

아바타
취소
베스트 답변

Hi

Refer below line may help you

https://www.odoo.com/forum/help-1/question/how-to-send-invoice-mail-automatically-24620

http://stackoverflow.com/questions/23908437/how-to-create-program-for-sending-mail-autometically-from-openerp-using-python

http://maheshwarimayur.blogspot.in/2012/12/send-mail-in-openerp-with-mail-templates.html

 

아바타
취소
베스트 답변

Hi

In my case I needed to send an automatic instant email to all users who create a new account. In my Server Action I have my python code:

mail_template_id = 38
email_template = env['mail.template'].browse(mail_template_id)
email_template.send_mail(record.id, force_send = True)

I hope you find it useful.

아바타
취소
작성자 베스트 답변

i checked this links before i ask my question but i still canot do it :(

아바타
취소
관련 게시물 답글 화면 활동
1
10월 19
2911
1
5월 25
1164
2
5월 25
1278
0
4월 25
1059
1
4월 25
1394