crm:[Add] add the section domain in search view

bzr revid: sbh@tinyerp.com-20100111052749-a32pkcemkwuwsb6b
This commit is contained in:
sbh (Open ERP) 2010-01-11 10:57:49 +05:30
parent 73dc6039b2
commit 95d42cbb9b
6 changed files with 34 additions and 6 deletions

View File

@ -207,7 +207,12 @@
<field name="partner_id" select="1"/>
<field name="user_id" select="1" widget="selection"/>
</group>
<field name="section_id" select="1" widget="selection" string="Section"/>
<field name="section_id" select="1" widget="selection" string="Section">
<filter icon="terp-crm"
domain="[('section_id','=',context.get('section_id',False))]"
help="My section"
/>
</field>
</search>
</field>
</record>

View File

@ -169,7 +169,12 @@
</field>
<field name="name" select='1'/>
<field name="user_id" select="1" widget="selection"/>
<field name="section_id" select="1" widget="selection" string="Section"/>
<field name="section_id" select="1" widget="selection" string="Section">
<filter icon="terp-crm"
domain="[('section_id','=',context.get('section_id',False))]"
help="My section"
/>
</field>
</group>
</search>
</field>

View File

@ -206,7 +206,12 @@
<filter icon="gtk-new" domain="[('state','=','draft')]" help="Draft Leads"/>
<filter icon="gtk-yes" domain="[('state','=','open')]" help="Open Leads"/>
</field>
<field name="section_id" select="1" widget="selection" string="Section"/>
<field name="section_id" select="1" widget="selection" string="Section">
<filter icon="terp-crm"
domain="[('section_id','=',context.get('section_id',False))]"
help="My section"
/>
</field>
</group>
</search>
</field>

View File

@ -162,7 +162,12 @@
<separator orientation="vertical"/>
<field name="name" select="1" string="Subject"/>
<field name="partner_id" select="1"/>
<field name="section_id" select="1" widget="selection"/>
<field name="section_id" select="1" widget="selection">
<filter icon="terp-crm"
domain="[('section_id','=',context.get('section_id',False))]"
help="My section"
/>
</field>
<field name="user_id" select="1" widget="selection"/>
</group>
</search>

View File

@ -220,7 +220,11 @@
<field name="state" select="1">
<filter icon="gtk-index" domain="[('state','in',('open','draft'))]" help="Current "/>
</field>
<field name="section_id" select="1" widget="selection" string="Section"/>
<field name="section_id" select="1" widget="selection" string="Section">
<filter icon="terp-crm"
domain="[('section_id','=',context.get('section_id',False))]"
help="My section"/>
</field>
</group>
</search>
</field>

View File

@ -181,7 +181,11 @@
<field name="state" select="1">
<filter icon="gtk-index" domain="[('state','in',('open','draft' ))]" help="Current "/>
</field>
<field name="section_id" select="1" widget="selection" string="Section"/>
<field name="section_id" select="1" widget="selection" string="Section">
<filter icon="terp-crm"
domain="[('section_id','=',context.get('section_id',False))]"
help="My section"/>
</field>
</group>
</search>
</field>