Saturday, December 2, 2023
2 changes · 17.0
Miscellaneous changes
Previously a 10mm margin was added between the top edge and the image below. The way the margin was added only offsets the picture by 10mm without adjusting the image size (see PR #143383). This may lead to an overlap between the image and text below (depending on the dimensions of the image). This fixes this issue by putting the 10mm margin "inside" the image instead of "outside" of it. Thus the size of the image is adjusted correctly. Forward-Port-Of: odoo/odoo#144509
Original PR description
Previously a 10mm margin was added between the top edge and the image below. The way the margin was added only offsets the picture by 10mm without adjusting the image size (see PR #143383). This may lead to an overlap between the image and text below (depending on the dimensions of the image). This fixes this issue by putting the 10mm margin "inside" the image instead of "outside" of it. Thus the size of the image is adjusted correctly. Forward-Port-Of: odoo/odoo#144509
...for `default_period_id` Issue: When in a consulting the Consolidated Balance report, the shown result should be based on the consolidation period from the previous form view (before clicking on the smart button). Instead the report uses the period with the same id as the `active_id` from the previous view (if there's any, else it uses the correct id). Said `active_id` can come from any view as long as there is a path to the period view form. For example the id could come from a con
Original PR description
...for `default_period_id` Issue: When in a consulting the Consolidated Balance report, the shown result should be based on the consolidation period from the previous form view (before clicking on…
...for `default_period_id` Issue: When in a consulting the Consolidated Balance report, the shown result should be based on the consolidation period from the previous form view (before clicking on the smart button). Instead the report uses the period with the same id as the `active_id` from the previous view (if there's any, else it uses the correct id). Said `active_id` can come from any view as long as there is a path to the period view form. For example the id could come from a consilidation chart. This implies that in most cases the `active_id` will not correspond to the expected consolidation period id. Thus the shown report will not be the one we want, or may not even exists if there are no period with the id [`active_id`]. Solution: This is due to the fact that context value `default_period_id` is evaluated as `active_id`. Thus, to avoid generating the wrong consolidation report, `default_period_id` evaluation should be set to `id` (the id of the current view) and not `active_id`. opw-3593728 Forward-Port-Of: odoo/enterprise#51961 Forward-Port-Of: odoo/enterprise#51690