Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v17: webhook in multi-db environment #162156

Open
kmagusiak opened this issue Apr 17, 2024 · 0 comments
Open

v17: webhook in multi-db environment #162156

kmagusiak opened this issue Apr 17, 2024 · 0 comments

Comments

@kmagusiak
Copy link
Contributor

Impacted versions: v17 and onwards

Steps to reproduce:
While trying the new version, I have noticed that webhooks don't work for multi-db environments. I would like to be able to trigger the action using curl or or python requests. Can you provide an example of how to do it.

Current behavior:
Have multiple databases.
Create a webhook automation rule, for example mine is http://localhost:8069/web/hook/c289257e-b598-4276-80d8-9205a1ad7cd6
Since the database is not set, calling the URL in a new session, I get a 404 NOT FOUND error.

Expected behavior:
I should be able to call the webhook in a multi-db environment.

A possibility would be to provide the database name as an http header. A nice addition would be to be able to set a database in settings to which the calls would be routed by default.

Support ticket number submitted via odoo.com/help (optional): 3863896

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant