Odoo Help

0

Message/Email on Modification

By
Peter
on 10/31/16, 10:53 AM 217 views

We want to send Messages/Emails to single Users or all Followers of an Object, when one field of an object has been modified. For example, if the state of a Delivery Order has changed to "delivered". 

How can we do that? With automated Actions/Server Actions? Thanks a lot!

You are right, you may create an Automated action rule for your object which runs a Server action to send email, which can be set to run on record creation/updation. You can do this from front end. I will try to share some screenshots.

Akhil P Sivan
on 2/14/17, 4:45 AM
3

Ameera PP

--Ameera PP--
1186
| 5 4 7
Bangalore, India
--Ameera PP--


Ameera PP
On 11/2/16, 10:35 AM

In create function,check if there is anything in 'vals', then send mail..

def create(self, cr, uid, vals, context=None):
        if vals:
           ////..................Code to send mail...................///    

        return super(AccountAnalyticLine, self).create(cr, uid, vals, context=context)

Thanks, and how can I check if the modified field==state ?

Peter
on 11/16/16, 8:24 AM

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

Register

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)

Stats

Asked: 10/31/16, 10:53 AM
Seen: 217 times
Last updated: 2/14/17, 4:46 AM