Daily updates from Odoo
Wednesday, December 19, 2018
2 changes · master
Code cleanup and technical improvements
This update reorganizes internal JavaScript customizations in Email Marketing to make the views easier to maintain and less fragile. It also keeps drag-and-drop available in more kanban situations, only disabling it for specific groupings where it should not be used.
Original PR description
Task #1909424 The mass_mailing module used a lot of JS "include" to override the behavior of the kanban view and the html_frame widget. This commit cleans the overrides by using proper inheritance with "extend" instead of "include". It also slightly changes the current behavior of the mass_mailing kanban view to disable the drag and drop feature only when the view is grouped by "state" or "email_from". (Before this commit, the drag and drop feature was disabled for ALL fields). -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update cleans up internal code used by mass mailing screens, making the email campaign views easier to maintain. It also makes campaign board drag-and-drop more flexible by only disabling it for specific groupings where moving items could be inappropriate.
Original PR description
Task #1909424 Community commit: afa71a4ec8d8383e15a8579d49ac31a8483eadbb The mass_mailing module used a lot of JS "include" to override the behavior of the kanban view and the html_frame widget. This commit cleans the overrides by using proper inheritance with "extend" instead of "include". It also slightly changes the current behavior of the mass_mailing kanban view to disable the drag and drop feature only when the view is grouped by "state" or "email_from". (Before this commit, the drag and drop feature was disabled for ALL fields).