Odoo Help

Welcome!

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.

0

Message/Email on Modification

By
Peter
on 10/31/16, 10:53 AM 144 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!

2
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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 10/31/16, 10:53 AM
Seen: 144 times
Last updated: 11/2/16, 10:35 AM