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: analytic.plan.fields.mixin

Compute Method: _compute_auto_account

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()]

Back to entity