[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 16:25:42 +02:00
committed by Denis Ledoux
parent 50f915f3ac
commit a519527c72
+2 -1
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 = {