summaryrefslogtreecommitdiff
path: root/addons/hr_work_entry/models/hr_work_entry.py
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2020-12-01 13:43:46 +0000
committerYannick Tivisse <yti@odoo.com>2020-12-01 13:43:46 +0000
commitdd3773e6b71e0fa687d4f0b5b1b4cbc6b2706ccc (patch)
tree154aef6205b6828210314e7dea88c66ff1f0a8ab /addons/hr_work_entry/models/hr_work_entry.py
parent3761c5f017b2be92075e405f514069295d99ccf5 (diff)
[FIX] hr_work_entry: Make work entry type name translatable
closes odoo/odoo#62623 Related: odoo/enterprise#15020 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/hr_work_entry/models/hr_work_entry.py')
-rw-r--r--addons/hr_work_entry/models/hr_work_entry.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_work_entry/models/hr_work_entry.py b/addons/hr_work_entry/models/hr_work_entry.py
index 00e4a8082ca..9f4344705d8 100644
--- a/addons/hr_work_entry/models/hr_work_entry.py
+++ b/addons/hr_work_entry/models/hr_work_entry.py
@@ -185,7 +185,7 @@ class HrWorkEntryType(models.Model):
_name = 'hr.work.entry.type'
_description = 'HR Work Entry Type'
- name = fields.Char(required=True)
+ name = fields.Char(required=True, translate=True)
code = fields.Char(required=True)
color = fields.Integer(default=0)
sequence = fields.Integer(default=25)