Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2775 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hello, 

Did you find which parameter / model to use to send any stock movement to a web hook ? 

I'm also struggling to find a way to do something quite similar than you…

Thanks !

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 6 25
1669
0
thg 7 24
1229
4
thg 3 24
2757
0
thg 12 22
2636
0
thg 11 22
2072