Wednesday, September 4, 2024
2 changes · master
Enhancements to existing features
Website Studio now manages website controller pages in a clearer, more reliable way, separating listing pages from individual record pages behind the scenes. The interface for managing these pages has been refreshed, and website form creation is moved to the standard website snippet options so users can expose models as pages more naturally.
Studio exports can now include selected business and demo data, not just customizations, giving administrators more complete packages to reuse across databases. A review wizard, field exclusions, attachment options, and safeguards around user-linked contacts help reduce the risk of exporting sensitive information.
Original PR description
# Main commit: ## [IMP] web_studio: export master and demo data **Before this commit** The studio export feature allows to export all customizations done through Studio. The export action has no UI,…
# Main commit: ## [IMP] web_studio: export master and demo data **Before this commit** The studio export feature allows to export all customizations done through Studio. The export action has no UI, instead the generated module is directly generated and downloaded. **After this commit** The export feature now enables exporting master and demo data as well. The admin user can: - select a set of models to export as master data - choose to export a model as demo data instead - choose to include the related attachments - choose a set of fields not to export There is an autofill button that presets the models to export. As this feature could lead to a leakage of sensible information, a wizard has been implemented to permit the administrator to review the records that will get exported. A warning message also invites him to take extreme caution. As an extra precaution, no res.partner linked to a res.users record will get exported. **Additional Notes** This feature has been developed with a specific usecase as a workhorse, but it is indeed obvious that more complex case will not work out of the box. The export feature will work but some manual review/update is going to be needed in order to make the exported file importable without trouble. The user may also need to modify its exported models by: - modifying the domain to further filter the exported records - modifying the excluded fields Task id: 3446301 Co-authored-by: Bastien Fafchamps <bafa@odoo.com> Co-authored-by: Bruno Boi <boi@odoo.com> Co-authored-by: Khushi Vakil <khva@odoo.com>