forked from OCA/sale-workflow
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsale_substate_mail_template_data.xml
More file actions
63 lines (62 loc) · 2.28 KB
/
sale_substate_mail_template_data.xml
File metadata and controls
63 lines (62 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!-- Sample Sale substate -related template -->
<record id="mail_template_data_sale_substate_wait_docs" model="mail.template">
<field name="name">Waiting for legal documents</field>
<field name="model_id" ref="sale.model_sale_order" />
<field name="subject">Reception of {{object.name}}</field>
<field name="use_default_to" eval="True" />
<field name="body_html" type="html">
<div style="margin: 0px; padding: 0px;">
<p style="margin: 0px; padding: 0px; font-size: 13px;">
Dear
<t t-out="object.partner_id.name or 'customer'">customer</t>
<br />
<br />
Thank you for your order.
<br />
In order to validate your order we need the legal documentation.
<br />
<br />
Thank you,
<br />
<t t-if="user.signature">
<br />
<t t-out="user.signature or ''" />
</t>
</p>
</div>
</field>
<field name="lang">{{ object.partner_id.lang }}</field>
<field name="auto_delete" eval="True" />
</record>
<record id="mail_template_data_sale_substate_delivery" model="mail.template">
<field name="name">In delivery</field>
<field name="model_id" ref="sale.model_sale_order" />
<field name="subject">Reception of {{object.name}}</field>
<field name="use_default_to" eval="True" />
<field name="body_html" type="html">
<div style="margin: 0px; padding: 0px;">
<p style="margin: 0px; padding: 0px; font-size: 13px;">
Dear
<t t-out="object.partner_id.name or 'customer'">customer</t>
<br />
Thank you for your order.
<br />
You order is being prepared for delivery.
You will receive a delivery tracking link to follow it.
<br />
<br />
Thank you,
<br />
<t t-if="user.signature">
<br />
<t t-out="user.signature or ''" />
</t>
</p>
</div>
</field>
<field name="lang">{{ object.partner_id.lang }}</field>
<field name="auto_delete" eval="True" />
</record>
</odoo>