In the Sales, there's a s Send By Email button. In the template of the email, there's a field 'object'. Where does this come from? I checked action_quotation_send but there's no object params passed. This is the email template it automatically referenced to the field 'object'
<record id="mail_template_sale_confirmation" model="mail.template"><field name="name">Sales: Order Confirmation</field>
<field name="model_id" ref="sale.model_sale_order"/>
<field name="subject">{{ object\.company_id\.name\ \}\}\ \{\{\ \(object\.get_portal_last_transaction\(\)\.state\ ==\ \&\#39;pending\&\#39;\)\ and\ \&\#39;Pending\ Order\&\#39;\ or\ \&\#39;Order\&\#39;\ \}\}\ \(Ref\ \{\{\ object\.name\ or\ \&\#39;n/a\&\#39;\ \}\}\)\</field\>
\ \ \ \ \ \ \ \ \ \ \ \ \<field\ name=\"email_from\"\>\{\{\ \(object\.user_id\.email_formatted\ or\ user\.email_formatted\)\ \}\}\</field\>
\ \ \ \ \ \ \ \ \ \ \ \ \<field\ name=\"partner_to\"\>\{\{\ object.partner_id.id }}</field>
<field name="description">Sent to customers on order confirmation</field>
<field name="body_html" type="html">
</field>
</record>