commission_oca
Provides the core infrastructure in Odoo for managing commission agreements, agents, and settlement workflows.
Key Features
- commission: Lets administrators configure commission schemes with fixed or section-based rates and choose between gross amount or margin as the calculation base.
- commission.section: Supports tiered commission brackets with validation ensuring each section's range remains coherent.
- res.partner: Enables marking contacts as commission agents, assigning default commissions and settlement frequencies, and linking those agents to customer records.
- product.template: Adds a commission-free flag so specific products never generate agent commissions.
- commission.mixin: Provides a reusable base for business documents to inherit agents from partners, maintain commission status, and open agent-editing dialogs.
- commission.line.mixin: Computes each agent’s commission using product margins when required while preventing duplicate agent assignments on a document.
- commission.settlement: Tracks agent settlements with totals, company and currency context, chatter integration, and state control for manual adjustments.
- commission.settlement.line: Stores settlement lines ready for extension-specific details while keeping amounts editable and inherited metadata consistent.
- commission.make.settle: Guides users through settling commissions up to a given date, grouping source lines by company and currency, and creating or reusing settlement records automatically.