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

Module: Analytic Accounting

Entity: account.analytic.line

Compute Method: _compute_auto_account

View 17.0
Inputs Method Outputs
- plan = self.env['account.analytic.plan'].browse(self.env.context.get('analytic_plan_id'))
- for line in self:
-             line.auto_account_id = bool(plan) and line[plan._column_name()]
  • auto_account_id

Back to entity