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

Here this is my xml file of doing action,

            <record id="action_loan" model="ir.actions.act_window">

            <field name="name">Loan Request</field>

            <field name="res_model">loan.datas</field>

            <field name="view_type">form</field>

            <field name="view_mode">tree,form</field>

            <field name="domain">[('state','=','done'),('uname.user_id','=',uid)]</field>

            <field name="view_id" ref="loans_tree_view" />

        

         <menuitem action="action_loan" id="loan_detail" name="Loan Request" groups="base.group_user"

parent="loan_type" />


Now i want send mail ,if i click  "Loan Request" menuitem



아바타
취소
베스트 답변

Hi, I think this link: http://odootricks.com/enviar-mail-con-template-desde-python/  might help you. 

In this link I sent mail when a cron function was execute, but I think could be similar than you press a buttton.

아바타
취소
작성자

thanks this will be useful to me