Daily updates from Odoo
Thursday, December 12, 2024
4 changes · master
Code cleanup and technical improvements
Point of Sale components were adjusted so they can receive the right sales order data directly when used across PoS and Self Order flows. This keeps shared checkout and receipt features more consistent while separating customer display handling where pre-processed data is required.
Original PR description
*: l10n_cl_edi_pos, l10n_de_pos_cert, pos_avatax, pos_blackbox_be, pos_l10n_se, pos_urban_piper Components in the Point of Sale (PoS) context should always be able to receive related model objects as props. Usually, if a component is only used in PoS or Self Order, it can use services to get the needed object. However, if a component is used in both Self Order and PoS, it cannot use services to get the object because the service will be different in each context. Since Self Order and PoS both use the same models, we can pass the model object as props to the component. PoS context components should not be used in the customer display. Since the customer display is a separate context, it receives pre-processed data from PoS. Therefore, we need to create a new component for the customer display.
The field service task setup was simplified by relying on the shared project definition for partner phone information. This reduces duplication behind the scenes and helps keep related project and website project features consistent.
Original PR description
In this commit, we move the partner_phone field in the project module to avoid the duplicate field declaration in website_project. related-https://github.com/odoo/odoo/pull/188581/commits/d958d25629a6e8bc719cb312107ff75a903cf02a task-4357466
This update aligns enterprise mail-related code with the community version by renaming internal channel methods to make their intended private use clearer. It should not change day-to-day behavior for users, but helps keep the codebase consistent and easier to maintain.
Original PR description
Adapt the code based on code in community. odoo/odoo#189366
This change reorganizes automated tests for the Sales Timesheet Enterprise features, especially around leaderboard timer views. It helps maintain reliability of these timesheet experiences without changing day-to-day user functionality.
Original PR description
task-4354311