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