Monday, March 25, 2024
1 change · 17.0
New functionality added to Odoo
Remote webhooks can now create new records when no target record is specified, using the incoming request data for the configured model. This makes integrations more flexible by allowing external systems to add records in Odoo automatically.
Original PR description
Description of the issue/feature this PR addresses: allow direct record creation through remote webhooks Current behavior before PR: It is not possible to trigger the creation of a new record through an Odoo webhook. Desired behavior after PR is merged: If no "Target record" is set we take the payload from the remote webhook call and automatically push these values as a `.create()` call to the model configured on the webhook --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr