~camptocamp/c2c-financial-addons/6.1-account-credit-management-devel

« back to all changes in this revision

Viewing changes to account_credit_management/credit_management_demo.xml

  • Committer: nicolas.bessi at camptocamp
  • Date: 2012-06-14 09:32:52 UTC
  • Revision ID: nicolas.bessi@camptocamp.com-20120614093252-r5ca6wbk739n0ljb
[ADD] mail support

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
    <record id="email_template_credit_management_base" model="email.template">
6
6
      <field name="name">Credit Management demo mail</field>
7
7
      <field name="email_from">noreply@localhost</field>
8
 
      <field name="subject">Credit Management Invoice (${object.profile_rule_id.level or 'n/a' })</field>
 
8
      <field name="subject">Credit Management Invoice (${object.current_profile_rule.level or 'n/a' })</field>
9
9
      <field name="email_to">${object.get_mail() or  ''}</field>
10
10
      <field name="model_id" ref="model_credit_management_communication"/>
11
11
      <field name="auto_delete" eval="True"/>
12
12
      <field name="body_html"><![CDATA[
13
13
      <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); ">
14
14
 
15
 
      <p>Dear {object.name and ' ' or ''},</p>
 
15
      <p>Dear {object.partner_id.name and ' ' or ''},</p>
16
16
 
17
17
      <p>Your text here</p>
18
18
 
19
19
      <b>Summary:</b>
20
20
      <table>
21
21
      <tr>
22
 
      <td>date due:</td> <td>${object.date_due}</td>
23
 
      </tr>
24
 
      <tr>
25
 
      <td>Amount due:</td> <td>${object.amount_due}</td>
26
 
      </tr>
27
 
      <tr>
28
 
      <td>Amount balance:</td> <td>${object.amount_balance}</td>
29
 
      </tr>
30
 
      %if object.invoice_id:
31
 
      <tr>
32
 
      <td>Invoice number:</td> <td>object.invoice_id.number</td>
33
 
      </tr>
 
22
        <th>date due:</th>
 
23
        <th>date due:</th>
 
24
         <th>Amount due:</th>
 
25
         <th>Amount balance:</th>
 
26
         <th>Invoice number:</th>
 
27
      </tr>
 
28
%for line in object.credit_lines:
 
29
      <tr>
 
30
        <td>${line.date_due}</td>
 
31
        <td>${line.amount_due}</td>
 
32
        <td>${line.balance_due}</td>
 
33
      %if line.invoice_id:
 
34
          <td>${line.invoice_id.number}</td>
 
35
      %else:
 
36
          <td>n/a</td>
34
37
      %endif
35
 
      </td
 
38
%endfor
 
39
      </table>
36
40
 
37
41
 
38
42
      If you have any question, do not hesitate to contact us.
47
51
      % if object.company_id.street:
48
52
      ${object.company_id.street or ''}
49
53
      % endif
 
54
 
50
55
      % if object.company_id.street2:
51
56
      ${object.company_id.street2}
52
57
      % endif