report_invoice_custom.xml 1.4 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>
8
        <t t-if="o.partner_id.prefered_payment == 'betabank'">
santi's avatar
santi committed
9
10
11
12
13
14
15
          <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>
16
        <t t-if="o.partner_id.prefered_payment == 'boc'">
santi's avatar
santi committed
17
18
19
20
21
22
          <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>
santi's avatar
santi committed
23
24
      </div>
    </xpath>
25
26
27
28
29
</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
30
31
32
</template>
</data>
</openerp>