Daily updates from Odoo
Wednesday, November 21, 2018
2 changes · master
Code cleanup and technical improvements
The survey invitation tool was cleaned up so it no longer carries unused email composer behavior behind the scenes. This makes the survey module easier to maintain while keeping the invitation-sending experience focused on its business purpose.
Original PR description
Purpose of this merge is to clean survey composer model. It currently inherits from mail.compose.message which also inherits from mail.message. That means a lot of fields and behavior coming from…
Purpose of this merge is to clean survey composer model. It currently inherits from mail.compose.message which also inherits from mail.message. That means a lot of fields and behavior coming from both models are present on the survey composer. Most of them are not necessary as * send_mail method of mail composer is overriden and super is not called. Nothing from the complex behavior of mail.compose.message is used; * templates are just basically supported in survey, notably mass mailing or mass posting mode are not used; * methods from mail.message should not be available on survey composer; * most m2m fields coming from mail.message and composer have no use here; In this merge we simply add the required fields and template behavior on the survey composer and remove inheritance on mail.compose.message. In this merge we also rename survey.mail.compose.message to survey.invite as it simplifies code and is easier to understand. This commit is linked to task ID 1909804.
The appraisal module was updated to work with recent changes in Odoo's survey tools. This keeps appraisal survey invitations functioning correctly after the underlying survey component was renamed and refactored.
Original PR description
Purpose is to adapt enterprise code to community changes in survey module. This commit is linked to task ID 1909804.