a707bba744174cceeda9cbd180df63f9e66cf837
The issue is: the user wants to send an invoice to a customer, changes the email template, and after the onchange, the field "Template" of the wizard is empty. Here is what happens. The onchange on the template renders a PDF file with the corresponding invoice document. The rendering builds some assets to convert the invoice to a PDF document, and former assets are deleted. The deletion of former assets (`ir.attachment` records) invalidates the whole record cache, which implicitly clears all the fields of the record of the onchange. The problem is that the asset is systematically invalidated by the rendering of the report itself. This hack changes the CSS assets to introduce company-specific colors for the rendering of reports. This implementation is actually not consistent with the fact that assets are kept in cache by the server. This patch does not fix the root cause of the problem, but it reduces the sides effects of it, and makes the issue above less frequent. It simply consists in not updating the asset's attachment when its value is already correct. OPW 2168623 OPW 2171040 closes odoo/odoo#44295 X-original-commit: b1ddd9c95bc642e42eb0d3d51066902d5283ba04 Signed-off-by: Raphael Collet (rco) <rco@openerp.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%