title: Odoo 10 - Retrieving instance model fields in mail template
body: <p>I have the following extended model:</p>
  
  <pre class="lang-py prettyprint-override"><code>class ResPartner(models.Model):
      _inherit = 'res.partner'
  
      token = fields.Char('Change Password Token')
  
      @api.one
      def send_change_password_link(self):
              template = self.env.ref('extended_respartner.ecommerce_password_change')
              body = template.body_html
              receipt_list=[self.email]
              email_cc=[]
              email_from=self.company_id.email
              if template:
                      mail_values = {
                              'subject': template.subject,
                              'body_html': body,
                              'email_to':';'.join(map(lambda x: x, receipt_list)),
                              'email_cc':';'.join(map(lambda x: x, email_cc)),
                              'email_from': email_from,
                      }
                      create_and_send_email = self.env['mail.mail'].create(mail_values).send()
  </code></pre>
  
  <p>And the following email template:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;odoo&gt;
      &lt;record id="ecommerce_password_change" model="mail.template"&gt;
              &lt;field name="name"&gt;Password Change&lt;/field&gt;
              &lt;field name="model_id" ref="base.model_res_partner"&gt;&lt;/field&gt;
              &lt;field name="lang"&gt;${object.lang}&lt;/field&gt;
              &lt;field name="auto_delete" eval="False"/&gt;
              &lt;field name="email_from"&gt;${object.company_id and object.company_id.email or ''}&lt;/field&gt;
              &lt;field name="reply_to"&gt;${object.company_id and object.company_id.email or ''}&lt;/field&gt;
              &lt;field name="email_to"&gt;${object.email}&lt;/field&gt;
              &lt;field name="subject"&gt;Change Password ${object.token}&lt;/field&gt;
              &lt;field name="body_html"&gt;&lt;![CDATA[
                      &lt;p&gt;Dear Customer:&lt;/p&gt;
                      &lt;p&gt;This is your token: ${object.token}&lt;/p&gt;
              ]]&gt;&lt;/field&gt;
      &lt;/record&gt;
  &lt;/odoo&gt;
  </code></pre>
  
  <p>But it does not subsitute <code>${object.token}</code> by its value. Rest of headers are properly populated. Any tips?</p>