You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
477 B
13 lines
477 B
/** @odoo-module */
|
|
import SurveyFormWidget from '@survey/js/survey_form';
|
|
SurveyFormWidget.include({
|
|
/** Get all question answers by question type */
|
|
_prepareSubmitValues(formData, params) {
|
|
this._super(...arguments);
|
|
this.$('[data-question-type]').each(function () {
|
|
if ($(this).data('questionType') === 'upload_file'){
|
|
params[this.name] = [$(this).data('oe-data'), $(this).data('oe-file_name')];
|
|
}
|
|
});
|
|
},
|
|
});
|
|
|