[IMP] improve searh view of hr.employee add filter on categories

bzr revid: psi@tinyerp.co.in-20110510133227-fzbbptd2tje5suf8
This commit is contained in:
psi (Open ERP) 2011-05-10 19:02:27 +05:30
parent 7e28aed3a0
commit 3eb0031cae
2 changed files with 11 additions and 10 deletions

View File

@ -143,7 +143,7 @@ class hr_employee(osv.osv):
'work_location': fields.char('Office Location', size=32),
'notes': fields.text('Notes'),
'parent_id': fields.many2one('hr.employee', 'Manager'),
'category_ids': fields.many2many('hr.employee.category', 'employee_category_rel', 'emp_id', 'category_id', 'Category'),
'category_ids': fields.many2many('hr.employee.category', 'employee_category_rel', 'emp_id', 'category_id', 'Categories'),
'child_ids': fields.one2many('hr.employee', 'parent_id', 'Subordinates'),
'resource_id': fields.many2one('resource.resource', 'Resource', ondelete='cascade', required=True),
'coach_id': fields.many2one('hr.employee', 'Coach'),

View File

@ -110,6 +110,7 @@
<filter icon="terp-personal+" domain="[('department_id','=',context.get('department_id',False))]" string="My Departments Employee"/>
</field>
<field name="job_id" widget="selection"/>
<field name="category_ids" select="1" groups="base.group_extended"/>
<field name="parent_id"/>
<newline />
<group expand="0" string="Group By...">