diff --git a/survey_template/models/survey_survey.py b/survey_template/models/survey_survey.py index 3a9280d..ac074b1 100644 --- a/survey_template/models/survey_survey.py +++ b/survey_template/models/survey_survey.py @@ -20,11 +20,11 @@ class SurveySurvey(models.Model): # ACTIONS @api.multi - def create_survey_from_template(self): + def create_survey_from_template(self, default=None): self.ensure_one() if not self.is_template: raise UserError(_("You should use the \"Copy\" secondary action to duplicate a non-template survey.")) - return self.copy() + return self.copy(default=default) @api.multi def action_send_survey(self):