Tuesday, April 4, 2023
7 changes · master
Code cleanup and technical improvements
Point of Sale popup screens were updated to rely on the newer internal service structure instead of older legacy components. This keeps the checkout experience technically cleaner and easier to maintain, with no intended change to cashier workflows.
Original PR description
This is a continuation of the effort of making pos addons independent from legacy web modules. In this commit, the popups are now completely independent from the legacy environment. `env.pos` inside each popup is no longer pointing to the instance of `PosGlobalState` (`globalState`). To access the `globalState` inside each popup, we have to read it from the `pos` service (via the `usePos` hook) which is done in this commit. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The Kanban board’s quick-create process has been reorganized to use a simpler, more focused approach within the Kanban view. This reduces internal complexity and should make future maintenance more reliable without changing the overall user workflow.
Original PR description
This commit uses an extension of the form view controller as the kanban's record quick create. This is done to simplify the relational model and the kanban record quick create. part-of task-id 3179751
This update changes much of Odoo's web code to use modern browser module loading instead of an older internal format. It is mainly an internal cleanup that should make the web client easier to maintain and prepare for simpler startup code, with little direct impact on day-to-day users.
Original PR description
This commit converts almost all odoo module by native module. The goal is to deprecate odoo.define in favor of native module and then simplify boot.js by removing the regexp that finds module dependencies. task id: 3162300
This update reorganizes internal parts of Odoo's Mail module that manage message-related data updates. It should make the code easier to maintain and reduce risk in future mail and messaging changes, without introducing direct user-facing changes.
Original PR description
Task-3037277
This update cleans up how Odoo's internal email and SMS tests are organized by removing unnecessary duplicate test helper classes. It makes the test structure easier to maintain and supports future separation of test add-ons without affecting end users.
Original PR description
Remove 'TestMailCommon' and 'TestSMSCommont' test classes. Use MailCommon or SMSCommon when possible to ease move of test addons and inheritance. 'TestMailCommon' was useless and is replaced by the 'MailCommon' class defined directly in Mail addon, easing inheritance and imports. 'TestSMSCommon' was useless and is replaced by the 'SMSCommon' class defined directly in SMS addon, easing inheritance and imports. See community PR for more details. Task-3263512
The pull request streamlines internal SMS-related test setup by using the shared SMS testing base directly. This reduces maintenance overhead for developers without changing how business users experience the product.
This update modernizes the internal code behind Mexico-specific Point of Sale invoicing popups. It helps keep the feature aligned with the newer Odoo interface framework, reducing future maintenance risk without changing day-to-day user workflows.
Original PR description
Part of https://github.com/odoo/odoo/pull/116307.