report_invoice_custom.xml 1.97 KB
Newer Older
santi's avatar
santi committed
1
2
3
4
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_invoice_payment_instructions" inherit_id="account.report_invoice_document">
5
6
    <xpath expr="//div[@class='col-xs-4 pull-right']" position="before">
      <div class="pull-left">
santi's avatar
santi committed
7
        <h4>Payment instructions:</h4>
santi's avatar
santi committed
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
        <t t-if="o.user_id.partner_id.prefered_payment == 'betabank'">
          <p>Name: Betacoop eG<br/>
          IBAN: DE41 4306 0967 1152 3659 00<br/>
          BIC: GENODEM1GLS<br/>
          Bank: GLS Gemeinschaftsbank eG<br/>
          Reference: <span t-field="o.user_id.partner_id.betabank_id"/>/<span t-field="o.number"/></p>

          <p>Please, is very important you write the reference in the bank transfer. Thank you for your attention.</p>
        </t>
        <t t-if="o.user_id.partner_id.prefered_payment == 'boc'">
          <p>Name: Bank of the Commons<br/>
          IBAN: IT99 9999 9999 9999 9999 000<br/>
          BIC: BOTC<br/>
          Bank: Bank of the Commons<br/>
          Reference: <span t-field="o.user_id.partner_id.boc_id"/>/<span t-field="o.number"/></p>
        </t>
        <t t-if="o.user_id.partner_id.prefered_payment == 'spark'">
          <p>Send the amount to Spark <span t-field="o.user_id.partner_id.spark_id"/></p>
        </t>
        <t t-if="o.user_id.partner_id.prefered_payment == 'faircoin'">
          <p>Send the amount in FairCoin to <span t-field="o.user_id.partner_id.faircoin_address"/></p>  
        </t>
santi's avatar
santi committed
30
31
      </div>
    </xpath>
santi's avatar
santi committed
32
<!--
santi's avatar
santi committed
33
34
    <xpath expr="//div/div[@class='col-xs-5 col-xs-offset-7']" position="inside">
        <div class="pull-left" t-if="o.partner_id.vat">TIN: <span t-field="o.partner_id.vat"/></div>
35
    </xpath>
santi's avatar
santi committed
36
-->
37
38
39
40
41
</template>
<template id="report_external_layout_extends" inherit_id="report.external_layout_header">
    <xpath expr="//div/div/div[@t-field='company.partner_id']" position="before">
        <div class="pull-left" >Register number: <span t-field="company.company_registry" /></div>
    </xpath>
santi's avatar
santi committed
42
43
44
</template>
</data>
</openerp>