Tuesday, January 19, 2021
5 changes · master
Enhancements to existing features
Calendar email reminders are now scheduled to run at the exact reminder time instead of being checked in a recurring 30-minute batch. This improves reminder accuracy and avoids unnecessary background work when no reminders are due.
Original PR description
The calendar reminders are emails or web notifications sent moments before an event start. The mechanism to send web notifications is controlled by the browser, it fetches all the future notifications and uses `setTimeout()` to delay them. The mechanism to send emails was controlled by a cron, every 30 minutes the cron would look for the coming events and send the mail reminder. The cron was running every 30 minutes even if there was no event. The best precision was 30 minutes. The new mechanism use cron triggers, every time one add email reminders, triggers are created to call the cron at the precise moment the alarm is set. The cron no longer send emails for events in the coming 30 minutes as those will be triggered too. --- **[REF] calendar: remove cron activation code** There is code that automatically enable or disable the cron whether it exists alarms. As alarms are automatically added, the cron is actually always enabled. Task: 2416741
Website editors can now provide different images for different language versions of a page. This helps localized websites show more relevant visuals for each audience without duplicating pages or workarounds.
Original PR description
TASK: https://www.odoo.com/web#view_type=form&id=33372&active_id=33372&model=project.task&menu_id= -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The status pill showing that a calendar is synced with Google or Microsoft now uses Odoo's standard enterprise theme color. This creates a more consistent look across calendar integrations without changing functionality.
Original PR description
Description of the issue/feature this PR addresses: Change the color of "synced with microsoft/google" pill button to match Odoo default theme. Current behavior before PR: Pill button color set to badge-success. Desired behavior after PR is merged: Pill button color set to $o-enterprise-primary-color. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Expenses can now be entered in one currency and reimbursed in the company currency, with automatic conversion and the exchange rate shown when currencies differ. The expense form is also clearer by showing only the fields relevant to the selected product and user role.
Original PR description
[REF] Improve experience of Expense app After the changes the field untaxed_amount has not been used any more, so it was removed. In order to make the expense form more intuitive, it was necessary to distinguish between whether the product with non-zero-cost was selected on not. According to the latter, different field should be shown. Now the expense can be submitted in different currency and it can be reimbursed in company’s currency. In case the latter two currencies differ from each other, the conversion is done automatically and the rate is also displayed. Task - 2366775
When receipt scanning detects an amount, it is now placed directly in the expense total field. This reduces manual entry for employees and helps keep submitted expenses more accurate.
Original PR description
When OCR captures the ammount, it is assigned to Total. Task - 2366775