Friday, March 15, 2024
14 changes · 17.0
Enhancements to existing features
Employee and internal user profiles now automatically show initials when no avatar image is provided. This improves recognition in HR screens and keeps profile displays visually consistent without requiring every employee to upload a photo.
Original PR description
Improve avatar picture : if no picture is set, initials will be displayed. task : 3637523 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update refreshes the Spanish language translations for the localization reports module. The changes ensure that Spanish-speaking users see accurate and up-to-date text throughout the reporting features, improving the user experience for businesses operating in Spain.
Original PR description
Community: https://github.com/odoo/odoo/pull/157759
Resolved issues and error corrections
This fixes a mail module issue where sorting logic only worked for linked records and did not properly handle regular record fields. It improves reliability for activity-related sorting and reduces the risk of incorrect ordering in mail features.
Original PR description
This was not working because the internal code of handling sorted assume the field is necessarily a relation, as it always attempt to sort a record list. Thankfully this doesn't crash because the sort was never triggered on `activityGroups`. This commit fixes the issue by adapting the inner-code of sort to take non-relational fields into account.
Miscellaneous changes
Step to reproduce: - Create a sub - Renew it - Pause it Pausing change the state which create a new transfer log, when it shouldn't task-id: 3736229 Forward-Port-Of: odoo/enterprise#56612
Original PR description
Step to reproduce: - Create a sub - Renew it - Pause it Pausing change the state which create a new transfer log, when it shouldn't task-id: 3736229 Forward-Port-Of: odoo/enterprise#56612
A help message that appears when lxml fails to decode an emoji was providing incorrect installation instructions. The message suggested using the `--nobinary` switch, but the correct syntax is `--no-binary`. This fix ensures users receive accurate guidance if they encounter this error.
Original PR description
If lxml fails to decode an emoji, it indicates to reinstall lxml using `--nobinary` switch, which is incorrect. If you use the suggested command will get a "no such option". The correct switch is `--no-binary`
This fix resolves an issue where developers using VSCode were not receiving autocomplete suggestions for OWL (Odoo Web Library) imports in the enterprise codebase. The fix adds a configuration file that properly exposes the OWL module to the TypeScript language server, improving the developer experience and reducing coding errors.
Original PR description
On an IDE (VSCode) with a TypeScript Server. For some reason, it was not possible to have imports suggestion to OWL in enterprise after commit [1]. Our main hypothesis is that, due to commit [1] who…
On an IDE (VSCode) with a TypeScript Server.
For some reason, it was not possible to have imports suggestion to OWL in enterprise after commit [1].
Our main hypothesis is that, due to commit [1] who points to odoo/addons, import lines in those files are resolved first in the scope of the odoo directory.
Consider a file in enteprise:
```js
import { registry } from "@web/core";
import { Component } from "@odoo/owl"
```
From the TSServer point of view it needs to resolve `@web` first, which itself has to resolve `@odoo/owl` in its directory scope, that is, in the scope of odoo community. It then keeps it in cache for later and importantly shadows the one present in enterprise/node_modules. Only then the explicit `@odoo/owl` is resolved with the odoo community's owl module from the cache.
Since that owl module from the cache is not explicitly available in enterprise, there are no imports suggestions.
This commit defines a main.d.ts file that only exposes the community's `@odoo/owl` explicitly. This hypothesis is confirmed by some hints that we discover during debugging:
- delete odoo/nodule_modules in enterprise: @odoo/owl becomes a suggestion again.
- comment the path line of @web/* in enterprise/jsconfig.json, owl is suggested.
- replace the copy of node_modules in enterprise by a symlink to odoo/node_modules, owl is suggested. This last one should also be considered as a valid fix for the current issue, as node_modules in odoo and enterprise *are the same*.
After this commit, owl is proposed for imports in VSCode.
[1]: 62cbb20
Forward-Port-Of: odoo/enterprise#58601This update removes the year value from Hong Kong payroll time off type names. Previously, the year was hardcoded in the name, which meant it wouldn't automatically update when the calendar year changed. By removing the year from the name, the time off types will remain accurate and relevant without requiring manual updates.
Original PR description
Steps to reproduce: - Install l10n_hk_hr_payroll Current behaviour: - Time off type name contain year value Expected behaviour: - Time off type name should not contain year value Explanation: - Year changed will not update the time off type name, therefore better to not include the year value inside the name X-original-commit: 224aa76
This update fixes an issue where users were not prompted to close video previews in the Documents module. The fix adds a missing step to the guided tour that instructs users how to properly close preview windows, improving the user experience when working with document previews.
Original PR description
Before this commit: - We do not get the prompt to close the YOUTUBE video preview. After this commit: - We get the prompt to close the preview. Task-3748193 Forward-Port-Of: odoo/enterprise#58519 Forward-Port-Of: odoo/enterprise#56812
A test for the calendar month view was failing when run before 9:00 AM due to incorrect event duration settings. This fix ensures the test properly sets the event duration when adjusting the start time, making the test reliable regardless of when it runs.
Original PR description
The `test_calendar_month_view_start_hour_displayed` makes sure that start hour is displayed in calendar month view. The test was failing before 09:00 AM because after creating the event, it sets the start time to 10:00 without setting the stop time or duration. So when creating this event before 09:00 with a default duration of 1 hour, the stop time would be before 10:00, and it would raise an error. This commit aims to fix this issue by adding a step to set the duration of the event, avoiding the potential error. fixes runbot-59850
When creating a new product, the browser tab was incorrectly showing "Odoo - False" instead of "Odoo - New" until the product name was saved. This fix corrects the display name logic so new products show the proper "New" label, improving the user experience during product creation.
Original PR description
**Current behavior:** When creating a new product template record, the tab title will be *Odoo - False* until a new name is saved rather than *Odoo - New*. **Expected behavior:** When creating a new record in a form view, the tab title will be *Odoo - New* until the `name` field is filled out and the record gets saved (at which point it will be *Odoo - <name>*). **Steps to reproduce:** 1. Install `sale_management` and go to the product list view 2. Create a new product, observe the misnamed tab title **Cause of the issue:** In `product.template`'s _compute_display_name() method, some of the default values can have a 'False' (str) value which will evaluate to True (bool), setting the name to 'False'. **Fix:** Set the display_name field to a False (bool) value if the current record does not have a name field set. opw-3793588
This update corrects minor inconsistencies in the Portuguese Chart of Accounts to ensure full compliance with official regulatory requirements. The changes align the account structure with the published guidelines from the Portuguese accounting authority, ensuring accurate financial reporting for Portuguese companies.
Original PR description
In #87572, the CoA was refactored to follow the regulation for companies under the general regime, which can be found at https://www.occ.pt/fotos/editor2/taxonomiasplanocontas_fev2019.pdf This commit fixes minor discrepancies between our version and the published regulation. Enterprise PR: https://github.com/odoo/enterprise/pull/58387 taskid:3060790 Forward-Port-Of: odoo/odoo#157131
This update improves the visual presentation of notes in sale order reports by applying text justification. The change ensures that note text is properly aligned and formatted for a more professional appearance when customers receive their sale order documents.
Original PR description
opw-3725405
This fix corrects a display issue in the mail module where the word "false" was incorrectly shown when a recipient didn't have an email address. Now, when a contact has no email, it will properly display "[name] (no email address)" instead, making the interface clearer and more professional for users managing email recipients.
Original PR description
'false' is displayed in the popover next to the recipients in the absence of an email address as well as the title of the recipients If the partner has no email, it should show something like "[name] (no email address)]" task-3787703 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#157431
In 2024, credit card withholding tax is only required for manual documents, we improve the suggestion method and fix the tests Forward-Port-Of: odoo/enterprise#58185
Original PR description
In 2024, credit card withholding tax is only required for manual documents, we improve the suggestion method and fix the tests Forward-Port-Of: odoo/enterprise#58185