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

Module: Expenses

Entity: hr.expense.sheet

Compute Method: _compute_amount

View 18.0
Inputs Method Outputs
  • expense_line_ids
  • total_amount
  • total_tax_amount
- for sheet in self:
-             sheet.total_amount = sum(sheet.expense_line_ids.mapped('total_amount'))
-             sheet.total_tax_amount = sum(sheet.expense_line_ids.mapped('tax_amount'))
-             sheet.untaxed_amount = sheet.total_amount - sheet.total_tax_amount
  • total_amount
  • total_tax_amount
  • untaxed_amount

Back to entity