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.

0

How to group by in one2many tree view

By
Giezel Esteves
on 10/28/16, 4:24 AM 182 views

How to group by in one2many tree view

5

Nilmar Shereef

--Nilmar Shereef--
811
| 4 3 7
Calicut, India
--Nilmar Shereef--

Python Developer. Android Developer. .Net Developer

Nilmar Shereef
On 10/28/16, 5:20 AM

You mean you have to arrange the fields of one2many ?. Then you should give a view to the one2many object. Then in xml file, give the record id into form_view_ref as context. I think this is the solution (Question is not descriptive, If you clear the question, It may helpfull)

4

Hilar AK

--Hilar AK--
829
| 5 2 7
Italy
--Hilar AK--


Hilar AK
On 11/1/16, 2:01 AM

please try ,

<record id="search_mail_partner_ids" model="ir.ui.view">

    <field name="name">Channel Search</field>

    <field name="model">Your one2many model</field>

    <field name="arch" type="xml">

    <search>

       <group expand="0" name="group_by" string="Group By">

            <filter name="field name" string="string" domain ="[('xxx','yy',zz)]" context="{'group_by':'field name'}" />

        </group>

    </search> 

    </field>

</record>

0
Giezel Esteves
On 10/28/16, 8:31 PM

Something like this:


<field name="one2many_ids">

     <tree>

         <field name="field1"/>

         <field name="field2"/>

    </tree>

</field>


I want to use group by in tree view but I don't know how

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: 10/28/16, 4:24 AM
Seen: 182 times
Last updated: 11/9/16, 3:57 AM