Yes – this became possible with version 9.
As long as Model A has a link to Model B via a many2one field, you can add a “related” field to Model A that will hold the data from Model B and allow you to display it in a view based on Model A.
Since a Delivery Order (stock.picking) has a partner_id field relating it back to res.partner, you can add show anything from res.partner via related fields on stock.picking.
· on the stock.picking model, add a new field x_partner_email:
· Field Type: char (matches the field type of email on res.partner)
· Related Field: partner_id.email
Now you can add x_partner_email to a stock.picking view and see the email address of the associated partner.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 3/25/16, 1:54 PM|
|Seen: 657 times|
|Last updated: 4/3/16, 8:44 PM|