Thursday, November 30, 2023
1 change · master
Code cleanup and technical improvements
The point-of-sale product screen now uses a simpler, more standard way to manage buttons such as Refund and Note. This makes the interface easier to maintain and extend, and also resolves a display issue when customer names are very long.
Original PR description
The pos app currently uses an overly complicated system
for managing the "control buttons" (the buttons from the left
side of the screen, such as "Refund", "Note" etc. ).
In this PR we refactor these buttons such that we now have a
regular owl component called "ControlButtons" which is
responsible for rendering all the buttons.
Modules can introduce new buttons using the normal extension
mechanisms, such as patching the component.
This also fixes the issue arising when the partner name is too long:

Task: 3580519
https://github.com/odoo/enterprise/pull/50039
---
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr