Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4282 Widoki

Hello everybody, I have a problem, I need get data from a external table of a external database for use this data in a many2one field, my problem is that the external table is getting new records and I must refresh that table in Odoo, but I don't if this is possible, anyone could help me? Thanks!!!

Awatar
Odrzuć
Najlepsza odpowiedź

you can always make a connection to that other database and refresh the table in odoo from that table there. It would be just setting up a cron which will run every 1 hour lets say, and if the cron finds new records that do not exists in the odoo table, create them. It would be as easy as that. Cheers

Awatar
Odrzuć
Autor

I finally found a solution with the dblink extension of Postgres that allows connect two different databases in the same query :)

Powiązane posty Odpowiedzi Widoki Czynność
1
kwi 18
2927
5
cze 21
23848
Odoo Table Name Rozwiązane
1
kwi 20
12908
1
sty 19
3444
5
kwi 23
16449