ad8a10f29169131e917ba98b34619070a41e10cd
Steps to reproduce: - Accounting app > Customers > Invoices - Create invoice with customer and a couple of products - In the terms & conditions tab at the bottom, add 20-30 empty lines and then a heading (/h1-3) with some text. This insures that the printed report will have more than 1 page. - Go back to the Invoices list view - Select the invoice + another random one > Print > Invoices A traceback appears in _render_qweb_pdf: `KeyError: 'attachment'` When printing more PDF files at once, several condition have to be respected in order to also save them as attachments. If the conditions fail, the PDFs are not saved as attachments and a default dict is returned, containing the undivided content stream. The traceback is raised because later we check if an attachment already exists, even if the files were not saved. Bug introduced in https://github.com/odoo/odoo/pull/97050. Solution: If the conditions fail, add {'attachment': None} to the return dictionary. opw-2882507 closes odoo/odoo#104916 X-original-commit: 8e3db19f881e3fb72d8a31f56d7cea8876dc57a4 Signed-off-by: Olivier Dony <odo@odoo.com> Signed-off-by: Stefan-Calin Crainiciuc (stcc) <stcc@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%