[ADD] survey_contact_generation, survey_event_registration_generation

This commit is contained in:
clementthomas
2023-09-12 20:35:16 +02:00
parent 1897ac5a6e
commit 4baaad2054
32 changed files with 1477 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
odoo.define('survey_event_registration_generation.survey.form', function (require) {
'use strict';
var SurveyFormWidget = require('survey.form');
SurveyFormWidget.include({
_prepareSubmitValues: function (formData, params) {
var self = this;
var result = this._super.apply(this, arguments);
this.$('[data-question-type]').each(function () {
if (['event','event_product'].includes($(this).data('questionType'))) {
params[this.name] = this.value;
}
});
return result;
},
})
});