This question has been flagged
1 Reply
4593 Views

In a list view, I'm trying to display a field from another object. V7.

I have tried different things but no luck so far, like :

  1. 'inventor_country_id': fields.related('inventor_id','country', readonly=True, type='many2one', relation='res.country', string='Country')
  2. 'inventor_country_id': fields.text(related="...

Does somebody have an exemple so I can see exactly how it works?

Could we do it realtime with the Developer's mode. If yes, how?

Thanks!

Avatar
Discard
Author Best Answer

OK... found the problem:

field.related works fine when setup correctly. In my code, the type was not set correctly!

Avatar
Discard