Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Account commissions OCA

Entity: account.move

Compute Method: _compute_commission_total

Inputs Method Outputs
  • agent_ids
for record in self:
            record.commission_total = 0.0
            for line in record.line_ids:
                record.commission_total += sum(x.amount for x in line.agent_ids)

Back to entity