[IMP] Adding section_id field in search view,My department filter is removed
authorRCH(Open ERP) <>
Tue, 5 Jan 2010 11:26:59 +0000 (16:56 +0530)
committerVir (Open ERP) <vir@tinyerp.com>
Tue, 5 Jan 2010 11:26:59 +0000 (16:56 +0530)
bzr revid: vir@tinyerp.com-20100105112659-13nhf0kywwn06hgy

addons/crm/crm_claims_view.xml
addons/crm/crm_fund_view.xml
addons/crm/crm_lead_view.xml
addons/crm/crm_meeting_view.xml
addons/crm/crm_opportunity_view.xml
addons/crm/crm_phonecall_view.xml
addons/crm/crm_view.xml

index f2fb7f4..7f99630 100644 (file)
                        <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"/>
                </search>
             </field>
         </record>
index f5b5278..6f4f303 100644 (file)
                        </field>
                        <field name="name" select='1'/>
                        <field name="user_id" select="1" widget="selection"/>
+                                          <field name="section_id" select="1" widget="selection" string="Section"/>
                    </group>
                </search>
             </field>
index 3c18752..67f081d 100644 (file)
                 />
                </group>
                <separator orientation="vertical"/>
-               <group col="4" colspan="2">
+               <group col="6" colspan="2">
                    <field name="name" select="1"/>
                    <field name="user_id" select="1" widget="selection">
                            <filter icon="terp-partner"
                        <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"/>
                </group>
            </search>
         </field>
index 890571d..72c462d 100644 (file)
         <field name="type">search</field>
         <field name="arch" type="xml">
                <search string="Search Meetings">
-                               <group col="10" colspan="4">
+                               <group col="12" colspan="4">
                                        <filter icon="terp-crm" string="My Meetings" domain="[('user_id','=',uid)]" help="My Meetings"/>
                                <filter icon="terp-crm" string="Draft" domain="[('state','=','draft')]" help="Draft Meetings"/>
                            <filter icon="terp-crm" string="Confirmed" domain="[('state','=','done')]" help="Confirmed Meetings"/>
                                <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="user_id" select="1" widget="selection">
                                <filter icon="terp-crm" domain="[('user_id','=',uid)]" help="My Meetings"/>
-                               <filter icon="terp-crm" domain="[('user_id','child_of',[uid])]" help="My Departments Meetings"/>
                         </field>
                        </group>
                 </search>
index ffd645f..b756009 100644 (file)
                 />
                        </group>
                <separator orientation="vertical"/>
-               <group col="5" colspan="2">
+               <group col="6" colspan="2">
                    <field name="name" select="1" string="Opportunity"/>
                    <field name="user_id" select="1" widget="selection">
                        <filter icon="terp-partner"
                    <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"/>
                </group>
            </search>
         </field>
index fd99cd2..2febcc7 100644 (file)
                    />
                </group>
                <separator orientation="vertical"/>
-               <group col="4" colspan="2">
+               <group col="6" colspan="2">
                        <field name="name" select='1' string="Subject"/>
                                <field name="user_id" select="1" widget="selection">
                                <filter icon="terp-partner" domain="[('user_id','=',uid)]" help="My Phonecalls" default="1"/>
                    <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"/>
                    </group>
            </search>
         </field>
index 2ad03e9..bd4a44e 100644 (file)
                        <field name="name" select='1'/>
                        <field name="user_id" select="1" widget="selection"/>
                    </group>
+                                        <field name="section_id" select="1" widget="selection" string="Section"/>
                </search>
             </field>
         </record>
                <search string="Search Histories">
                                <filter icon="terp-crm" string="My Histories" domain="[('user_id','=',uid)]" help="My Histories"/>
                                <separator orientation="vertical"/>
+                     <group col="6" colspan="2">
                                <field name="date" select="1"/>
                     <field name="user_id" select="1" widget="selection"/>
                     <field name="case_id" select="1"/>
+                                        <field name="section_id" select="1" widget="selection" string="Section"/>
+                                       </group>
                 </search>
                </field>
        </record>