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 generate API notifications when status changes?

on 2/4/14, 6:02 PM 871 views

How to send a notification through Rest or API, when there is a status change.

For example, if a PO is received, a SO invoiced, or a Product created

Ram Peri
On 2/28/14, 1:22 AM

The Rest and xmlrpc are for sync communication i.e. you send a request and get back a response.

What you are asking about is async communication i.e. the server sends you a notification whenever there is an event (create on po/so here)

It is also not clear where you want to publish this event to, i.e. do you want to just send an emai?

You may need to write your own solution here and it is not very difficult. 1. Setup a workflow where you intercept all create events 2. From the workflows, publish the event and bind it to a call back. 3. From the callback, if your processing is simple such as sending an email, there is no problem. But, if you need to notify an end point that is on an external network, I suggest using the pub/sub model and publish this event to a queue such as mqseries (or an opensource alternative)

I am providing more information than needed, since it may be useful for other readers.

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: 2/4/14, 6:02 PM
Seen: 871 times
Last updated: 3/16/15, 8:10 AM