Skip to Content
Menu
This question has been flagged
1 Reply
2361 Views

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



Avatar
Discard
Best Answer

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.

Avatar
Discard
Author

thanks this will be useful to me