Tuesday, March 23, 2021
4 changes · master
Resolved issues and error corrections
Survey certification PDFs now use the available A4 page space correctly, avoiding overly large top and side margins. This improves the appearance and professionalism of printed certificates for users and recipients.
Original PR description
Generated PDF was shrunk down, not taking up the full width and size of the A4 format, leaving big margins on right and top. Setting `disable-smart-shrinking` to `True` helps with this, but layout is slightly too big. Setting `dpi` to `96` and removing the `width` and `height` on the parent element fully fixes the issue. This merge also adds a boolean field `disable_shrinking` in model `report.paperformat`. If set to True it adds one argument `--disable-smart-shrinking` in commands that prevents the pdf shrinking. See issue[1] for more information. This options is utilized for printing survey certificaiton. Task ID-2483393 COM PR odoo/odoo#68188 UPGPR odoo/upgrade#2293 issue[1] - wkhtmltopdf/wkhtmltopdf#3226
This fix allows Odoo's JavaScript processing to handle more legacy import names that were previously rejected. It helps older custom or core code continue working when used from newer module files, reducing upgrade and compatibility issues.
Original PR description
In a @odoo-module js file, importing a legacy file that did not have
a key respecting the "module.name" format was not supported.
This commit will support all keys that do not start with a "." or "@".
Supported:
import X from "some/path"
import X from "module.name"
Not supported:
import X from "@some/path"
import X from "./some/path"
import X from "../../some/path"
Description of the issue/feature this PR addresses:
Current behavior before PR:
Desired behavior after PR is merged:
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prThis fix updates the website logo file so browsers can reliably recognize it as an SVG image. It prevents cases where the logo may fail to render when certain server file-detection tools are installed.
Original PR description
Without this 'XML declaration', if you have magic installed, the mime type is image/svg instead of image/svg+xml and browser don't render it. This commit is related to #68211 meanwhile a more generic solution (if needed). Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update corrects how Odoo handles file paths that include the standard addons prefix. It helps ensure internal file lookups work consistently and reduces the risk of path-related errors in system operations.
Original PR description
The tests passed because the path with the prefix is valid at root_path.