account_invoice_margin_sale
Propagates sale order purchase prices to invoice margin computation while excluding down payments.
Key Features
- sale.order.line: Propagates the purchase price from a sale order line onto the generated invoice line to preserve cost for margin calculations.
- account.move: Excludes invoice lines linked to down payment sale lines when determining which lines are considered for margin analysis.
- account.move.line: Resets margin figures to zero on invoice lines tied to down payment sale lines before running the normal margin computation.