sale_commission_oca
Enable calculation and propagation of sales commissions from sales orders through to invoices.
Key Features
- sale.order: Computes and stores the total commission amount from all order line agents directly on the order.
- sale.order: Provides an action to regenerate order line agents so they realign with the customer’s commission configuration while the order is editable.
- sale.order: Supports searching sales orders by partner agents through a computed helper field.
- sale.order.line: Automatically assigns the customer’s agents to new lines unless the line is flagged as commission free.
- sale.order.line: Propagates each line’s agent and commission assignments to created invoice lines to keep settlements consistent.
- sale.order.line.agent: Calculates every agent’s commission amount using the order line subtotal, product, and quantity.
- sales: Adds form view controls to edit line agents inline and surfaces the commission status and totals on the order.