odoo/odoo#136367

Created by fw-bot
Merged at f4426c5c5704a6bbc83810496b693b700f6baf28

Statuses:

label
odoo-dev:16.0-14.0-l10n_de-din5008-fix-again-malb-_xwL-fw
head
cbbebb6e08afee12ea2d2568ff3fc531181998b0
merged
2 years ago by Accounting, Maximilien La Barre (malb)
odoo/odoo
14.0 #136257
15.0 #136293
saas-15.2 #136303
16.0 #136367
saas-16.1 #136368
saas-16.2 #136370
saas-16.3 #136371
saas-16.4 #136372
17.0
18.0
saas-18.2
saas-18.3
saas-18.4
19.0
master #136500

[FW][FIX] l10n_de: din5008

In the din5008, there has been problem in the display of the paper format either
in the pdf or the preview.

In the preview we had a part of the page on the right that wasn't used caused by
the negative margin and the width of 180mm. But by removing that the pdf is
broken, the header is hiding some information.

To deal with that, we will add the width and negative margin only for the pdf
by adding a conditional css classes.

Also,it seems the footer with the company details can go out of page, by adding
a text-wrap on it, it solves this issue.

(In this commit, we override part of those commit:
481f442f4ef176072edf3261415dbb06f8a3bc6f
f7812ae848e0a79adcd11f936f6cd7890da00112)


I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

Forward-Port-Of: #136303
Forward-Port-Of: #136257