Friday, December 20, 2024
9 changes · master
Enhancements to existing features
Project updates now show a zero task count with the correct task label, so empty projects are clearer instead of appearing incomplete or ambiguous. The same task label is also used consistently in project task buttons, and demo timesheet data now displays zero hours more clearly.
Original PR description
With this commit, we are displaying 0 and the task label (Name of the tasks) if the number of tasks recorded is equal to 0 in the project updates. Additionally, we are showing the same task label in the stat button on the right side panel and smart button of task on the project. task-3893332
The Mail module's old internal test helpers were removed to simplify maintenance and reduce outdated testing code. This does not change day-to-day user features, but helps developers keep future Mail improvements cleaner and more reliable.
Original PR description
This commit aims to remove all the legacy test helpers. The `mail.popout` mock service is retained for now, as it is still required by many other modules. Part of Task-3818666 Related Ent PR: https://github.com/odoo/enterprise/pull/75879 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Test files can now be handled through the same tagging system as other test selections. This reduces special-case behavior, improves consistency in test execution, and helps avoid misleading or missed test runs.
Original PR description
The current test-file option is run outside of the tests-suites, leading to potential issues: - dedicated code to run the test-file leading to potential error and more maintenance - at-install tests are run post-install - tests order is not the same - possible to run a test of a module that is not installed - no warning if no test is run (outside addons path) This proposes to convert test-file into a test-tag. A first version was transforming the test-file into a path relative to the root of the containing addons path. Unfortunately this was not the easier way to do since we would like to do so in post_process_args but we don't have an initialized sys path at this point. The new solution doesnt make this transformation but supports absolute paths as module path in the tag selector.
This change reorganizes how Odoo handles external model calls and removes an older return-format shortcut that made some methods behave differently depending on context. It simplifies the platform architecture and makes behavior more predictable, with limited direct impact for everyday users.
Original PR description
Description of the issue/feature this PR addresses: `call_kw` is a function that is specific to external calls and should be in the model service. The `@api.returns` decorator logically gives two…
Mobile spreadsheet dashboards now show two scorecards per row instead of one, making better use of smaller screens. Other dashboard figure types keep their existing single-column layout, so the change improves compact scorecard viewing without disrupting other content.
Original PR description
This commit make it so that on mobile, two scorecards are displayed per row instead of one. The other types of figures are still displayed one per row. Task: [4192959](https://www.odoo.com/web#id=4192959&cids=1&menu_id=4720&action=333&active_id=2328&model=project.task&view_type=form) 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 makes company information consistently available across several business apps, helping features behave correctly in multi-company environments. It also streamlines how company switching information is handled by relying on the existing company service instead of session data.
Original PR description
This commit adapts the code to have companies always in the config. This with respect to a change in community (https://github.com/odoo/odoo/pull/190218)
This update removes an outdated internal coding pattern across several Odoo Enterprise apps. It should not change day-to-day user workflows, but it helps keep the platform easier to maintain and evolve over time.
Original PR description
odoo/odoo#182709 task-4155860
Budget items now limit account choices to accounts used in Profit and Loss reporting. This helps keep financial budgets aligned with the reports they depend on and reduces the chance of selecting inappropriate accounts.
Original PR description
This commit adds a domain to the `account_id` field from the account report budget item object (`account.report.budget.item`). The allowed accounts to be set on this field must be those from the Profit & Loss report, since the financial budget feature relies on it. task-id: 4314709
This update removes an outdated testing mock used by the Documents app as part of ongoing code modernization. It has no expected impact on day-to-day users, but helps keep the product easier to maintain and improve over time.
Original PR description
This commit removes the `res.users` mock model patch, as it depends on the legacy mail mock model. The change is part of ongoing efforts to deprecate outdated mock models and modernize the codebase. Part of Task-3818666 Related Com PR: https://github.com/odoo/odoo/pull/191140
Description of the issue/feature this PR addresses: `call_kw` is a function that is specific to external calls and should be in the model service. The `@api.returns` decorator logically gives two signatures to a single function. In that case, it is better to have 2 different functions: for testing and conceptually to avoid having a function which result type depends on the context. Moreover, from an architecture point of view, the type of the result for external calls should be handled by the controller/service. Only some of the `mail` functions really used this feature and removing it simplifies the api module. Current behavior before PR: - `call_kw` inside `odoo.api` - `@api.returns` not often used, basically to return a record.id depending on the context of the call Desired behavior after PR is merged: - `call_kw` inside `odoo.service.model` (where it makes sense with other dispatch functions) - functions have one return type odoo/enterprise#71424 odoo/documentation#11156 task-4155860 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr