summaryrefslogtreecommitdiff
path: root/addons/snailmail/static/src/js/snailmail_external_layout.js
AgeCommit message (Collapse)Author
2019-01-07[FIX] snailmail: Remove class on recipient's addressAntoine Prieels
Layouts were not accepted by Pingen due to the fact that the class that we added to the recipient's address was not present in stable versions. The format was therefore not adapted to Pingen. We then remove this class to fix layouts in stable versions. closes odoo/odoo#29976
2018-12-26[FIX] snailmail: Avoid format errors when sending with PingenAntoine Prieels (ANP)
Pingen validates the format of documents before sending them. These are the elements that it checks and how when ensure that the constrains are validated: - The recipient's address should appear in a predefined area --> Move the address to this area and reduce the font-size if the address is too long - The destination country should be the last line of the address --> Sometimes, the Tax ID was in this zone, so we add a margin after the address - Above the Address Area, there should be a Postage Area that should be completely empty --> Make the background white to avoid having a background image in this area --> Crop the header if it takes too much space - There are margins of 5mm all around the document --> Crop the footer 5mm above the bottom of the page if it takes too much space - There is a square in the bottom left of the document that should be empty --> Add a margin on the left of the footer closes odoo/odoo#29522