25ef82ca8043b1f214a835157550e33b11c8fb6d
When l10n_latam_invoice_document is installed and the current company does not have a custom header (in stable, only Chile and Argentina with their localization installed use custom header), printing multiple invoice at once, one out of two had no header or footer. This is because `<div class="header"/>` and `<div class="footer"/>` should be unique per record being printed, and when a custom header was not used they were duplicated with the duplicate empty. As an example, if we had 3 documents: - record 1 : good header - record 1 : empty header - record 1 : body - record 1 : good footer - record 1 : empty footer - record 2 : good header - record 2 : empty header - record 2 : body - record 2 : good footer - record 2 : empty footer - record 3 : good header - record 3 : empty header - record 3 : body - record 3 : good footer - record 3 : empty footer When we give them to wkhtmltopdf, it would be mismatched: - headers: - record 1 : good header - record 1 : empty header - record 2 : good header - bodies: - record 1 : body - record 2 : body - record 3 : body - footers: - record 1 : good footer - record 1 : empty footer - record 2 : good footer so record 2 will have empty header/footer, and record 3 will get those of record 2. opw-2507137 note: the master forward-port also remove t-if that are no longer necessary since the same t-if is on an ancestor tag now. closes odoo/odoo#69718 X-original-commit: 90bdb5c7b7aa6a9b98e9acb1774d449ae65a3918 Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
…
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%