2013-12-02 12:34:37 +00:00
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
<!--Email template -->
|
|
|
|
<record id="email_template_sale_quote" model="email.template">
|
|
|
|
<field name="name">Sales Quotation - Send by Email (Quote)</field>
|
|
|
|
<field name="email_from">${object.user_id.email or ''}</field>
|
|
|
|
<field name="subject">${object.company_id.name} ${object.state in ('draft', 'sent') and 'Quotation' or 'Order'} (Ref ${object.name or 'n/a' })</field>
|
|
|
|
<field name="partner_to">${object.partner_invoice_id.id}</field>
|
|
|
|
<field name="model_id" ref="website_sale_quote.model_sale_order"/>
|
|
|
|
<field name="auto_delete" eval="True"/>
|
|
|
|
<field name="body_html"><![CDATA[
|
|
|
|
<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); ">
|
|
|
|
|
|
|
|
<p>Hello ${object.partner_id.name},</p>
|
|
|
|
|
|
|
|
<p>Here is your ${object.state in ('draft', 'sent') and 'quotation' or 'order confirmation'} from ${object.company_id.name}: </p>
|
|
|
|
|
2013-12-12 05:15:25 +00:00
|
|
|
<% set signup_url = object.quote_url %>
|
2013-12-02 12:34:37 +00:00
|
|
|
<p>
|
|
|
|
You can access this document and pay online via our Customer Portal:
|
|
|
|
</p>
|
|
|
|
<a style="display:block; width: 150px; height:20px; margin-left: 120px; color: #DDD; font-family: 'Lucida Grande', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: bold; text-align: center; text-decoration: none !important; line-height: 1; padding: 5px 0px 0px 0px; background-color: #8E0000; border-radius: 5px 5px; background-repeat: repeat no-repeat;"
|
|
|
|
href="${signup_url}">View ${object.state in ('draft', 'sent') and 'Quotation' or 'Order'}</a>
|
|
|
|
</div>
|
|
|
|
]]></field>
|
|
|
|
</record>
|
|
|
|
</data>
|
|
|
|
</openerp>
|