[FIX] hr_contract :In the contract list view, what is department with number

bzr revid: vir@tinyerp.com-20100901060634-141oc75keb7dzl4t
This commit is contained in:
Vir (Open ERP) 2010-09-01 11:36:34 +05:30
parent 60e1c1cefd
commit 35c76a73c6
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ class hr_contract(osv.osv):
_columns = {
'name': fields.char('Contract Reference', size=32, required=True),
'employee_id': fields.many2one('hr.employee', "Employee", required=True),
'department_id': fields.related('employee_id','department_id', string="Department", readonly=True),
'department_id': fields.related('employee_id','department_id', type='many2one', relation='hr.department', string="Department", readonly=True),
'type_id': fields.many2one('hr.contract.type', "Contract Type"),
'job_id': fields.many2one('hr.job', 'Job Title'),
'date_start': fields.date('Start Date', required=True),