Odoo Help


This community 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.


How to send email in form view using menuitem

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 9/1/16, 4:11 AM
Seen: 66 times
Last updated: 9/5/16, 4:23 AM