[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:
@@ -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"/> •
|
||||
</t>
|
||||
<t t-if="company.street">
|
||||
<span t-field="company.street"/> •
|
||||
</t>
|
||||
<t t-if="company.street2">
|
||||
<span t-field="company.street2"/> •
|
||||
</t>
|
||||
<t t-if="company.zip">
|
||||
<span t-field="company.zip"/> •
|
||||
</t>
|
||||
<t t-if="company.city">
|
||||
<span t-field="company.city"/> •
|
||||
</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;
|
||||
|
||||
Reference in New Issue
Block a user