Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Commissions
Entity: commission.mixin
Compute Method: _compute_commission_status
| Inputs | Method | Outputs |
|---|---|---|
|
- for line in self: - if line.commission_free: - line.commission_status = _("Comm. free") - elif len(line.agent_ids) == 0: - line.commission_status = _("No commission agents") - elif len(line.agent_ids) == 1: - line.commission_status = _("1 commission agent") - else: - line.commission_status = _("%s commission agents") % ( - len(line.agent_ids), - ) |
|
