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

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

--Ray Carnes--
15717
| 9 7 9
Greater Los Angeles, United States
--Ray Carnes--

Senior Odoo Analyst

OpenERP 6.1, 7.0 and Odoo 8.0, 9.0 (Since 2012)

Completed Functional and Technical Training.

Major Skills:

  • Needs Discovery and Requirements Analysis;

  • Function and Technical Specifications;

  • Project Planning;

  • Prototyping and Proof of concepts;

  • Data migration;

  • Configuration & Customization (UI and modules);

  • Integration - data, business logic and service levels;

  • Training and Knowledge transfer;

  • Go Live support;

  • Help desk;

  • Version Migration.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

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.

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