Thursday, November 23, 2023
4 changes · master
Code cleanup and technical improvements
This update simplifies how Odoo's internal legacy test files reference each other, replacing older aliases with direct file paths. It does not change product features, but helps keep the test code easier to maintain and less dependent on legacy configuration.
Original PR description
This commit removes the alias of the module in web/tests/legacy in favor of the file path like @web/../tests/legacy/test_env. `export default`s that were used in these modules are converted to simple `export` and their associated `import` are also adapted. task id: 3162300
This change updates the web interface code to use the current internal data context after an earlier model change. It helps keep related field behavior working reliably without changing the user-facing experience.
Original PR description
Since the new RelationalModel (PR: odoo/odoo#114024), getEvalContext no longer exists. In this commit, we will therefore replace the uses of getEvalContext with evalContext. 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
The timesheet grid timer header was adjusted to work with a newer internal web framework model. This keeps the feature compatible after an underlying platform change, with no expected change to day-to-day user behavior.
Original PR description
Since the new RelationalModel (PR: odoo/odoo#114024), getEvalContext no longer exists. In this commit, we will therefore replace the uses of getEvalContext with evalContext.
This change updates internal automated test files to use direct file paths instead of older shortcut names. It helps keep the codebase easier to maintain without changing how users experience the product.
Original PR description
This commit removes the alias of the module in web/tests/legacy in favor of the file path like @web/../tests/legacy/test_env. `export default`s that were used in these modules are converted to simple `export` and their associated `import` are also adapted. task id: 3162300