Odoo Help

0

What's the best way to subscribe to changes to models in odoo from an external system?

api
By
Steve Fenigstein
on 4/28/16, 3:34 PM 466 views

We'd like to subscribe to changes of customers and products without slamming the api for all changes on a periodic basis.  Automated action would have worked well, but we can't use python requests.  What do you recommend?

0
Steve Fenigstein
On 6/16/16, 5:30 PM

Odoo allows you to send a message to an email based on change, but haven't added the ability to send that same message to a url on change.  Doesn't seem like it would take much to add that, but sounds like it's not on the roadmap.  So in the mean time we've created an email to listen for these changes and send the message to the url we were hoping odoo would.  Pretty much gets the job done, with a couple hoops to jump through.

0
Ray Carnes
On 4/28/16, 11:52 PM

Can  you create your own model and use automated actions to update it? The model would then have full Python capabilities to do what you need to contact your other system.

0
Holden Rehg
On 5/9/16, 12:56 AM

It may not be ideal, but it wouldn't be too difficult to implement a generic sub/pub model for something like this.


1. Create your own Event model for storing changes to other models in the system based on their type and primary id (plus any other extra information in case you want to get more detailed with changes).

2. Use automated actions on other models to push to your Event table.

3. Read out Events from the external system, and pull relevant changes.

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: 4/28/16, 3:34 PM
Seen: 466 times
Last updated: 6/16/16, 5:31 PM