In a v8 installation with analytic accounting feature, I have been asked to show on the analytic account form view (analytic.view_account_analytic_account_form) a link to the related project.
On the server side I have to browse the project model searching a project having as analytic account the current one, I suppose something like (I use the limit=1 since the relation between project and analytic_account is an o2o):
project = self.env['project.project'].search([('analytic_account_id', '=', self.id)], limit=1)
How could I pass this value to the view, in order to show a link?
Should I use a context? and how?