Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

how can i create "group by" in search view,with in a day and week?

By
MUHAMMED HASHIR MK
on 7/31/14, 1:32 AM 1,500 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>

1
Mariusz Mizgier
On 7/31/14, 6:58 AM

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.

thank you

MUHAMMED HASHIR MK
on 8/1/14, 12:49 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 7/31/14, 1:32 AM
Seen: 1500 times
Last updated: 3/16/15, 8:10 AM