Friday, February 3, 2023
2 changes · master
Code cleanup and technical improvements
Payment information used across sales, subscriptions, and online shop pages is now prepared through one shared process. This reduces duplicate work behind the scenes and makes future payment-related changes easier and more consistent across modules.
Original PR description
The payment values in the Qweb context of sale, sale_subscription and website_sale were computed separately, although there is a large common basis. This split made it hard to communicate between modules and generated a lot of duplicates. The new function `_get_payment_values` in sales is now used as a common basis method for all sale_* modules to get the common payment values. task-3062677 See also: - https://github.com/odoo/odoo/pull/107788
This update streamlines how Helpdesk timesheet entries are prepared by allowing multiple entries to be processed together. It aligns Helpdesk behavior with the broader timesheet system and should improve internal consistency without changing the user experience.
Original PR description
With this commit, we allow _timesheet_preprocess to accept a list of dict of values instead of dict of values, as it has been done in hr_timesheet. related: https://github.com/odoo/odoo/pull/103458 task-3030942