hunk.code_window:     @api.multi
       def name_get(self):
           res = []
           for leave in self:
               if leave.type_request_unit == 'hour':
                   res.append((leave.id, _("Allocation of %s : %.2f hour(s) To %s") % (leave.holiday_status_id.name, leave.number_of_hours_display, leave.employee_id.name)))
               else:
  
hunk.labels: keep keep keep replace replace replace keep
hunk.after_edit:         for allocation in self:
               if allocation.holiday_type == 'company':
                   target = allocation.mode_company_id.name
               elif allocation.holiday_type == 'department':
                   target = allocation.department_id.name
               elif allocation.holiday_type == 'category':
                   target = allocation.category_id.name
  
hunk.file_path: addons/hr_holidays/models/hr_leave_allocation.py
hunk.type: replace
file: # -*- coding: utf-8 -*-
  # Part of Odoo. See LICENSE file for full copyright and licensing details.
  
  from . import hr_employee
  