summaryrefslogtreecommitdiff
path: root/addons/hr_recruitment_survey
diff options
context:
space:
mode:
authorAdrian Torres <adt@odoo.com>2019-07-10 14:59:37 +0200
committerAdrian Torres <adt@odoo.com>2019-07-17 14:13:12 +0200
commit4b38cc6590abcb58a0ca102a06063eb3db7ac1f4 (patch)
treecfd11739fc6b4c0cb4b23b54cc6badad4bf5c55e /addons/hr_recruitment_survey
parentf6fdde96bddfedf8764cd8a73089e44340d476ae (diff)
[REM] *: calls to @api.multi
Multi is the default api for methods, it is not necessary to explicitly decorate methods with it, adds clutter and most people use it because they see that the rest of the code uses it. Done with `find . -type f -name '*.py' | xargs sed -i '/@api.multi/d'`
Diffstat (limited to 'addons/hr_recruitment_survey')
-rw-r--r--addons/hr_recruitment_survey/models/hr_applicant.py2
-rw-r--r--addons/hr_recruitment_survey/models/hr_job.py1
2 files changed, 0 insertions, 3 deletions
diff --git a/addons/hr_recruitment_survey/models/hr_applicant.py b/addons/hr_recruitment_survey/models/hr_applicant.py
index bd784622dc1..22d1fd7030e 100644
--- a/addons/hr_recruitment_survey/models/hr_applicant.py
+++ b/addons/hr_recruitment_survey/models/hr_applicant.py
@@ -9,7 +9,6 @@ class Applicant(models.Model):
survey_id = fields.Many2one('survey.survey', related='job_id.survey_id', string="Survey", readonly=True)
response_id = fields.Many2one('survey.user_input', "Response", ondelete="set null", oldname="response")
- @api.multi
def action_start_survey(self):
self.ensure_one()
# create a response and link it to this applicant
@@ -21,7 +20,6 @@ class Applicant(models.Model):
# grab the token of the response and start surveying
return self.survey_id.with_context(survey_token=response.token).action_start_survey()
- @api.multi
def action_print_survey(self):
""" If response is available then print this response otherwise print survey form (print template of the survey) """
self.ensure_one()
diff --git a/addons/hr_recruitment_survey/models/hr_job.py b/addons/hr_recruitment_survey/models/hr_job.py
index eb24574e55a..72550f53e19 100644
--- a/addons/hr_recruitment_survey/models/hr_job.py
+++ b/addons/hr_recruitment_survey/models/hr_job.py
@@ -11,6 +11,5 @@ class Job(models.Model):
domain=[('category', '=', 'hr_recruitment')],
help="Choose an interview form for this job position and you will be able to print/answer this interview from all applicants who apply for this job")
- @api.multi
def action_print_survey(self):
return self.survey_id.action_print_survey()