Hello guys,
I am trying to make a field to a related field.
I am taking project_id.company_id.name and I am trying to put this into an existing field inside timesheets.
But when defining this into related='project_id.company_id.name' or 'project_id.company_id' ,, Odoo either crashes or I get an error
KeyError: 'Field project_id referenced in related field definition account.analytic.line.company_id does not exist.'
Any ideas ?
also this is the field definition
company_id= fields.Many2one('res.company', string='Company', related='project_id.company_id', required=True, readonly=False)