summaryrefslogtreecommitdiff
path: root/addons/website_quote/data/website_quotation_data.xml
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2014-01-26 00:25:25 +0100
committerFabien Pinckaers <fp@tinyerp.com>2014-01-26 00:25:25 +0100
commit6b7b7218145ca3068c54a83aa69e4d31d935c5b0 (patch)
tree08e1728bd08cde6c0dd2d11b84942e0fb9716586 /addons/website_quote/data/website_quotation_data.xml
parent7d892584d88fc7f0d6375216171e31d0ff2c9eae (diff)
[IMP] email template for quote
bzr revid: fp@tinyerp.com-20140125232525-f7yax4yaxdbk0z6c
Diffstat (limited to 'addons/website_quote/data/website_quotation_data.xml')
-rw-r--r--addons/website_quote/data/website_quotation_data.xml80
1 files changed, 70 insertions, 10 deletions
diff --git a/addons/website_quote/data/website_quotation_data.xml b/addons/website_quote/data/website_quotation_data.xml
index 0b539140a95..d0d07afc4e3 100644
--- a/addons/website_quote/data/website_quotation_data.xml
+++ b/addons/website_quote/data/website_quotation_data.xml
@@ -7,18 +7,78 @@
<record id="sale.email_template_edi_sale" model="email.template">
<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); ">
+<div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
- <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>
+ <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>
- <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="/quote/${object.id}/${object.access_token}">View ${object.state in ('draft', 'sent') and 'Quotation' or 'Order'}</a>
- </div>
+ <p style="border-left: 1px solid #8e0000; margin-left: 30px;">
+ &nbsp;&nbsp;<strong>REFERENCES</strong><br />
+ &nbsp;&nbsp;Order number: <strong>${object.name}</strong><br />
+ &nbsp;&nbsp;Order total: <strong>${object.amount_total} ${object.pricelist_id.currency_id.name}</strong><br />
+ &nbsp;&nbsp;Order date: ${object.date_order}<br />
+ % if object.origin:
+ &nbsp;&nbsp;Order reference: ${object.origin}<br />
+ % endif
+ % if object.client_order_ref:
+ &nbsp;&nbsp;Your reference: ${object.client_order_ref}<br />
+ % endif
+ % if object.user_id:
+ &nbsp;&nbsp;Your contact: <a href="mailto:${object.user_id.email or ''}?subject=Order%20${object.name}">${object.user_id.name}</a>
+ % endif
+ </p>
+ <p>
+ You can view your quotation online:
+ </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="/quote/${object.id}/${object.access_token}">View ${object.state in ('draft', 'sent') and 'Quotation' or 'Order'}</a>
+
+ % if object.paypal_url:
+ <br/>
+ <p>It is also possible to directly pay with Paypal:</p>
+ <a style="margin-left: 120px;" href="${object.paypal_url}">
+ <img class="oe_edi_paypal_button" src="https://www.paypal.com/en_US/i/btn/btn_paynowCC_LG.gif"/>
+ </a>
+ % endif
+
+ <br/>
+ <p>If you have any question, do not hesitate to contact us.</p>
+ <p>Thank you for choosing ${object.company_id.name or 'us'}!</p>
+ <br/>
+ <br/>
+ <div style="width: 375px; margin: 0px; padding: 0px; background-color: #8E0000; border-top-left-radius: 5px 5px; border-top-right-radius: 5px 5px; background-repeat: repeat no-repeat;">
+ <h3 style="margin: 0px; padding: 2px 14px; font-size: 12px; color: #DDD;">
+ <strong style="text-transform:uppercase;">${object.company_id.name}</strong></h3>
+ </div>
+ <div style="width: 347px; margin: 0px; padding: 5px 14px; line-height: 16px; background-color: #F2F2F2;">
+ <span style="color: #222; margin-bottom: 5px; display: block; ">
+ % if object.company_id.street:
+ ${object.company_id.street}<br/>
+ % endif
+ % if object.company_id.street2:
+ ${object.company_id.street2}<br/>
+ % endif
+ % if object.company_id.city or object.company_id.zip:
+ ${object.company_id.zip} ${object.company_id.city}<br/>
+ % endif
+ % if object.company_id.country_id:
+ ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
+ % endif
+ </span>
+ % if object.company_id.phone:
+ <div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">
+ Phone:&nbsp; ${object.company_id.phone}
+ </div>
+ % endif
+ % if object.company_id.website:
+ <div>
+ Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
+ </div>
+ %endif
+ <p></p>
+ </div>
+</div>
]]></field>
</record>