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

Module: Sales Timesheet

Entity: account.analytic.line

Compute Method: _compute_so_line

View 19.0 View 20.0
Inputs Method Outputs
  • project_id
  • project_id.allow_billable
- for timesheet in self.filtered(lambda t: not t.is_so_line_edited and t._is_not_billed()):  # Get only the timesheets are not yet invoiced
-             timesheet.so_line = timesheet.project_id.allow_billable and timesheet._timesheet_determine_sale_line()
  • so_line

Back to entity