Tuesday, March 15, 2022
3 changes · master
Resolved issues and error corrections
Swedish OCR options will now appear only when the user's active company is localized in Sweden. This prevents irrelevant Swedish payment settings from showing on partner records for companies operating outside Sweden.
Original PR description
### [FIX]: l10n_se: Hide Swedish OCR for non-SE Swedish OCR options are currently available everywhere when the localisation is implemented. This hides the options when the current user active company is not Swedish **Task:** task-2732385 Signed-off-by: Julien Alardot (jual) <jual@odoo.com> **Description of the issue/feature this PR addresses:** Swedish OCR settings are available all the time **Current behavior before PR:** Swedish OCR settings are currently available on every partner all the time when the localisation is implemented. Even when the company the user uses is not localized in Sweden **Desired behavior after PR is merged:** Swedish OCR settings are only displayed when the company the user uses is localized in Sweden (the one that is displayed on top if several are selected) -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an issue where currency rounding could leave tiny extra decimal remainders instead of returning a clean rounded amount. It helps prevent confusing values such as 12.120000000001 from appearing in business records or calculations.
Original PR description
Using the rounding method for each currency did not always cut off the last "remainder" Example: HUF: rounding to 2 decimal places 12.12 -- > 12.120000000001 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This fixes an issue in the VoIP feature where call reason messages were using an outdated text escaping method. The update restores the correct handling of these messages, helping avoid display errors or broken call feedback for users.
Original PR description
Reason phrases are escaped using a no longer existing function. This commit solves the issue by importing the right function.