This question has been flagged
1 Reply
7439 Views

this is my code..........

<record id="view_candf_search" model="ir.ui.view">
            <field name="name">kv.attendance.search</field>
            <field name="model">kv.attendance</field>
            <field name="arch" type="xml">
                <search string="Search Here">
                    <field name="truck_id" string="Truck"/>
                   
                    
                    <group expand="0" string="Group By...">
                        <filter string="Date" icon="terp-personal" domain="[]" context="{'group_by':'date'}"/>
                        <filter string="Truck" icon="terp-personal" domain="[]" context="{'group_by':'truck_id'}"/>
<!--                        <filter string="Coach" icon="terp-personal" domain="[]"/>-->
                              </group>


                       <field name="truck_id" string="Truck"/>
                  
               </search>
            </field>
            </record>

Avatar
Discard
Best Answer

You should look at http://stackoverflow.com/questions/14537302/want-to-show-data-group-by-year-month-week-in-openerp-7 - everything is written there and will do job for your needs.

Avatar
Discard
Author

thank you