forked from JayVora-SerpentCS/vertical-isp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contract_isp_invoice_data.xml
61 lines (55 loc) · 1.9 KB
/
contract_isp_invoice_data.xml
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
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="account_payment_term_end_of_month" model="account.payment.term">
<field name="name">End of Month</field>
<field name="note">End of current month</field>
</record>
<record id="account_payment_term_end_of_month_line" model="account.payment.term.line">
<field name="value">balance</field>
<field eval="0" name="days"/>
<field eval="-1" name="days2"/>
<field eval="account_payment_term_end_of_month" name="payment_id"/>
</record>
</data>
<data noupdate="1">
<record id="email_template_contract_isp_invoice_close" model="email.template">
<field name="name">Contract close</field>
<field name="email_from">${user.email or ''}</field>
<field name="subject">Contract n. ${object.name}</field>
<field name="email_to">object.manager_id.email or ''</field>
<field name="lang">${user.lang}</field>
<field name="model_id" ref="analytic.model_account_analytic_account"/>
<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>Dear Accountant,</p>
<p>
Please take notice that the following contract is being terminated.
</p>
<br/>
<table>
<tr>
<td>Contract:</td><td>${object.name}</td>
</tr>
<tr>
<td>Partner:</td><td>${object.partner_id.name}</td>
</tr>
<tr>
<td>Close date:</td><td>${object.close_date}</td>
</tr>
</table>
<h3>Reasons/Comments</h3>
<p>${object.close_reason}</p>
<br/>
Best Regards,
<br/>
<br/>
${user.name}
<br/>
<br/>
</div>
]]></field>
</record>
</data>
</openerp>