Daily updates from Odoo
Wednesday, October 1, 2025
1 change · master
Code cleanup and technical improvements
The point of sale payment terminal setup has been reorganized to use a shared registry instead of a POS-only mechanism. This does not change current behavior, but it prepares Ingenico, SIX, Worldline, and Tyro payment terminals for reuse in future sales flows such as self-ordering.
Original PR description
* = {iot_ingenico, iot_six, iot_worldline, tyro}
Before this commit, payment terminal JS classes were registered using the `register_payment_method` function in the POS, which added them to an internal map of classes. Then this map was used to instantiate the correct JS class for each payment terminal.
After this commit, we use the `registry` from the `web` module to do the same thing. This has the advantage of not being locked only to the `pos_store` class, meaning in the future we will be able to use this registry in `pos_self_order` also. At this stage though there is no change in functionality.
task-4882726