Daily updates from Odoo
Thursday, April 18, 2024
6 changes · 17.0
Enhancements to existing features
The VAT listing report now displays a warning at the top showing customers with significant turnover (over 250€) who were excluded from the report due to missing information like country or VAT number. Users can directly view and edit these customers from the warning to complete their records and ensure accurate reporting.
Original PR description
In the VAT listing report, a customer might have a turnover of more than 250€ but wasn't added in the report due to missing information such as country or a VAT number. This commit adds a warning with those customers on top of the report with a link to view and edit them. task-3249107
This update significantly speeds up the appointment booking system, particularly when managing multiple resources and capacity changes. The system now processes slot availability checks 5-7 times faster, reducing wait times from several seconds to under a second when updating booking capacities. This improvement enhances the user experience when managing complex appointment scenarios with many linked resources.
Original PR description
- Compute the best resources for a slot only for distinct capacity info and improve performance when updating table booking from 1 to 12 capacities with appointment type with a lot of linked…
- Compute the best resources for a slot only for distinct capacity info and
improve performance when updating table booking from 1 to 12 capacities
with appointment type with a lot of linked resources (tested on Table Booking
without any event booked):
Before: ~105s (local time)
After: ~15s (local time)
This also allows the first slot computation to be a little faster (4s => 3s)
- Don't use intervals_overlap in _slot_availability_is_resource_available:
~15s => ~4s (local time)
It was called a lot because of the default resource calendar and the work intervals
computed from it.
- Single filtered on booking lines for _get_resources_remaining_capacity
Queries count (from profiler - local):
/appointment/4 : ~1500 => ~830
/appointment/4/update_available_slots (capacity -> 12) : ~7700 => ~455
/appointment/4/update_available_slots (capacity 12 -> 1) : ~1130 => ~430
/appointment/4/update_available_slots (capacity 1 -> 12) : ~7700 => ~455
Queries count (profiler - runbot):
/appointment/4/update_available_slots (capacity -> 12) : ~1190 => ~130
task-3640599This improvement adds visibility of appointment slot availability directly in the calendar gantt view. Previously, users couldn't see whether appointments fell within valid time periods defined by appointment slots. The update displays both available and unavailable time slots, making it clearer when appointments can be scheduled.
Original PR description
Appointment slots are not reflected in the gantt view so there are no indications of whether an appointment is within a valid time period with regards to the appointment-defined time intervals. This commit adds slot intervals in gantt availabilities display and attempts to have more common ground between slots and gantt. task-3813567
This update adds new tax configurations for Brazilian service-related transactions to support upcoming service tax calculation and electronic document interchange (EDI) features. The changes expand the tax template data to enable more accurate tax handling for service operations in Brazil.
Original PR description
These will be used in the new service tax calculation and EDI modules. task-3660574
The accounting dashboard now loads significantly faster, reducing load time from 7.32 seconds to 1.6 seconds. This was achieved by optimizing database queries through the addition of supporting indexes and query restructuring to minimize unnecessary data joins. Users will experience a noticeably snappier experience when accessing their accounting dashboard.
Original PR description
## Description Add supporting indexes that are used in the queries generated when openning the accounting dashboard. A query is tweaked to hit those indexes and avoid `JOIN` where possible. ## Benchmark Hot loading the default accounting dashboard, default filters and 1 company selected on a staging database with millions of accounting related entries. | | Before | After | |---------|----------|----------| | Timings | 7.32 sec | 1.6 sec | ## Reference task-3805835 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The notification center activity labels now display with text truncation instead of breaking into multiple lines, ensuring a cleaner and more consistent visual appearance across all languages. This improvement maintains the design integrity of the interface and prevents awkward line wrapping when activity text is longer.
Original PR description
**Current behavior before PR:** In systray activity, for some languages, when there were few activities (exceeded a certain length of text), it would break the line to display the labels.  **Desired behavior after PR is merged:** Now, to maintain the design integrity, the text has been truncated to visually display the labels like "aujourd'hu.." and maintain the design consistency. **Task**-3869856