Daily updates from Odoo
Monday, August 5, 2019
19 changes · master
Enhancements to existing features
Odoo now checks required Python packages by their installable package names and supported versions, rather than only testing whether they can be imported. This makes dependency messages clearer for administrators and helps avoid setup issues when modules require specific package versions.
Original PR description
Use [pkg_resources.get_distribution()](https://setuptools.readthedocs.io/en/latest/pkg_resources.html#getting-or-creating-distributions) to check if python external
dependencies are installed, instead of trying an import.
This better expresses which python distribution needs to be installed
and allows declaring a minimum supported version such as.
```python
'external_dependencies': {
'python': [
'pyserial>=3'
]
}
```
Close #25541
[updated to show an example]
--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-prAttachments will now use the latest related record name instead of relying on a saved copy that can become outdated. This keeps displayed attachment information more accurate when records are renamed, with minimal impact on day-to-day use.
Original PR description
This commit removes the store property of `res_name` from `ir.attachment` as it doesn't need to be stored and could contain outdated information. Task: #1943295 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update improves error messages when incorrect dependencies cause failures during migrations or development. It helps teams identify the source of dependency problems faster, reducing debugging time and support effort.
Original PR description
During a migration process or developpment if a deps is wrong, it is hard to find where is issue come. same as https://github.com/odoo/odoo/pull/31889 @odony @nim-odoo -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The CRM reporting filter previously labeled “Contents” is now labeled “Activity Description.” This makes it easier for users to understand that the filter searches activity descriptions, improving usability without changing behavior.
Original PR description
task: https://www.odoo.com/web?#id=2008515&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720 pad: https://pad.odoo.com/p/r.28b0be0a1a502fa9068127d03b2d7431 Before this commit, at custom filter 'Contents' option is there for filtering by activity description. For more usability only rename is needed. By this commit 'contents' is changed to 'Activity Description'. User can filter records by activity description.
The Mexican electronic invoicing module now checks for external Python dependencies using the official distribution names from PyPI. This improves installation and validation reliability without changing day-to-day user workflows.
Original PR description
To go with https://github.com/odoo/odoo/pull/25549
This change removes a misleading legacy setting that could make database upgrades incomplete or unreliable. It affects many business apps and helps ensure future upgrades handle renamed fields through safer, more complete migration processes.
Original PR description
This attribute is misleading as it is insufficient to correctly upgrade the database. It only renames the column in the database, but other operations are needed, like updating the corresponding `ir.model.fields` record (and its xmlid). The default values and the translations are also lost during the upgrade. Moreover, this feature was misused. It was: - left on fields during multiple versions. - used on reports (SQL views). This would be ok if the feature was complete, but, as is, it was useless. - kept unchanged after a second renaming of the field (which can happen versions later the first rename). - used, even when the meaning of the field changed. i.e. the field `archived` has been renamed to the classic `active`, but the value in the database should be switched.
This update makes key parts of the asset form easier to target for future customizations. It does not change day-to-day functionality, but it reduces effort and risk when adapting the asset form to specific business needs.
Original PR description
Right now the `form` view has a lot of elements (also a lot are nested) and it is not really easy to `xpath` into the deeper elements. Some `name` on the most important elements allow to easily xpath from there on.
The customer follow-up form has been updated with a clearer sheet-style layout. This makes the screen easier to read and more consistent with other Odoo forms, improving day-to-day usability for accounting teams.
Original PR description
Before this PR:  After this PR: 
Referral levels now display their images directly instead of showing file attachment details, making the referral setup screens clearer for users. The update also adds internal labels to key screen elements, helping future changes and customizations be made more reliably.
Original PR description
This PR changes two things: 1. It adds the image widget on the referral levels as it was now just showing the attachment name in KB, not the image itself 2. Add `name` on the main elements for easier `xpath` expressions in the future @mart-e are you the one to review/approve this? Or should I have @RomainLibert or @tivisse? They seem to have made the app.
Resolved issues and error corrections
This fixes an issue in manufacturing where work orders could not be grouped by date in reporting or planning views. Businesses get more reliable schedule overviews, making it easier to review production workload by time period.
Original PR description
-- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Creating a bill of materials from a product now pre-fills only the finished product, not each component line. This avoids accidental use of the finished product as a component, reducing data entry mistakes in manufacturing setup.
Original PR description
The action called from the product's bom stat button (mrp.product_open_bom) fill the key 'default_product_id'. This allows, creating a bom from the list view, to prefilled the product. This context key will also fill each new bom line as the technical field is called product_id too. This commit overrides default_product_id to False for the bom line One2many in the bom form view in order to only prefill the finished product and not the components. Task : 2045485
This fix prevents the mobile apps icon from appearing while users search in Settings. It keeps search results cleaner and helps users focus on the settings that match their query.
Original PR description
The mobile apps icons were always showing even during a search in the settings. 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
The fullscreen course player now shows the selected lesson name as the browser page title. This helps learners and staff better identify the current lesson when using fullscreen mode or switching between browser tabs.
Original PR description
Description of the issue/feature this PR addresses: Task id: https://www.odoo.com/web?#id=2040899&action=333&active_id=131&model=project.task&view_type=form&menu_id=4720 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 an issue where the calendar would not open from the activity menu when users clicked the calendar icon while adding a note. It also clears the previously selected date when starting another note, preventing accidental reuse of old dates.
Original PR description
Since commit `a3d98dae68b97aeb7c36ca93c31f067535cbe8fd` the calendar is no longer opening when clicking on the calendar icon in the activities when adding a note. 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
Phone number validation now preserves the original spacing behavior more accurately while cleaning numbers. This prevents small mismatches between what users enter and what the system returns after validation, reducing confusion in contact data handling.
Original PR description
This commit ensures that we only strip the spaces of a phone number
{string} field on its sanitization to avoid differences between the
input and result of the function `phone_sanitize_numbers_string_w_record`.
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-prThis fixes an error that could occur when creating a new course in the eLearning/Slides app. The change ensures the needed page template is loaded at the right time, so users can create courses without hitting a crash.
Original PR description
Description of the issue/feature this PR addresses: - Task - https://www.odoo.com/web#id=2040460&action=327&model=project.task&view_type=form&menu_id=4720 - Pad - https://www.odoo.com/web#id=2040460&action=327&model=project.task&view_type=form&menu_id=4720 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Fixes an error that could occur when users clicked "Overview" from the Project kanban view while Forecast was installed. This keeps project navigation working reliably and avoids disruption for teams using forecasting features.
Original PR description
This commit fixes a traceback when clicking on "Overview" in Project kanban view with Forecast installed. Since project forecast actions have been made into xml actions, there is a problem in the way the context is retrieved by a stat button method in project overview, considering it as a dict when it is now a string to parse. opw-2037280
Code cleanup and technical improvements
Website helpdesk slides and Twitter wall pages now use Odoo's standard method for loading images instead of fixed file links. This makes image handling more reliable and easier to maintain without changing the user-facing features.
Original PR description
Some image links were hard coded in the xml views of website, now they are replaced with website.image_url(model, field). See: odoo/odoo/pull/34149 Task: #2007400
Helpdesk teams will no longer be automatically linked to a default placeholder eLearning course. This avoids irrelevant course assignments and lets users choose the most appropriate course for each team.
Original PR description
…teams PURPOSE eLearning should have its own application in manager. Indeed this is becoming a big application and having it embedded inside Website application is not enough anymore. It should also hold updated and easy-to-use menus, navigation, actions and views in backend. SPECIFICATIONS Default "Our Documentation" dummy default existing course has been removed in master as it makes no sense to have void data. This commit updates helpdesk / slides bridge accordingly. We consider it makes no sense to take the first course when linking an helpdesk team to a course. Let users choose what is relevant instead of taking dummy data. LINKS Task 1978729 PR #35061