Odoo Help


How to send email in form view using menuitem

on 9/1/16, 4:11 AM 465 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

Daniel Rodriguez
On 9/5/16, 4:23 AM

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

on 1/11/17, 9:45 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 9/1/16, 4:11 AM
Seen: 465 times
Last updated: 1/11/17, 9:45 PM