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

Module: Project Task Analytic Propagation

Entity: account.analytic.line

Compute Method: _compute_account_id

Inputs Method Outputs
  • task_id
  • task_id.analytic_account_id
"""Change the analytic account non billed lines."""
timesheet_ids = self.filtered(
            lambda t: not t.is_so_line_edited
            and t._is_not_billed()
            and t.task_id.analytic_account_id
        )
for timesheet in timesheet_ids:
            timesheet.account_id = timesheet.task_id.analytic_account_id

Back to entity