[IMP] hr: Add a group_by on the hr.employee tree view

bzr revid: stephane@openerp.com-20100309164445-s9f822ibwk61wf30
This commit is contained in:
Stephane Wirtel 2010-03-09 17:44:45 +01:00
parent dc79eb07c6
commit 8da8494c81
1 changed files with 6 additions and 1 deletions

View File

@ -106,9 +106,14 @@
<field name="job_id" widget="selection"/>
<field name="department_id" widget="selection"/>
<field name="parent_id">
<filter icon="terp-partner" domain="[('parent_id','child_of',uid)]" help="Employees under me"/>
<filter icon="terp-partner" domain="[('parent_id','child_of',uid),('id', '!=', uid)]" help="Employees under me"/>
</field>
</group>
<newline />
<group expand="1" string="Group By..." colspan="11" col="11">
<filter string="Manager" icon="terp-sale" domain="[]" context="{'group_by':'parent_id'}"/>
</group>
</search>
</field>
</record>