Daily updates from Odoo
Friday, January 24, 2025
3 changes · master
Enhancements to existing features
Checkout items are now grouped and labeled so customers can easily distinguish rentals and subscriptions from regular purchases. This reduces confusion about which products are covered by rental periods or subscription terms, and removes the rental period display when no rental items remain in the cart.
Original PR description
Previously there was no differentiation between rented items, subscriptions items and purchased items, creating a misunderstanding with which items does the rental period applies to. This PR reviews the rented and subscribed items to differentiate them from the purchased items on the checkout page. Currently on the cart if the user delete all rental products, the rental period stays in the UI. This is solved with the `cart.js` file. Community PR: https://github.com/odoo/odoo/pull/189905 task-3531721
The Salary Register wizard for Indian payroll now lets users filter employees based on whether their payslips are in Paid or Done status. This makes payroll reporting more precise and helps payroll teams focus on the correct employee records.
Original PR description
Added functionality to the salary register wizard to filter employee records based on the status of their payslips. The filter now includes 'Paid' and 'Done' stages. task-4432467
Gantt views now choose the time scale automatically based on the selected date range, removing separate scale controls such as the range input and plus/minus buttons. This simplifies scheduling screens and keeps planning, attendance, appointment, and work entry timelines consistent while preserving special one-period ranges where operational actions depend on them.
Original PR description
The principal aim of this commit is to remove the range input and the +/- buttons of the gantt view control panel. Those used to allow to modify the scale (the type of columns used by the gantt view)…
The principal aim of this commit is to remove the range input and the +/- buttons of the gantt view control panel. Those used to allow to modify the scale (the type of columns used by the gantt view) independently from the range (the period of time considered). This means that the scale is once again (like before [1]) determined by the type of range used. To achieve this, we have reworked the way ranges and scales are set so that we still keep some of the benefits that were acquired with [1]: - The previous ranges "Today", "This week", "This month", "This quarter", and "This year" have been replaced by new ranges "Day", "Week", "Month", Quarter", "Year". Those ranges are built as 3 period of the given type centered around the current date and use respectively the scales "day", "week", "month", "month", and "year". This works differently in the work_entries_gantt and planning_gantt views. In those views, the ranges are set to be only 1 period of the given type so that buttons like "Copy previous week" still work as expected. - The scale associated with a custom range is determined by its length in days. For example, for a period of more than 365 days, the scale used is "year". In that way, even for the work_entries_gantt and planning_gantt views, it is possible to work in a range a bit bigger than a day or a week for instance while keeping the appropriate scale. This means also that it is no longer possible to look at ten years in hour precisions but this should not be a problem. Task ID: `4350742` [1]: https://github.com/odoo/enterprise/pull/55618