
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.
Howdy I am so glad I found
Howdy I am so glad I found your site, I really found you by error, while I was searching on Google for something else, Anyways I am here now and would just like to say thanks for a remarkable post and a all round exciting blog (I also love the theme/design), I don't have time to read through it all at the moment but I have book-marked it and also included your RSS feeds, so when I have time I will be back to read more, Please do keep up the great work.
Does your site have a contact
Does your site have a contact page? I'm having trouble locating it but, I'd like to send you an e-mail. I've got some creative ideas for your blog you might be interested in hearing. Either way, great blog and I look forward to seeing it improve over time.
Hello, i think that i saw you
Hello, i think that i saw you visited my blog so i came to “return the favor”.I am attempting to find things to improve my website! I suppose its ok to use a few of your ideas!!
Spot on with this write-up, I
Spot on with this write-up, I seriously believe this website needs a great deal more attention. I'll probably be back again to read more, thanks for the info!
Hi, good tutorials thanks. I
Hi, good tutorials thanks.
I try to use this exactly like you do but doesn't wor in GTK or web. Using 6.0.4 version. Editing /sale_view.xml ln 124.
<field colspan="4" mode="tree,form,graph" name="order_line" nolabel="1" widget="one2many_list" context="{'group_by':'name'}">At this moment I am going to
At this moment I am going to do my breakfast, afterward having my breakfast coming over again to read more news.
Heya exceptional website!
Heya exceptional website! Does running a blog such as this take a great deal of work? I've no understanding of coding however I had been hoping to start my own blog soon. Anyway, should you have any ideas or techniques for new blog owners please share. I know this is off subject however I just had to ask. Many thanks!
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
Hi, Its not working in
Hi,
Its not working in openrp v6.1 web client. Only works with gtk- client
you sure? care to explain?
you sure? care to explain? just thought i'd ask :)