Tuesday, October 8, 2024
3 changes
2 changes
Code cleanup and technical improvements
This change renames several internal JavaScript models so their names align with related server-side names. It helps keep the codebase clearer and easier to maintain, with no expected change to day-to-day user workflows.
Original PR description
Enterprise counter-part. Part of task-3605717 https://github.com/odoo/odoo/pull/182364
This update simplifies how Odoo determines its internal root path by treating it as a runtime value rather than a configurable option. It supports a broader technical cleanup and should not change how users work with the system.
Original PR description
This commit is part of a larger refactor, see associated PR. While `root_path` was defined as an option, in reality it cannot be set nor via the CLI, nor via the config file. Its value is fully defined at runtime and isn't modified anywhere. Companion of https://github.com/odoo/odoo/pull/126099
1 change
Code cleanup and technical improvements
Restaurant point-of-sale order transfers were streamlined by removing a hidden shared state that made the process harder to maintain. This reduces the chance of transfer-related issues and makes future improvements safer, with little direct change for everyday users.
Original PR description
Backport of https://github.com/odoo/odoo/pull/179363 In pos restaurant when doing a transfer we set the order to transfer in a key of `pos` and then whenever we have a click handler we have to check if there is an order to transfer or not and adapt the code accordingly. This is inconvenient and error prone. In this commit we adapt the code such that we no longer need to store this global state and that the transfering logic is handled in a sequential way. task: 4167376 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr