|
|
@ -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): |
|
|
|