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

Hello!

I'm trying to find where is the stock.picking created when confirmed a sale.order via Python Odoo 18.


Thanks in advance!

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

Hi,

In Odoo 18, the stock.picking record is created when a sale.order is confirmed through the method action_confirm() in the sale.order model. Specifically, when you confirm a sale order, Odoo triggers the creation of a corresponding stock picking to handle the delivery process. This is done via the stock.picking creation logic in the sale.order model, which internally calls the stock.picking.create() method from the Stock module, with the relevant details about the products and quantities to be delivered. This process is part of the core flow and can be found in the sale_stock module, which integrates sales and stock management.


Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 5 23
3350
1
thg 1 25
7407
3
thg 3 25
9455
3
thg 3 15
8886
1
thg 5 25
1286