Daily updates from Odoo
Thursday, December 26, 2024
2 changes · master
Enhancements to existing features
Product public descriptions are now available directly in the Point of Sale product information popup. This helps store staff see customer-facing product details in the PoS terminal without needing extra self-order or delivery integrations installed.
Original PR description
Before this commit: ========== - The public description field is only visible in the product form after the `pos_self_order` or `pos_urban_piper` modules have been installed. - We are not providing a public description in the product information popup for the PoS terminal. After this commit: ========== - The public description field is visible after the `point_of_sale` module is installed in the product form view. - Public description is available in the product information popup for the PoS terminal. task- 4337758 Related: https://github.com/odoo/odoo/pull/189122
Resolved issues and error corrections
Duplicated shifts in Planning now recalculate allocated hours when assigned to a different employee. This prevents employees with different working schedules from receiving incorrect planned hours, improving schedule accuracy and payroll-related planning data.
Original PR description
Steps to reproduce: ------------------- 1. Install Planning app 2. Have an employee A with 40h/week working schedule and an employee B with 35h/week working schedule 3. Create a shift and assign it to employee A, the default allocated hours should be 8h 4. From the Gantt view, duplicate this shift and assign it to employee B (use drag and drop) 5. Problem: The allocated hours of the duplicated shift are not recomputed, they are equal to 8h instead of 7h Fix: ------------------- When duplicating a shift and assigning it to another resource, the copy() method is called with the resource_id of the target resource (an employee in this case). But _compute_allocated_hours() is not called so we have to call it explicitly in this case. task-3978590