[IMP] crm: search filter for salesteams view
authorChristophe Matthieu <chm@openerp.com>
Wed, 22 May 2013 09:58:42 +0000 (11:58 +0200)
committerChristophe Matthieu <chm@openerp.com>
Wed, 22 May 2013 09:58:42 +0000 (11:58 +0200)
bzr revid: chm@openerp.com-20130522095842-h88ztqk5ltkks7lf

addons/crm/crm_case_section_view.xml

index db47f59..3ef1b56 100644 (file)
                     <field name="parent_id"/>
                     <field name="user_id"/>
                     <field name="note"/>
+                    <filter name="my" string="My" domain="['|', ('member_ids', '=', uid), ('user_id', '=', uid)]"/>
                     <group expand="0" string="Group By...">
-                        <filter string="parent_id" domain="[]" context="{'group_by':'parent_id'}"/>
+                        <filter string="Parent Sales Teams" domain="[]" context="{'group_by':'parent_id'}"/>
                     </group>
                 </search>
             </field>
             <field name="res_model">crm.case.section</field>
             <field name="view_type">form</field>
             <field name="view_mode">kanban,tree,form</field>
+            <field name="context">{'search_default_my': True}</field>
             <field name="view_id" ref="crm_case_section_salesteams_view_kanban"/>
             <field name="help" type="html">
                 <p class="oe_view_nocontent_create">