Daily updates from Odoo
Friday, February 7, 2025
1 change · 18.0
Code cleanup and technical improvements
This change removes an unused internal input from the HTML editor’s text paste handling. It simplifies the code and helps prevent future maintenance issues without changing the user experience.
Original PR description
**Reason**: After PR https://github.com/odoo/odoo/pull/196130, we discovered that the `selection` parameter of `pasteText` was unnecessary. It was not used before calling `insert`, and after that, the selection is outdated. The current selection should instead be retrieved from the selection plugin. **Change**: Remove the unused `selection` parameter from `pasteText`. opw-4558222 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr