# -*- 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)

@@ -55,13 +55,8 @@
 elds
-, api
 %0A%0A%0Ac

remove unused import