[FIX] l10n_din5008: fix document layout

1. Install DIN 5008

2.1. Settings
- [Companies] > [Document Layout] > Configure (..)
- Set [Layout] to DIN 5008 and paper format to one with DIN 5008
- write on [Company Tagline]
- [Download PDF Preview]

2.2. Accounting
- Customer Invoices
- click an invoice and [PREVIEW]

Before: Slogan not added
After: Added

versions: up to master
opw-3145751

closes odoo/odoo#115125

X-original-commit: 9d6876dbcb82b18d30fa8811456d26f67586344d
Signed-off-by: Grazioso Andrea (agr) <agr@odoo.com>
Signed-off-by: Lee, Hansun (hale) <hale@odoo.com>
This commit is contained in:
Hansun (hale)
2023-03-14 09:55:55 +01:00
parent e5f462de16
commit d9d47166de
2 changed files with 3 additions and 3 deletions
@@ -37,7 +37,7 @@
<div t-attf-class="header din_page o_company_#{company.id}_layout">
<table class="company_header table-borderless" t-att-style="'height: %dmm;' % (din_header_spacing or 27)">
<tr>
<td><h3 class="mt0" t-field="company.report_header"/></td>
<td><div class="h3 mt0" t-field="company.report_header"/></td>
<td><img t-if="company.logo" t-att-src="image_data_uri(company.logo)" t-att-style="'max-height: %dmm;' % (din_header_spacing or 27)"/></td>
</tr>
</table>
@@ -6,11 +6,11 @@
&.header {
table {
width: 100%;
img, h3, td, tr {
img, div.h3, td, tr {
padding: 0;
margin: 0;
}
h3 {
div.h3 {
color: $o-default-report-primary-color;
position: relative;
top: -10mm;