Skip to content

Commit a93632d

Browse files
committed
[FIX] hr_holidays: allocation name
When creating an allocation request by employee tag, the name contains 'False on...'. opw-703893
1 parent 1382c08 commit a93632d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addons/hr_holidays/models/hr_holidays.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ def _onchange_date_to(self):
330330
def name_get(self):
331331
res = []
332332
for leave in self:
333-
res.append((leave.id, _("%s on %s : %.2f day(s)") % (leave.employee_id.name, leave.holiday_status_id.name, leave.number_of_days_temp)))
333+
res.append((leave.id, _("%s on %s : %.2f day(s)") % (leave.employee_id.name or leave.category_id.name, leave.holiday_status_id.name, leave.number_of_days_temp)))
334334
return res
335335

336336
def _check_state_access_right(self, vals):

0 commit comments

Comments
 (0)