Daily updates from Odoo
Thursday, February 1, 2024
4 changes · master
Enhancements to existing features
Warehouse teams can now decide whether barcode users may add unreserved products during picking operations. Batch picking can also group similar product lines together, helping pickers work faster when handling batches for the same destination.
Original PR description
This PR adds two fields on `stock.picking.type`: - `barcode_allow_extra_product`: True by default, when it's disabled it prevents to add unreserved product while processing an operation in the Barcode App; - `group_lines_by_product`: False by default, when active batch pickings will group move lines if they have the same product (and source/destination in case multi-locations is enabled), like we already do for tracked product. Task-3650361
Smart scheduling now prioritizes tasks that have deadlines and schedules earlier-deadline tasks first. This helps teams focus on time-sensitive work and creates a more practical schedule without relying on project grouping details.
Original PR description
When smart scheduling, prioritize tasks with a deadline over no deadline, then tasks with a shorter deadline over longer ones. Don't group by project (not possible anymore + not very useful) to get the tz, calendar and company. Rather, take the one of the user, or the project you're in the context of, or the env. task-3349377
The planning calendar now shows more complete information on employee schedule entries, including project, sales order, sales line, and allocated hours where relevant. This makes the calendar easier to read and helps managers understand planned work without opening each entry.
Original PR description
Before this commit: -in title sale line name was showing but sale order name was not -if sale line id and project both available then only sale line show and project was not showing -after time event allocated hours was not showing Imp after this commit: -improved the _planning_get method to enhance the display of employee slots in the calendar view. improved event title by incorporating project and sale information -displaying allocated hours alongside event times in the calendar -created dynamic elements to display allocated hours within event time entries. -these changes aim to improve the overall user experience and readability of the calendar view while providing valuable information task-3502106
Financial reports now format values only after the final visible lines are known, avoiding unnecessary work on large reports and improving load times. Integer rounding is also available more consistently across standard and custom dynamic reports, making report presentation easier to control.
Original PR description
[IMP] account_reports: Delayed formatting of values When displaying a report, all the values need to be formatted in order to display the right number of decimal places, currency symbols, ... So far,…
[IMP] account_reports: Delayed formatting of values
When displaying a report, all the values need to be formatted in order to display the right number of decimal places, currency symbols, ...
So far, this was done line by line, before prefix groups were possibly applied. On very big reports needing to be trimmed by a prefix group setup, this was a bit stupid, since we formatted all the values, then decided whether to show them or not (then replacing them with prefix lines). In extreme cases (a few thousands of lines), this could even end up with the report taking entire seconds to just format values uselessly.
This commit gets rid of this behavior, and instead does the formatting after generating the lines, when we're sure they need to be displayed.
--------------------------------
[IMP] {account,l10n_fr,l10n_nl}_reports: generalize integer rounding to dynamic lines
The integer rounding feature was only available on reports computed from expressions so far, not on custom reports relying on dynamic lines. This was due to the fact this feature had to be introduced in stable, and further refactoring was needed in order to make it work for real.
Now that the formatting of the values has been delayed for all lines (static and dynamic) to the end of the _get_lines, we can add support for integer rounding after the generation of dynamic lines. Since the feature is now available on every report, we also make the integer rounding feature a "real" option, with a field controlling it on the report, and a proper _init_options function.
---------------------------------
Task 3059062