Overview
Tracks vendor costs directly on sales orders without requiring purchase orders. Adds a Costs tab where users record vendor expenses, then generate vendor bills directly. Automatically calculates margin (revenue minus costs) as amount and percentage.
Key Features
- Add cost lines to Sales Orders (Costs tab)
- Create vendor bills from cost lines (single or grouped by vendor)
- Margin analysis (amount and percentage)
- Full traceability between costs and bills
- Smart navigation between Sales Orders and Vendor Bills
Data Models
Sale Order Cost Line
sale.order.cost.line| Field | Type | Info |
|---|---|---|
Vendor
vendor_id
|
Many2one | Cost vendor |
Product
product_id
|
Many2one | Cost product |
Amount
amount
|
Monetary | Line total |
Billing Status
billing_status
|
Selection | Bill status |
Actions:
Create Bill
View Bills
Extends Existing Models
sale.order
Adds 4 fields:
Cost Lines (One2many)
Cost Total (Monetary)
Margin Amount (Monetary)
Margin % (Float)
Adds actions: action_create_cost_bills