[FIX] hr: company id on hr department

bzr revid: mra@tinyerp.com-20100322051240-byensh9ui94azs3k
This commit is contained in:
mra (Open ERP) 2010-03-22 10:42:40 +05:30
parent c4a4cebdd2
commit 3c2cd6a12a
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class hr_department(osv.osv):
_columns = {
'name': fields.char('Department Name', size=64, required=True),
'complete_name': fields.function(_dept_name_get_fnc, method=True, type="char", string='Name'),
'company_id': fields.many2one('res.company', 'Company', select=True, required=True),
'company_id': fields.many2one('res.company', 'Company', select=True, required=False),
'parent_id': fields.many2one('hr.department', 'Parent Department', select=True),
'child_ids': fields.one2many('hr.department', 'parent_id', 'Child Departments'),
'note': fields.text('Note'),