mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
Merge pull request #444 from onesteinbv/11_fix_account_banking_sepa_direct_debit
[11.0][FIX] account_banking_sepa_direct_debit: printing report
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
{
|
||||
'name': 'Account Banking SEPA Direct Debit',
|
||||
'summary': 'Create SEPA files for Direct Debit',
|
||||
'version': '11.0.1.0.0',
|
||||
'version': '11.0.1.0.1',
|
||||
'license': 'AGPL-3',
|
||||
'author': "Akretion, "
|
||||
"Tecnativa, "
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<template id="assets_common" name="account_banking_sepa_direct_debit pdf assets" inherit_id="web.report_assets_common">
|
||||
<xpath expr="." position="inside">
|
||||
<link href="/account_banking_sepa_direct_debit/static/src/css/report.css" rel="stylesheet"/>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<!-- QWeb Report -->
|
||||
<report
|
||||
id="report_sepa_direct_debit_mandate"
|
||||
|
||||
29
account_banking_sepa_direct_debit/static/src/css/report.css
Normal file
29
account_banking_sepa_direct_debit/static/src/css/report.css
Normal file
@@ -0,0 +1,29 @@
|
||||
.sepa_direct_debit h4 {
|
||||
margin-top: 2px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.sepa_direct_debit .under-line{
|
||||
border-bottom:1px solid;
|
||||
}
|
||||
.sepa_direct_debit input{
|
||||
vertical-align: baseline;
|
||||
}
|
||||
.sepa_direct_debit .panel-default{
|
||||
border:2px solid;
|
||||
}
|
||||
.sepa_direct_debit .panel.panel-default{
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.sepa_direct_debit .panel-body{
|
||||
padding: 2px 14px;
|
||||
}
|
||||
.sepa_direct_debit p{
|
||||
margin: 0 0 4px;
|
||||
font-size: 8px;
|
||||
}
|
||||
.sepa_direct_debit .native_lang{
|
||||
font-style: italic;
|
||||
}
|
||||
.sepa_direct_debit .native_lang_small{
|
||||
font-size: 0.8em;
|
||||
}
|
||||
@@ -4,38 +4,7 @@
|
||||
<template id="sepa_direct_debit_mandate_document">
|
||||
<t t-set="doc" t-value="doc.with_context({'lang':doc.partner_id.lang})" />
|
||||
<t t-set="is_not_english" t-value="doc.partner_id.lang and doc.partner_id.lang[:2] != 'en'" />
|
||||
<div class="page">
|
||||
<style type="text/css">
|
||||
h4 {
|
||||
margin-top: 2px;
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.under-line{
|
||||
border-bottom:1px solid;
|
||||
}
|
||||
input{
|
||||
vertical-align: baseline;
|
||||
}
|
||||
.panel-default{
|
||||
border:2px solid;
|
||||
}
|
||||
.panel.panel-default{
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.panel-body{
|
||||
padding: 2px 14px;
|
||||
}
|
||||
p{
|
||||
margin: 0 0 4px;
|
||||
font-size: 8px;
|
||||
}
|
||||
.native_lang{
|
||||
font-style: italic;
|
||||
}
|
||||
.native_lang_small{
|
||||
font-size: 0.8em;
|
||||
}
|
||||
</style>
|
||||
<div class="page sepa_direct_debit">
|
||||
<div class="row mt0">
|
||||
<div class="col-xs-3">
|
||||
<img t-if="doc.company_id.logo" t-att-src="'data:image/png;base64,%s' % doc.company_id.logo" style="max-height: 45px;"/>
|
||||
@@ -269,9 +238,11 @@
|
||||
</template>
|
||||
|
||||
<template id="sepa_direct_debit_mandate">
|
||||
<t t-call="report.html_container">
|
||||
<t t-call="web.html_container">
|
||||
<t t-foreach="docs" t-as="doc">
|
||||
<t t-call="account_banking_sepa_direct_debit.sepa_direct_debit_mandate_document" t-lang="doc.partner_id.lang"/>
|
||||
<t t-call="web.basic_layout">
|
||||
<t t-call="account_banking_sepa_direct_debit.sepa_direct_debit_mandate_document" t-lang="doc.partner_id.lang"/>
|
||||
</t>
|
||||
</t>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user