Tuesday, October 11, 2022
2 changes · master
Resolved issues and error corrections
This fixes an issue in the website editor where background image positioning could preview or save inaccurately after page editing moved into an iframe. The positioning overlay now uses the same page viewport, helping users place backgrounds reliably while editing website pages.
Original PR description
With commit [1], the edition of website pages was moved in the backend inside an iframe while the editor is instanced outside. A lot of the pre-existing code was adapted to support that transition but the background position option was left untouched. This leads to the position not being accurate because the overlay for positioning the background is outside the iframe which makes the viewport different, resulting in an inaccurate preview and positioning. To fix this, this commit moves the background position overlay inside the iframe, insuring that the viewport and position of the background is accurately previewed and set. [1]: https://github.com/odoo/odoo/commit/31cc10b91dc7762e23b4bde9b945be0c4ce3fe3b task-2687506
The Costs Analysis Report now handles missing work center hourly costs without causing a server error. This prevents report generation from failing when cost data has not been filled in, improving reliability for manufacturing users.
Original PR description
This commit fixes server error on Costs Analysis Report when Work Center Costs per hour is None. QWeb is unable to render None Type as currency. Impacted versions: 10.0, 11.0