[IMP] improved search view of lunch module.

bzr revid: tpa@tinyerp.com-20120724060638-zqfw9dzfqrbofa7e
This commit is contained in:
Turkesh Patel (Open ERP) 2012-07-24 11:36:38 +05:30
parent 82c72fe0dc
commit 8c9f39e52d
3 changed files with 2 additions and 9 deletions

View File

@ -66,7 +66,6 @@
<field name="date" string="Creation Date"/>
<field name="date_closed"/>
</group>
<newline/>
<group expand="1" string="Group By ...">
<filter string="Responsible" name='User' icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/>
<filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>

View File

@ -114,8 +114,7 @@
<field name="category_ids"/>
<filter icon="terp-document-new" string="New" domain="[('state','=', 'draft')]" help="New Ideas"/>
<filter icon="terp-camera_test" string="In Progress" domain="[('state','=', 'open')]" help="Open Ideas"/>
<filter icon="terp-check" string="Accepted"
domain="[('state','=','close')]" help="Accepted Ideas" />
<filter icon="terp-check" string="Accepted" domain="[('state','=','close')]" help="Accepted Ideas" />
<group expand="0" string="Group By...">
<filter icon="terp-personal" string="Creator" help="By Creators" context="{'group_by':'create_uid'}"/>
<filter icon="terp-stock_symbol-selection" string="Category" help="By Idea Category" context="{'group_by':'category_ids'}"/>

View File

@ -25,19 +25,14 @@
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Lunch Order Analysis">
<group>
<field name="date"/>
</group>
<newline/>
<field name="date"/>
<group expand="0" string="Group By...">
<filter string="User" name="User" icon="terp-personal" context="{'group_by':'user_id'}"/>
<filter string="Box" icon="terp-dolar" context="{'group_by':'box_name'}"/>
<separator orientation="vertical"/>
<filter string="Day" icon="terp-go-today" context="{'group_by':'day'}"/>
<filter string="Month" icon="terp-go-month" context="{'group_by':'month'}"/>
<filter string="Year" icon="terp-go-year" context="{'group_by':'year'}"/>
</group>
<newline/>
</search>
</field>
</record>