Hi all, I would like to add the customer name to the Notification E-Mail template for sale orders. While I see that the message model stores the document id in res_id, I don't know how to access data stored in another model. Searching the forum and looking at API documentation made me hope something like this would work:
${object.env['sale.order'].search([('id', '=', res_id)])[0].partner_id}
Unfortunately, it doesn't. So any help is greatly appreciated.