hunk.code_window:         return []
       @api.model
       def _get_anglo_saxon_price_unit(self, uom=False):
           price = self.standard_price
           if not uom or self.uom_id.id == uom.id:
               return price
           return self.uom_id._compute_price(price, uom)
   class ProductCategory(models.Model):
       _inherit = 'product.category'
  
hunk.labels: keep keep keep keep keep replace replace keep keep keep keep keep
hunk.after_edit:         if not self or not uom or self.uom_id.id == uom.id:
               return price or 0.0
  
hunk.file_path: addons/stock_account/models/product.py
hunk.type: replace
file: # -*- coding: utf-8 -*-
  
  from odoo import api, fields, models
  
  
  class HrDepartment(models.Model):
      _inherit = 'hr.department'
  
      new_applicant_count = fields.Integer(
          compute='_compute_new_applicant_count', string='New Applicant')
      new_hired_employee = fields.Integer(
          compute='_compute_recruitment_stats', string='New Hired Employee')
      expected_employee = fields.Integer(
          compute='_compute_recruitment_stats', string='Expected Employee')
  
      @api.multi
      def _compute_new_applicant_count(self):
          applicant_data = self.env['hr.applicant'].read_group(
              [('department_id', 'in', self.ids), ('stage_id.sequence', '<=', '1')],
              ['department_id'], ['department_id'])
          result = dict((data['department_id'][0], data['department_id_count']) for data in applicant_data)
          for department in self:
              department.new_applicant_count = result.get(department.id, 0)
  
      @api.multi
      def _compute_recruitment_stats(self):
          job_data = self.env['hr.job'].read_group(
              [('department_id', 'in', self.ids)],
              ['no_of_hired_employee', 'no_of_recruitment', 'department_id'], ['department_id'])
          new_emp = dict((data['department_id'][0], data['no_of_hired_employee']) for data in job_data)
          expected_emp = dict((data['department_id'][0], data['no_of_recruitment']) for data in job_data)
          for department in self:
              department.new_hired_employee = new_emp.get(department.id, 0)
              department.expected_employee = expected_emp.get(department.id, 0)
  