[IMP] project_timesheet: improved search view.

bzr revid: tpa@tinyerp.com-20120723071003-snkgc4qt068ap9z2
This commit is contained in:
Turkesh Patel (Open ERP) 2012-07-23 12:40:03 +05:30
parent 53c29660fc
commit a95e3ad66e
2 changed files with 5 additions and 9 deletions

View File

@ -47,8 +47,9 @@
<field name="type">search</field>
<field name="inherit_id" ref="project.view_project_project_filter"/>
<field name="arch" type="xml">
<xpath expr='//filter[@string="Member"]' position='after'>
<filter icon="terp-camera_test" string="Billable" domain="[('to_invoice','!=', False)]" help="Billable Project"/>
<xpath expr='//filter[@string="Project(s) Manager"]' position='after'>
<separator/>
<filter icon="terp-camera_test" string="Billable" domain="[('to_invoice','!=', False)]" help="Billable Project"/>
</xpath>
</field>
</record>

View File

@ -30,15 +30,10 @@
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Tasks by User">
<group>
<field name="name" string="Date"/>
<separator orientation="vertical"/>
<field name="user_id"/>
</group>
<newline/>
<field name="name" string="Date"/>
<field name="user_id"/>
<group expand="1" string="Group By...">
<filter string="User" name="group_user_id" icon="terp-personal" context="{'group_by':'user_id'}"/>
<separator orientation="vertical"/>
<filter string="Month" icon="terp-go-month" context="{'group_by':'month'}" help="Group by month of date"/>
<filter string="Year" icon="terp-go-year" context="{'group_by':'year'}" help="Group by year of date"/>
</group>