Odoo Help

0

How to group by in one2many tree view

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

How to group by in one2many tree view

5

Nilmar Shereef

--Nilmar Shereef--
1488
| 4 4 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

--Hilar--
1914
| 5 3 8
Malappuram, India
--Hilar--
  Blog:-
        https://hilarlive.wordpress.com/
  StackOverflow:
        http://stackoverflow.com/users/7561347/burmese-pythis

Hilar
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

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 10/28/16, 4:24 AM
Seen: 512 times
Last updated: 11/9/16, 3:57 AM