Monday, August 23, 2021
10 changes · master
Resolved issues and error corrections
This fix helps purchase-related stock records reuse existing system information when recalculating linked fields. It avoids an expensive lookup, improving performance during purchase and stock updates without changing user-facing workflows.
Original PR description
Adding this non-stored Many2many fields allows ORM to use cache in `_modified_triggers` and skip costly search: ``` records |= model.search([(key.name, 'in', real_records.ids)], order='id') ``` --- opw-2507143 similar update in accounting: #73884 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 fixes cases where extra-hours time off settings did not correctly activate or appear when attendance and time off features were installed or configured without demo data. Businesses using overtime deductions and extra-hours tracking should see more reliable setup, correct defaults, and fewer errors across attendance and time off workflows.
Original PR description
When installing the `hr_holidays_attendance` module without demo data, and having the count extra hours options enabled, the extra hours time off type would remain archived instead of being enabled. This commit fixes that behaviour and will now start in sync with the company option(s). Task ID: 2607436
Corrects how the web mock server reads and displays certain dates, including quarter-based dates and ISO week-year formats. This helps keep automated web tests accurate and prevents date-related test failures after the date library migration.
Original PR description
On 00e3cb74c44565b2106dba6befac2b6f8512eede the migration of the code to parse and formate dates on the mock server from moment to luxon was done. Two issues were introduced on that commit: Parsing a date displayed on quarter wasn't possible; And the ISO week year wasn't used to format the date, but it was used to parse the date, for symmetry's sake, now the ISO week year is used on both.
Project users can now open and manage activity type settings without needing administrator rights. The change removes an access blocker caused by the way activity types referenced system model data, improving usability across apps that rely on activities.
Original PR description
Change `mail.activity.type` model to use selection fields instead of many2one to `ir.model` Project users need to access `mail.activity.type` configuration which was not possible without admin rights, cf bug at #74954
Email marketing reports now group and filter results using the correct field. This helps users see more accurate campaign reporting and avoids misleading analysis when reviewing mailing performance.
Original PR description
Oversight of odoo/odoo@f16dbbcaecb7d46aefd3451eab2082316e8b0eec
This update fixes a date-related issue in the HR Appraisal test suite that could cause failures on certain days of the month. It helps keep automated checks stable without changing employee appraisal functionality.
Original PR description
2021-08-23 - 6 months + 6 days = 2021-03-01
duration_after_recruitment = 6
-> domain computed
```
'&',
('create_date', '>', '2021-01-31'),
('create_date', '<=', '2021-02-28')
```This update aligns several business apps with a shared change that improves how activity types are referenced and accessed. It helps keep reminders, approvals, documents, subscriptions, and other workflows working consistently after the underlying platform update.
Original PR description
Enterprise part of odoo/odoo#74981
The referral app’s progress bar styling has been narrowed so it only applies where intended. This prevents the shared progress layout from accidentally changing the appearance of unrelated screens, improving visual consistency across the system.
Original PR description
This commit fixes the hr_referral scss by conditioning the style applied on the progress class to its own use cases. Indeed, the progress class is a global class and adding rules to it may break other layouts. Task-2567591
Helpdesk tickets now hide SLA-related fields when SLA tracking is turned off. This keeps ticket screens cleaner and prevents users from seeing irrelevant service-level information.
Original PR description
task - 2579066
Fixes an error that occurred when users tried to share a Sign template. This restores the expected sharing workflow so teams can send reusable document templates without interruption.
Original PR description
fix bugs for template share feature before this commit: you will get an error when you use the SHARE feature of template taskid: 2615235