[FIX] hr: Set name field translatable

The job name can be displayed on the
website, which can be translated in several
language. It must therefore be translatable.

Closes #8373
This commit is contained in:
Adrien Peiffer (ACSONE) 2015-09-04 11:08:26 +02:00 committed by Denis Ledoux
parent 50f915f3ac
commit a519527c72
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,8 @@ class hr_job(osv.Model):
_description = "Job Position"
_inherit = ['mail.thread', 'ir.needaction_mixin']
_columns = {
'name': fields.char('Job Name', required=True, select=True),
'name': fields.char('Job Name', required=True, select=True,
translate=True),
'expected_employees': fields.function(_get_nbr_employees, string='Total Forecasted Employees',
help='Expected number of employees for this job position after new recruitment.',
store = {