Tuesday, April 12, 2022
2 changes · master
Resolved issues and error corrections
This fixes an issue where parts of the web interface embedded in iframes did not run expected setup steps. It helps embedded Odoo screens behave consistently and reduces the risk of display or interaction problems in iframe-based views.
Original PR description
Previously, some lifecycle hooks were not called when using a ComponentWrapper in an iframe, this is because to know whether we should call mounted, we check whether the target/el is in the document, but when using iframes, the document in question is not the top-level document and so the check returns false. This commit fixes that by checking if the elements are inside their ownerDocument instead.
This update adjusts an internal Belgian payroll accounting performance test to allow for extra database work when a company logo is loaded. It helps keep automated testing reliable after a related platform change, with no expected impact on day-to-day users.
Original PR description
Following change at odoo/odoo@3c6263316054b In case the company of the user is not cached, may produce more queries. The queries are to fetch the logo (related partner_id.image_1920) on the tested company instead of keeping the one of the user. Related to odoo/odoo#86356