Tuesday, January 24, 2023
1 change · master
Resolved issues and error corrections
This fix ensures Helpdesk website form editing components load in the correct website editor bundle. It prevents missing dependency errors when editing website forms, improving reliability for teams managing Helpdesk forms online.
Original PR description
See community commit for additional changes. Prior to this commit, modules that add elements (fields, references, etc.) to the website_form registry, would do so inside the `website.assets_editor`…
See community commit for additional changes. Prior to this commit, modules that add elements (fields, references, etc.) to the website_form registry, would do so inside the `website.assets_editor` bundle. It creates a module dependency error since [1] + [2]: The form options (`s_website_form/options.js`) defined in `website.assets_wysiwyg` requires the registry defined in `website.assets_editor`. But since [1] and [2], the `website.assets_wysiwyg` bundle is loaded inside the iframe without `website.assets_editor`, as only `website.assets_wysiwyg` is needed to properly display and interact with the editor. (Most of the bundle is not necessary and a later IMP will either only load the CSS needed or split the bundle). This commit moves the modules that creates the registry as well as modules that extend it to the `website.assets_wysiwyg` bundle, fixing the dependency error. Though they are not required inside the iframe, the bundle can now be loaded without the need of assets_editor, removing the missing dependencies. [1]: https://github.com/odoo/odoo/commit/03c552690b15cbf2e7d6b7812386ac64042219af [2]: https://github.com/odoo/odoo/commit/a154ee7ad6fd3ebdd38943e1439badae11c3151d See also PR Community: https://github.com/odoo/odoo/pull/110811