[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:
parent
50f915f3ac
commit
a519527c72
|
@ -96,7 +96,8 @@ class hr_job(osv.Model):
|
||||||
_description = "Job Position"
|
_description = "Job Position"
|
||||||
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
||||||
_columns = {
|
_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',
|
'expected_employees': fields.function(_get_nbr_employees, string='Total Forecasted Employees',
|
||||||
help='Expected number of employees for this job position after new recruitment.',
|
help='Expected number of employees for this job position after new recruitment.',
|
||||||
store = {
|
store = {
|
||||||
|
|
Loading…
Reference in New Issue