Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2488 Weergaven

Hi everyone,

We're looking for a way to write data to an external database each time a record is created.

- I tried setting up Zapier to add a trigger each time a record is created, but Zapier doesn't seem to be compatible with Odoo.sh

- Then explored the possibility of connecting to the Odoo instance via the XML-RPC API, but I guess with this option I should be querying the Odoo instance in an infinite loop to check for new records?

- Trying now to just edit the Python code of the model to add a small script that sends the data to the external database each time a record is created. Is it possible to edit the source code of a model created with Studio on Odoo.sh?

Thanks!

Avatar
Annuleer

Any record or a specific type of record?

Auteur

Hi Oliver, this is for a specific type of record

Beste antwoord

Would not db replication solve this more easily?

###

The process of copying data from a PostgreSQL database server to another server is called PostgreSQL Replication. The source database server is usually called the Master server, whereas the database server receiving the copied data is called the Replica server.

Avatar
Annuleer
Auteur

Hi Kim, that will definitely solve the problem. Can this be done with Odoo.sh?

Gerelateerde posts Antwoorden Weergaven Activiteit
1
dec. 24
1257
1
jun. 19
4490
1
jun. 25
518
2
aug. 24
1924
1
apr. 19
4460