old_contents: # -*- coding: utf-8 -*-
  from openerp import models, fields, api
  
  
  class Agreement(models.Model):
      _inherit = 'framework.agreement'
  
      def _get_my_department(self):
          my_user = self.env['res.users'].browse(self.env.uid)
          return my_user.employee_ids[0].department_id
  
      department_id = fields.Many2one('hr.department', 'Department',
                                      default=_get_my_department)
  
new_contents: # -*- coding: utf-8 -*-
  from openerp import models, fields
  
  
  class Agreement(models.Model):
      _inherit = 'framework.agreement'
  
      def _get_my_department(self):
          my_user = self.env['res.users'].browse(self.env.uid)
          return my_user.employee_ids[0].department_id
  
      department_id = fields.Many2one('hr.department', 'Department',
                                      default=_get_my_department)
  
subject: remove unused import