Hello:
We have a use case where we have two physical locations for processing orders.
1. The first warehouse is our own warehouse where we have inventory being updated based on purchase invoices.
2. The second warehouse is vendor warehouse where the inventory is purchased by vendor and an invoice is sent to us for all orders being shipped in a month.
We have created two warehouses in Odoo 17 and set Routes to create delivery orders based on product warehouse locations.
Problem scenario: -
1. We need to use Automations & webhook to allow vendor to update data into Odoo for any inventory they do inbound/outbound in their POS system. Vendor would trigger the Automation/webhook as and when there is a change from their end.
For this we created an Automation rule in Inventory.
Model: Change Product Quantity
Trigger : On webhook
URL: webhook URLwith secret.
Actions to do: Update Product > Stock Quant > Location > Location Name to Vendorwarehouse.
We are not sure what parameters vendors needs to pass on calling webhook to update the stock quantity. Need help here.
2. We need to send Order reference number, SKU & Quantity to vendor via Automation/webhook for products from their warehouse upon sales order creation.
For this we created an Automation rule in Sales as below:-
Model: Sales Order
Trigger : State is set to > Sales Order
Actions : Send Webhook notification
URL : Vendor system webhook URL.
Action: Client Order Reference & .......
We are not sure how to select fields which correspond to Vendor warehouse product only and not for all products to send SKU & Quantity on webhook.
Any help on this is appreciated.