Thursday, August 31, 2023
4 changes
Code cleanup and technical improvements
The update replaces an older date-handling component with a newer shared one across several Odoo apps. This helps reduce page assets and supports easier maintenance without changing the intended user experience.
Original PR description
luxon and moment are both used in the solution, but these two libraries facilitate the manipulation of dates. It was decided to replace all uses of moment with luxon so we can then remove moment.js from the code and lighten the assets. task-3391739 PR Community : https://github.com/odoo/odoo/pull/133144
Several Odoo Enterprise apps were updated to use the newer shared data search mechanism after the older endpoint was removed. This keeps accounting, documents, payroll, knowledge, timesheets, planning views, maps, and Studio aligned with the core platform change and helps avoid disruption as the old method is phased out.
Original PR description
This PR is the counterpart of odoo/odoo#133617 It adapts the calls to /web/dataset/search_read (which has been removed) and web_search_read (which has been replaced by the unity version). Part of task~3179751
The older way of handling automatic form updates has been removed and replaced by the newer approach across several Odoo Enterprise apps. This keeps the platform more consistent and easier to maintain, with limited direct impact for everyday users.
Original PR description
This replaces the old implementation of `onchange()` by its new implementation `onchange2()`.
This change reorganizes how discussion-related records are added behind the scenes, moving the logic into the data models themselves. It prepares the messaging code for easier maintenance and fewer unexpected side effects, with no intended change for end users.
Original PR description
https://github.com/odoo/odoo/pull/133509 In preparation to clean code of models, e.g. by simplifying model insertion and reducing side-effects in record insertion. This commit moves the implementation of the `insert()` in discuss services to the models, and drop support of the service methods `insert()`. The only way to insert a model is through the store entry, e.g. `store.Thread.insert()`.