Commit 3338e742 authored by santi's avatar santi
Browse files

Add Register Number in the header layout, the partner TIN and payment...

Add Register Number in the header layout, the partner TIN and payment instructions on the invoice report
parent 9a347bc6
......@@ -2,7 +2,7 @@
'name': 'Partner FreedomCoop Custom',
'depends': ['base','account'],
'depends': ['base','account','report'],
'author': 'Santi Punto0 - FairCooop',
'category': 'Base',
'description': """
......@@ -2,17 +2,25 @@
<template id="report_invoice_payment_instructions" inherit_id="account.report_invoice_document">
<!-- <xpath expr="//table/tbody[@class='invoice_tbody']" position="after"> -->
<xpath expr="//div/div[@class='col-xs-4 pull-right']" position="after">
<xpath expr="//div[@class='col-xs-4 pull-right']" position="before">
<div class="pull-left">
<h4>Payment instructions:</h4>
<p>Name: Betacoop eG<br/>
IBAN: DE41 4306 0967 1152 3659 00<br/>
Bank: GLS Gemeinschaftsbank eG<br/>
Concept: <span t-field="o.partner_id.betabank_id"/>/<span t-field="o.number"/></p>
Reference: <span t-field="o.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>
<xpath expr="//div[@class='col-xs-5 col-xs-offset-7']" position="inside">
<span t-if="o.partner_id.vat">TIN: <span t-field="o.partner_id.vat"/></span>
<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>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment