Tuesday, November 19, 2024
12 changes · master
Enhancements to existing features
This change reorganizes how real-time notifications are retrieved and sent, making the messaging flow easier to maintain and potentially more reliable. It mainly affects the background communication system used by live updates, without introducing a visible feature change for end users.
Original PR description
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
Updates to key job position fields, such as the assigned interviewer, are now recorded in the chatter. This gives HR teams a clearer history of recruitment setup changes and improves accountability.
Original PR description
There are certain fields that should be logged in the chatter when updated. like the interviewer field task-4190731
Event sales totals now include eligible ticket discounts in the event sales button, matching the totals shown in the related sales order list. This gives event managers a more accurate and consistent view of revenue without needing to compare screens.
Original PR description
Currently, when a discount is applied to some tickets there's a discrepancy between the total amount of sale stat button displayed on the event form view and the total displayed for the sale order list view to an event. The objective is to include the discount value **`(Excluding the fixed amount and Global discount)`** in the stats button to ensure consistent totals are shown throughout. Task-4107360
Spreadsheet-related screens now more clearly mark data-only operations as read-only. This helps Odoo handle those requests more efficiently and safely without changing what users see or how they work.
Original PR description
## Description Adds the `@api.readonly` decorator to methods that only perform data retrieval in spreadsheet-related models and controllers. Task: [4317048](https://www.odoo.com/odoo/project/2328/tasks/4317048) --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This change adds a clearer internal way for Odoo to verify whether a user may access a specific field. It helps keep permission checks consistent across apps such as Accounting, HR, Mail, Project, Sales, and Web features, reducing the risk of incorrect field access handling.
Original PR description
New function to check access for a given field with a simpler API than `check_field_access_rights` which handles lists of strings. `_check_field_access` is written to be overrideable and checks whether the current user have a permission on the field. It does not check the permissions on the model. `check_field_access_rights` is there to validate a set of fields and to return the set of accessible fields. odoo/enterprise#73744 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update streamlines internal mail-related tests by giving standard test users the expected partner management permissions and removing duplicate coverage tied to demo users. It helps make future mail and recipient improvements easier to validate while reducing test maintenance overhead.
Original PR description
Add 'base.group_patner_manager' by default on test internal user as anyway it is mostly always used for internal users. With this commit we need to update 'TestScheduledMessageAccess' as it was based…
Add 'base.group_patner_manager' by default on test internal user as anyway it is mostly always used for internal users. With this commit we need to update 'TestScheduledMessageAccess' as it was based on employee that cannot update its own partner, which is not the case with default behavior. To get rid of partner dependency we introduce a new model that eases modeling restricted accesses. It is going to be used in a new test suit sonner or later. In controller tests lot of tests are simply duplicated due to using both demo user and test-specific internal user. This pattern has been reproduced a lot in all controller tests introduced a few months ago and already cleaned during https://github.com/odoo/odoo/pull/186937. In this commit we remove usage of demo user, just replacing it when strictly necessary by another test user we control. Task-4332801 [test_mail] Cleanup controller tests Prepares Task-4332797 : [mail] Partner from emails 3.0 Prepares Task-4273479 : [mail] Email-like recipients
Spreadsheet-related data lookup methods are now marked as read-only, helping the system handle these requests more efficiently. This is an internal performance and reliability improvement with no expected change to user workflows.
Original PR description
## Description Adds the `@api.readonly` decorator to methods that only perform data retrieval in spreadsheet-related models and controllers. Task: [4317048](https://www.odoo.com/odoo/project/2328/tasks/4317048)
The Time-Off overview Gantt view now opens with the current month selected by default instead of a broader date range. This makes it easier for managers and employees to focus on the most relevant upcoming absences without manually adjusting filters.
Original PR description
This PR improves the Gantt view in the overview menu of the time-off module by setting the default filter to `This Month` instead of a date range. task-4239714
Internal test users now include partner management access by default, matching the access commonly used by real internal users. This reduces setup friction and supports upcoming mail and recipient handling improvements.
Original PR description
Add 'base.group_patner_manager' by default on test internal user as anyway it is mostly always used for internal users. Prepares Task-4332797 : [mail] Partner from emails 3.0 Prepares Task-4273479 : [mail] Email-like recipients
Adding a spreadsheet to a dashboard now clears old breadcrumb links that could point users back to previously archived spreadsheet documents. This reduces confusion and makes the dashboard creation flow cleaner and easier to follow.
Original PR description
When adding a new dashboard, existing breadcrumbs may lead to confusion, as they keep links to previous archived spreadsheet document. This commit clears breadcrumbs when adding a new dahsboard, ensuring a better user experience. task-3416361
The rental point-of-sale flow was aligned with recent quotation screen behavior so tests reflect the correct order quantities. This helps ensure unpaid amounts are calculated consistently and reduces the risk of regressions in rental sales validation.
Original PR description
This commit adapts a test so that it follows the logic of the changes of the pos quotation screen. The test has to be adapted because the quantity of the orderline was 0 before and that was leading to a zero amount unpaid. Community PR: https://github.com/odoo/odoo/pull/175365 task-id: 4070347
The Knowledge app now uses a simpler internal setup when loading messages, grouping related options together. This should make the code easier to maintain without changing how users interact with the feature.
Original PR description
This commit moves `search_term`, `before`, `after`, `limit` and `around` fetch params to a single parameter as `options` to simplify the code. This change applies to all available fetch messages routes. Suggested [here](https://github.com/odoo/odoo/pull/182334/files#r1811034899) Related to odoo/odoo#187192