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

Hi, i'm im creating sale_order_line on Odoo 13 with 

self.env['sale.order.line'].create(vals)

But Odoo automaticaly creates stock_picking and stock_move after creating sale_order_line.


I actually delete stock_picking after the creation,

but is there a way to not create stock_picking  intead of create and delete ?



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

Odoo will automatically create stock moves and a stock picking for sale order lines with deliverable products when the order is confirmed, or on line creation if the order is already confirmed.

If you are not wanting the stock picking at all, just set the product to a service and it won't need delivery.

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

If you don't need to manage the stock of your products, just don't install the Inventory app.

Ảnh đại diện
Huỷ bỏ