Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
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?
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.
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
|Asked: 4/28/16, 3:34 PM|
|Seen: 432 times|
|Last updated: 6/16/16, 5:31 PM|