Friday, February 7, 2025
6 changes · master
Enhancements to existing features
Test coverage across several Odoo Enterprise apps was updated to match a change in how scheduled jobs are run directly. This keeps automated validation reliable and helps prevent regressions without changing day-to-day user workflows.
Original PR description
We need to adapt the calls to `method_direct_trigger` in tests. The method creates a new cursor now, so we need to be in test mode. task-4433571 odoo/odoo#193740
Subscription reminders now skip contracts that are not yet close enough to needing action. This reduces daily background processing for subscriptions where no reminder or closure is needed, improving efficiency without changing customer-facing behavior.
Original PR description
Before this commit, once the next_invoice_date was passed, the cron would process it everyday even if no reminder was necessary and the sub should not be closed. This commit ensure no contract is processed too soon. We decided to look for the minimal auto_close_limit value available and no contract is processed while his next_invoice_date + min_auto_close_limit is still in the future. This should reduce the amount of contract processed for "nothing". Once the auto_close_limit is passed, the contracts are still processed as they could be automatically closed before the 14 days delay is passed. task: 4295613
Belgian CODA bank statement imports now place note information directly in the transaction details. This makes payment information easier to review and helps users reconcile bank transactions with clearer context.
Original PR description
In this commit we will move the information that is placed in the note field in transaction details. task-4496857
This change updates an internal automated test to reflect recent behavior where related scheduled messages are removed when a record is deleted. It helps keep the document accounting test suite accurate and reduces false test failures, with no direct impact on end users.
Original PR description
Purpose: -------- In [this commit](https://github.com/odoo/odoo/commit/f9161cb), the messages scheduled on a record are now unlinked when unlinking this record (for models that inherit from `mail.thread`). This commit increases the query count in the test_move_document_unlink test accordingly. Task-4531402 [1]: https://github.com/odoo/odoo/commit/f9161cb7c132e97d78edef4a2a785f2bc3170b80
New automated tests verify that planning slot templates are visible only to the right types of users. This helps ensure project users, managers, portal users, and public users get the correct level of access and reduces the risk of unintended shift visibility.
Original PR description
This commit adds test cases to validate planning slot template visibility
based on user roles and project access:
1) Project user:
- Project user can access only specific planning slot template
2) Project manager:
Can access all planning slot templates
Moved in the planning module
3) Public and portal users:
Cannot access any shifts.
task: 4480509This update removes an obsolete styling reference from the Helpdesk portal templates. It has no expected impact on user workflows, but keeps the codebase cleaner and easier to maintain.
Original PR description
The SCSS for the `o_portal_contact_img` class was removed in a previous commit. As this class is no longer being used, it is safe to remove it from the codebase. Reff Commit- https://github.com/odoo/odoo/commit/df8535fbd40e1e5c09dbe616a3332c76c23525c8 task-3970088