← Back to team overview

openerp-connector-community team mailing list archive

Re: Trying to design a connector

 

hi

On 05.01.2015 05:12, Ron wrote:
> 
> #1: This seems pretty straightforward, and the docs do help me there,
> there is only one thing: how do I get notified of record creation,
> updates, and deletions?

what you need is Events
http://odoo-connector.com/guides/code_overview.html#events

> #2: I don't think a connector can just start a background process which
> listens to a port, or can it? Maybe create another thread? I am thinking
> of a zeromq or websockets (autobahn) port. If yes, how can I set it up,
> if not, what are the alternatives?

It is not clear, if you want to "pull" or "push".
- Pull means, your openerp server search the data in the external
source. So you can use Jobs and Backends. To make a connection to the
remote source.
http://odoo-connector.com/guides/code_overview.html#jobs

- push means your external source pushs data into odoo. Then you don't
use the connector, you can use the json-rpc from odoo.

I recomment pull aproche.

Kind Regards

Markus

-- 
Dipl.-Comp.-Math. Markus Schneider
Softwareentwickler

initOS GmbH & Co. KG
An der Eisenbahn 1
21224 Rosengarten

Mobil:   +49 (0)172 2303699
Phone:   +49 (0)4105 5615613
Fax:     +49 (0)4105 5615610

Email:   markus.schneider@xxxxxxxxxx
Web:     http://www.initos.com

Geschäftsführung:
Dipl. Wirt.-Inf. Frederik Kramer & Dipl.-Ing. (FH) Torsten Francke
Haftende Gesellschafterin: initOS Verwaltungs GmbH

Sitz der Gesellschaft: Rosengarten – Klecken
Amtsgericht Tostedt, HRA 201840
USt-IdNr: DE 275698169
Steuer-Nr: 15/205/21402


References