Tuesday, September 14, 2021
3 changes · master
Resolved issues and error corrections
This fixes an issue that prevented Odoo's test-file option from running correctly on Windows. The change makes file path checks work across operating systems and avoids failures caused by different letter casing, improving reliability for teams testing Odoo on Windows.
Original PR description
Description of the issue/feature this PR addresses: The command line option `--test-file` doesn't work on Windows Current behavior before PR: The `--test-file` option is always normalized, and is compared against a unix-style path to see if the test module is within a valid Odoo module. Due to the difference in path separators, this check always fails, and the test won't run. Desired behavior after PR is merged: The unix-style path is changed to use the OS appropriate path separator from `os.path.sep`, so that it can match the normalized `--test-file` path, and the check works as intended. Additionally, path normalization includes the `os.path.normcase` function so that a casing difference doesn't cause a failure. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an internal test setup so it uses the correct notification service name. It helps keep automated checks reliable and reduces the chance of test-related issues during development, with no direct change for end users.
Original PR description
The service is called `notifications` when mocked in tests, instead of `notification`. PR Enterprise https://github.com/odoo/enterprise/pull/20475 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The dashboard now correctly shows the onboarding banner again when it should appear. This restores guidance that helps users get started and prevents a missing-banner experience caused by an earlier change.
Original PR description
Commit f0320b4004990b68509301db42e316e1f729ff3a forgot about that feature. Together with odoo/odoo#76089, this commit revives the display of the banner.