From ed3d6aff8196f5f270b0a77a0076fd6e75f28d55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 28 Jul 2015 18:01:45 +0200 Subject: [PATCH] [IMP] hr_recruitment: have a default stage for newly created jobs as there is no more column sharing anymore. This ease the use of the application by having a lightweight data to customize. --- addons/hr_recruitment/models/hr_job.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/hr_recruitment/models/hr_job.py b/addons/hr_recruitment/models/hr_job.py index 0eb49e1ab64..275bad13450 100644 --- a/addons/hr_recruitment/models/hr_job.py +++ b/addons/hr_recruitment/models/hr_job.py @@ -1,6 +1,6 @@ # Part of Odoo. See LICENSE file for full copyright and licensing details. -from openerp import api, fields, models +from openerp import _, api, fields, models class Job(models.Model): @@ -23,7 +23,8 @@ class Job(models.Model): user_id = fields.Many2one('res.users', "Recruitment Responsible", track_visibility='onchange') stage_ids = fields.Many2many( 'hr.recruitment.stage', 'job_stage_rel', 'job_id', 'stage_id', - 'Job Stages') + 'Job Stages', + default=[(0, 0, {'name': _('New')})]) document_ids = fields.One2many('ir.attachment', compute='_compute_document_ids', string="Applications") documents_count = fields.Integer(compute='_compute_document_ids', string="Documents") survey_id = fields.Many2one(