Skip to Content
Home Sales Sale Order Cost Tracking
Sale Order Cost Tracking

Sale Order Cost Tracking

Track vendor costs on Sales Orders with direct billing

v19.0.1.0.0 AlshayebCo Sales

Direct vendor cost tracking on sales orders with margin calculation and auto-billing

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
FieldTypeInfo
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

Technical Details

Technical Name sale_costs_alshayeb
Version 19.0.1.0.0
License LGPL-3

Security

Sales user access

Dependencies

sale_management account