Odoo Sales Module
Odoo Overview → Sales
Tổng quan
Module Sales trong Odoo quản lý toàn bộ quy trình bán hàng từ quote đến invoice.
Flow chính
- Quotation →
sale.ordertrạng tháidraft - Confirm → Tạo delivery order (
stock.picking) - Deliver → Hoàn thành picking
- Invoice → Tạo
account.move
Models chính
| Model | Mô tả |
|---|---|
sale.order | Đơn hàng |
sale.order.line | Dòng đơn hàng |
sale.team | Tổ bán hàng |
sale.subscription | Hợp đồng định kỳ |
API access
# XML-RPC example
sale_order = models.execute_kw(
db, uid, password, 'sale.order', 'create', [{
'partner_id': customer_id,
'order_line': [(0, 0, {
'product_id': product_id,
'product_uom_qty': 1,
'price_unit': 1000000
})]
}])Links liên quan
- Odoo CRM → Lead to Quote flow
- Odoo Inventory → Sales → Delivery
- Odoo Accounting VN → Sales → Invoice
- Odoo XML-RPC API → Programmatic access