India

ZestyBeanz Technologies Pvt Ltd 4th Floor, Nila, Technopark Thiruvananthapuram,
India – 695581
Phone: +91 471 4063254
Fax : +91 471 2700171

   .

ZestyBeanz Technologies Pvt Ltd
61/3236, Manikkath Cross Road
Ravipuram, Kochi, India - 682016
Phone: +91 484 4063254

  UAE

Zesty Labs
Office # 2003, Millennium Plaza Building
Sheikh Zayed Rd, Dubai, UAE
Phone: +971 4333 2222​
Mobile: +971-52-7553466

  Germany​

ZestyBeanz Technologies GmbH
Reuterstraße 1
90408 Nürnberg
Fon: +49 911 4801 444
Fax: +49 911 4801 445

Filtering in one2many fields -OpenERP

Contact Form


omalbastin's picture

Filtering in one2many fields -OpenERP

Last week I got into a situation that I really need to use filtering in tree view of one2many field. I have seen the use of filtering in search view, but not in tree view of a one2many field.
Example:
Note:this is just an example.
I have created a sale order. Here same product comes 2 or 3 times.

Then I was thinking for a solution... then came to find out that we can pass the filter condition in one2many fields as we provide in search views.

<code><field name="order_line" mode="tree,form" colspan="4" nolabel="1" widget="one2many_list" context="{'group_by':'name'}"></code>

Then I was able to get the filter view.

You just need to provide context="{'group_by':'field_name'}".Here field_name is the name of the field in the tree view of the one_2many field.

ishu's picture

I have done the same but not

I have done the same but not getting the result..m using 6.1 version.please help me to sort out the problem

omalbastin's picture

Hi, Its not working in

Hi,

Its not working in openrp v6.1 web client. Only works with gtk- client

chick23's picture

you sure? care to explain?

you sure? care to explain? just thought i'd ask :)

Leia's picture

Hi, I chehk your blog on a

Hi, I chehk your blog on a regular basis. Your writing style is witty,
keep up the good work!

Boyd's picture

Appreciating the time and

Appreciating the time and energy you put into your website and detailed information you provide. It's great to come across a blog every once in a while that isn't the same old rehashed information. Wonderful read! I've saved your site and I'm including your RSS feeds to my Google account.

Anonymous's picture

thankssss for share with us

thankssss for share with us

Vishnu Devaraj's picture

An interesting Discovery...

An interesting Discovery... :)

hyatto's picture

Very interesting information,

Very interesting information, I tested with ( context="{'group_by':'field_name'}" ) and it works only in GTK.

Omal Bastin's picture

It works in web client too.

It works in web client too. But you have to open the record for editing to see this view.

ishu's picture

I am not getting it..please

I am not getting it..please help