Wednesday, January 4, 2023
1 change · master
Code cleanup and technical improvements
This change reorganizes how link editing forms are updated in the website editor, separating form updates from link preview updates. It is mainly an internal cleanup that makes future maintenance safer without changing the visible editing workflow for users.
Original PR description
The link-related classes were updated in [1] to distinguish between the update of their "edition form" and the update of the link "preview". To make this change possible without breaking stable versions, some of the old method names had to be kept. This commit makes the changes that could not be done in stable to differentiate the event handler parts: the intermediary `__onURLInput` is removed, and an `_adaptForm` is introduced to specifically handle the edition form part. [1]: https://github.com/odoo/odoo/commit/54746012d37c457d4c2f32d419b03f21cd8718f9 opw-3086198 task-3096806