[IMP] improved view.

bzr revid: tpa@tinyerp.com-20120720085933-y92kzccb3vf3lpx2
This commit is contained in:
Turkesh Patel (Open ERP)
2012-07-20 14:29:33 +05:30
parent 3b07f7ac91
commit eeeca371e8
+12 -12
View File
@@ -172,18 +172,18 @@
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Search Funds">
<field name="name" string="Fund Description"/>
<field name="state"/>
<field name="user_id"/>
<field name="section_id" string="Sales Team"/>
<filter icon="terp-check" string="New" domain="[('state','=','draft')]" name="current" help="New Funds" />
<filter icon="terp-camera_test" string="Open" domain="[('state','=','open')]" help="Open Funds" />
<filter icon="terp-gtk-media-pause" string="Pending" domain="[('state','=','pending')]" help="Pending Funds" />
<separator/>
<filter string="Unassigned" icon="terp-personal-" domain="[('user_id','=', False)]" help="Unassigned" />
<separator/>
<filter string="Assigned to Me or to My Sales Team(s)" icon="terp-personal+" domain="['|', ('section_id.user_id','=',uid), ('section_id.member_ids', 'in', [uid])]"
help="Fund Raisings that are assigned to me or to one of the sale teams I manage" />
<field name="name" string="Fund Description"/>
<field name="state"/>
<field name="user_id"/>
<field name="section_id" string="Sales Team"/>
<filter icon="terp-check" string="New" domain="[('state','=','draft')]" name="current" help="New Funds" />
<filter icon="terp-camera_test" string="Open" domain="[('state','=','open')]" help="Open Funds" />
<filter icon="terp-gtk-media-pause" string="Pending" domain="[('state','=','pending')]" help="Pending Funds" />
<separator/>
<filter string="Unassigned" icon="terp-personal-" domain="[('user_id','=', False)]" help="Unassigned" />
<separator/>
<filter string="Assigned to Me or to My Sales Team(s)" icon="terp-personal+" domain="['|', ('section_id.user_id','=',uid), ('section_id.member_ids', 'in', [uid])]"
help="Fund Raisings that are assigned to me or to one of the sale teams I manage" />
<group expand="0" string="Group By...">
<filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}" />
<filter string="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}" />