Daily updates from Odoo
Friday, March 15, 2024
20 changes
1 change
Enhancements to existing features
This update enhances the Odoo system by adding a log message to confirm when a data module has successfully been imported into the database. Previously, no log notification was provided upon completion, making it harder to track import successes. This improved logging provides greater visibility and confidence in the data import process.
Original PR description
Before this commit, there was no message in the logs when the import of a data module is finished. This commit adds a log info to state that the module is now in the db. Forward-Port-Of: odoo/odoo#157687
14 changes
Enhancements to existing features
A new automated test checks that table appointments appear correctly in the restaurant point-of-sale view. This helps prevent future changes from breaking appointment visibility for restaurant staff.
Original PR description
This commit adds a test for the pos_restaurant_appointment. The test creates an appointment for a table and checks if the appointment is displayed underneath the table.
Helpdesk canned responses now have clearer access controls so users only see or manage responses appropriate to their role. This reduces accidental misuse while keeping support teams efficient when replying to customers through Helpdesk and live chat.
Original PR description
See https://github.com/odoo/odoo/pull/138486
The document sharing pop-up has been streamlined with clearer defaults, including an automatic name for new share links. This makes sharing documents faster and easier for users while reducing manual setup in related document workflows.
Original PR description
[IMP] documents : improve share modal UI This commit improves the UI of the share form dialog. It adds default name for the link and changes the type of action field from Selection to Boolean. taskid:3177098
Appointment scheduling now shows organizer conflict warnings in the standard appointment app, even when HR leave management is not installed. This helps users spot double-booked appointments earlier, including while creating new events, reducing scheduling mistakes.
Original PR description
When installing appointment_hr, users will get a warning in the small form of the gantt view if there is a conflict between another appointment and this appointment for the organizer. We move that code to appointment so that users may get the warning of conflicting events even when "hr leaves" are not a available. https://github.com/odoo/upgrade/pull/5800 task-3700412
This update standardizes how Odoo checks whether a user belongs to a group, removing older ambiguous behavior and making permission checks more predictable. It affects several business apps but is mainly an internal cleanup intended to reduce confusion and prepare for future simplification of debug-related behavior.
Original PR description
[IMP] base: Remove `user_has_groups` and env.user fallback in `has_group` The user_has_groups method calls `self.env.user.has_group`, with the difference being a split (and the negative group '!' used only for the views) of the provided string and management of `group_no_one` using `request.session.debug`. The use of `user_has_group` is quite confusing because it does not relate to the current record but to the environment. The `has_group` method is also confusing because if it is applied on an empty recordset then there is a fallback on `env.user` otherwise it uses the current record. The change makes it possible to unify the API and remove ambiguity and make method calls explicit, and make the groups independent of the session. Upcoming changes being the removal of group_no_one and decreasing the number of session.debug usages. see: https://github.com/odoo/odoo/pull/151597
Users can now publish social posts that contain images without requiring a written message. This makes image-led campaigns easier to create and keeps tracking information available by using the attachment name when no message is provided.
Original PR description
Purpose ======= Allow posting just images in a social post. Specification ============== This commit allows users to post images without a message. Technical ========= - It replaces the old constraint with `_check_message_or_image_not_empty`. - It alters the way UTM is prepared for social as previously we prepare UTM based on message but now it prepares UTM based on an attachment name if the message is not present. Task-3667674
Gantt views now offer a sparse display mode where each scheduled item appears on its own row, making timelines easier to read. Project task dependency views use this clearer layout, and dependency connectors can now be shown across more grouping levels.
Original PR description
This PR brings two improvements to the gantt view: - a new "sparse" display mode in which each gantt pill is put in its own row. - the possibility to display connectors for any number of groupbys. We also make the project tasks gantt views use the mode "sparse". Part of task `3601456`
Timesheets created on certain unvalidated field service tasks will no longer automatically reuse the task’s sales order line when no matching line is found for the employee. This avoids misleading billing or sales references and makes the timesheet information clearer for users.
Original PR description
Before this commit, when an employee timesheeted in an unvalidated FSM task which has a mapping for that employee and that no SOL was found in the SO according to that mapping, the SOL of the timesheet was set to the SOL of the FSM task by default. Which could lead to confusion for the user. Now, the SOL of the timesheet is set to False in such conditions. task-3510920
Public Knowledge pages now show only the relevant published article subtree instead of every published article, making navigation less cluttered and better scoped to the shared link. Publishing an article also publishes its children so public users can browse the intended section as a focused sub-site.
Original PR description
This commit improves the front-end part of Knowledge which was until now a bit confusing. The old version of the front-end displayed all of the published articles which resulted in the view being really cramped, and a public user could access unrelated articles to the one he was given the link for. When a user publishes an article we now automatically publish its children in order to create subtrees containing a part of the published articles. This way sub-sites are created for the public users, when they access an article via the specific `/knowledge/article/<article_id>`. Only published articles that are below a root, which is the highest published ancestor are thus visible on the front-end. The query counter of the 'test_article_home_page' was adapted as we changed the way the 'first accessible article' is retrieved to also take into account visible articles. task-3607868
This update makes several Odoo screens and flows easier to use, including cleaner marketing automation cards, clearer wording, better WhatsApp template guidance, and improved appointment calendar behavior. It also removes automatic CRM appointment tagging and refreshes placeholder examples so users see more practical guidance.
Original PR description
This PR includes several commits grouped by module / feature. The details are available in commit messages. The main changes are: - Clean the design of marketing automation activity card - Various rewordings - Remove constraints on the whatsapp template buttons - New alias builder placeholders - Remove appointment crm tag COM PR: https://github.com/odoo/odoo/pull/155399 UPG PR: https://github.com/odoo/upgrade/pull/5791 Task-3653289
This update standardizes how the activity and message panel is defined across many business forms. It reduces duplicated setup behind the scenes, making future maintenance easier while keeping the user experience unchanged.
Original PR description
Remove all fields from chatter arch and simply use `<div class="oe_chatter"/>` with optional `options` attribute follow up of odoo/enterprise#57020 [Related Odoo PR](https://github.com/odoo/odoo/pull/156463) [Related Upgrade PR](https://github.com/odoo/upgrade/pull/5780)
The close reasons form for subscriptions now uses clearer wording for portal visibility and includes added guidance. When a close reason is not selectable in the portal, related portal options are hidden, making the setup easier to understand and reducing configuration mistakes.
Original PR description
In this PR, the user interface for the close reasons form is enhanced. the field string visible_in_portal is modified to Selectable in Portal and additional guidance is provided for this field. A new condition is introduced, ensuring that if the field is set to false, the subsequent section becomes invisible otherwise, it remains visible. task-3776667
Referral sharing and social push notifications were updated to keep working with a changed link tracking service. This is a behind-the-scenes compatibility improvement that helps shared links continue to be created reliably.
Original PR description
also impacted: social_push_notifications `linkTracker.search_or_create` now expects a list of dictionaries. See COM PR Task-2788965
The appointment calendar now shows selected and unavailable scheduling areas with clearer colors, making availability setup easier to understand. Existing events no longer appear draggable or interactive while creating availability slots, reducing confusion for users.
Original PR description
### Adapt slot-creation mode colors This PR improves the selected and non-clickable areas in the calendar when the "Schedule availabilities" button is clicked. The background colors of the…
### Adapt slot-creation mode colors This PR improves the selected and non-clickable areas in the calendar when the "Schedule availabilities" button is clicked. The background colors of the `o_calendar_slot` used a green color applied in JS which didn't render well with the black text. This has been removed from the JS to apply the color in the SCSS instead. ### Disable events interaction in slot-creation mode Prior to this commit, when we were in slot-creation mode, we could always hover and drag events that already existed, but nothing happened. To fix this UX issue, we disable all interactions with these events. task-3630630 part of task-3575827 | Before | After | |--------|--------| |  | <img width="1787" alt="Capture d’écran 2024-03-12 à 11 19 17" src="https://github.com/odoo/enterprise/assets/80679690/924f2115-b182-4461-a5e4-53a5b43b3818"> | task-3630630 part of task-3575827
5 changes
Enhancements to existing features
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
The Mexican EDI Extended module has been updated to use Odoo's standard file handling tools instead of outdated system path methods. This change improves reliability when locating files, particularly in complex system setups with symbolic links, and ensures the module works consistently across different environments.
Original PR description
Replace outdated realpath usage with odoo tools.file_open. Allows file_open to locate file from addons path rather than looking up through realpath. This will resolve potential issues with realpath not finding the proper path of files in certain situations (like a symlink). Worth noting that file_open uses abspath instead of realpath anyway. Forward-Port-Of: odoo/enterprise#58659 Forward-Port-Of: odoo/enterprise#58305
This update fixes an issue where discounts were being incorrectly recalculated when a sales order was confirmed. The change ensures that discounts applied to orders remain stable and are not recomputed during the confirmation process, which is particularly important for subscription-based sales. A test has been added to prevent this problem from occurring again in the future.
Original PR description
Add test to cover a problem fixed in `sale_subscription` opw-3740645 See also: https://github.com/odoo/enterprise/pull/58673 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update improves the performance of the accounting reconciliation process by adding a database index to the tax cash basis records. The optimization speeds up the deletion of reconciliation records, resulting in faster reconciliation operations for users working with accounts.
Original PR description
## Description Add missing index on FKey `tax_cash_basis_rec_id` to speed up deletion of `account.partial.reconcile` records during reconciliation. It's `btree_not_null` as the relationship is sparse. ## Reference opw-3649801 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#157415
This update refreshes the Spanish language translations for the Odoo localization module. The changes ensure that Spanish-speaking users have accurate and up-to-date text throughout the system, improving their experience and usability.
Original PR description
Enterprise: https://github.com/odoo/enterprise/pull/58700