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

Compute Method: _compute_currency_id

View 18.0 View 20.0
Inputs Method Outputs
  • product_has_cost
  • state
  • company_currency_id
for expense in self:
-             if expense.product_has_cost and expense.state in {'draft', 'reported'}:
+             if expense.product_has_cost and expense.state == 'draft':
                expense.currency_id = expense.company_currency_id
  • currency_id

Back to entity