Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1934 Представления

Hi All,

Modul automatic tasks:

1. check db entries

2. if certain conditions send post request outside of odoo, to another API
( integration between our shop and our supplier).

How many ways is there to do it?
What's the cheapest option to make the module 
check database and send post request to other API 3 times/ day?

Would you be so kind and include a link or two?

Thanks in Advance

Аватар
Отменить
Лучший ответ

This is an excellent scenario to build a Cron Job to do exactly that.

You could check this tutorial

https://odoo-development.readthedocs.io/en/latest/odoo/models/ir.cron.html

Аватар
Отменить

It's the recommended way

Автор

I also found this (odoo 16)
https://www.cybrosys.com/blog/automated-actions-automation-in-the-odoo-16-erp
My concern is, is this recommended code automation for sending requests in the background to another api.
It says, that the job is related to some model, and all I want is to write some code in the background.
I'll try it and report back nevertheless, experiment. Thank you.

Related Posts Ответы Просмотры Активность
1
мая 25
2460
1
апр. 25
3478
1
апр. 25
4307
1
апр. 25
1784
4
мар. 25
6895