Thursday, April 6, 2023
3 changes · master
Code cleanup and technical improvements
This change removes unused internal logic from Point of Sale invoice generation related to cash rounding. It does not change expected behavior, but helps keep the code simpler and easier to maintain.
Original PR description
When generating invoice for PoS orders, if a cash rounding is applied, a cash rounding line is generated. Thus it is not possible to have `rounding_applied` and NOT `rounding_line`. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update simplifies how Odoo's web views prepare and load data by removing unused internal parameters. It does not introduce visible feature changes, but it helps keep the web interface code easier to maintain and less error-prone over time.
Original PR description
This commit removes the onCreate param in Kanban, as it is no longer useful since [1]. It also removes the beforeLoadProm param and replaces it by an onWillStart option, which is slightly cleaner (there was no reason for this to be a model param as it is only used by the useModel hook). [1] 067bcac53336b5f66f695b1c10b333d8c722225d Part of task 3179751 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update adapts Point of Sale enterprise modules to a newer internal structure for customer displays and device integrations. It helps keep certified localizations and IoT-connected POS setups compatible with the latest platform changes, with little direct change for end users.
Original PR description
Community: https://github.com/odoo/odoo/pull/117290