Tuesday, March 23, 2021
3 changes · master
Resolved issues and error corrections
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.