Thursday, May 22, 2025
2 changes · saas-18.3
Code cleanup and technical improvements
The HTML editor's AI-powered translation capability has been separated into its own component. This keeps translation functionality available while reducing internal dependencies, making future maintenance and upgrades easier.
Original PR description
This commit creates a new editor plugin: the chatgpt_translate_plugin which has offers the original translate functionality, now decoupled from the chatgpt_plugin. This was done to avoid a dependency between the ai module and the html_editor module. Also, some dialog files for the previous chatgpt integration were removed and some files were edited as they were fully/partly deprecated. Finally the chatgpt_plugin.test.js file was re-added but renamed as chatgpt_translate.test.js and only includes the original tests that involved the translate functionality. Enterprise PR: https://github.com/odoo/enterprise/pull/85506
The translation feature is being separated from the AI chat tool so each can be maintained and used independently. This keeps the same translation capability available through the editor while making the underlying setup cleaner and easier to evolve.
Original PR description
This commit removes the translate functionality from the chatgpt plugin in the ai module. That is done to effectively decouple the two functionalities since they are independent in their implementations and their use. The translate functionality is added back in the html_editor module as a separate editor plugin. Community PR: https://github.com/odoo/odoo/pull/209931