2018-01-16 11:34:37 +01:00
|
|
|
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
|
2018-01-16 06:58:15 +01:00
|
|
|
|
2018-01-16 11:34:37 +01:00
|
|
|
from flectra import api, fields, models
|
2018-01-16 06:58:15 +01:00
|
|
|
|
|
|
|
|
|
|
|
class Job(models.Model):
|
|
|
|
_inherit = "hr.job"
|
|
|
|
|
|
|
|
survey_id = fields.Many2one(
|
|
|
|
'survey.survey', "Interview Form",
|
|
|
|
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()
|