This question has been flagged
2 Replies
3167 Views

I tried just using normal dot notation which doesn't work:

<tree string="Scheduled Emails">
  <field name="order_id.partner_id"/>
</tree>

How would I display the partner_id in the view?

Avatar
Discard
Best Answer

Kit, you can add a related column into the model and display that related column.  So in your case, add the following:

'partner_id': fields.related('order_id', 'partner_id', type='many2one', relation='res.partner', string='Partner')

then include the new field (partner_id) in your view.  Note that I'm just guessing that you are referring to a res.partner model.  If not, please update the above code accordingly.

Avatar
Discard
Best Answer

s you can

Avatar
Discard