[IMP] l10n_de: improved DIN compliance on report

- added a line with company address on top of invoice address to be DIN compliant
- added country to din address
- css improvments

Task ID: 2214336

closes odoo/odoo#56111

Signed-off-by: Josse Colpaert <jco@openerp.com>
This commit is contained in:
Benjamin Frantzen (bfr)
2020-08-20 14:29:38 +00:00
parent 8a7cf5045f
commit eb6a177a50
2 changed files with 37 additions and 1 deletions
+22
View File
@@ -45,6 +45,27 @@
<div class="article din" t-att-data-oe-model="o and o._name" t-att-data-oe-id="o and o.id">
<div class="header_address">
<t t-if="address">
<div class="company_invoice_address">
<t t-if="company.name">
<span t-field="company.name"/> &#8226;
</t>
<t t-if="company.street">
<span t-field="company.street"/> &#8226;
</t>
<t t-if="company.street2">
<span t-field="company.street2"/> &#8226;
</t>
<t t-if="company.zip">
<span t-field="company.zip"/> &#8226;
</t>
<t t-if="company.city">
<span t-field="company.city"/> &#8226;
</t>
<t t-if="company.country_id">
<span t-field="company.country_id.name"/>
</t>
<hr class="company_invoice_line" />
</div>
<div name="invoice_address" class="invoice_address">
<t t-raw="address"/>
</div>
@@ -56,6 +77,7 @@
<div>
<strong t-field="company.partner_id.name"/>
</div>
<span t-field="company.partner_id"
t-options='{"widget": "contact", "fields": ["address"], "no_marker": true}'/>
<t t-if="information_block">
@@ -15,11 +15,25 @@
min-width: 75mm;
display: inline-block;
}
.invoice_address {
.company_invoice_address {
position: relative;
left: 25mm;
top: 17.7mm;
width: 85mm;
min-width: 85mm;
margin-bottom: 1mm;
font-size: 7pt;
overflow-y: hidden;
word-break: break-word;
}
.company_invoice_line {
margin-top: 1mm;
}
.invoice_address {
position: relative;
left: 25mm;
top: 14.7mm;
width: 85mm;
height: 27.3mm;
line-height: 1.15;
overflow-y: hidden;