Odoo Help


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.


Problem with creating a filter

Mikołaj Dziurzyński
on 5/23/14, 11:04 AM 569 views


Im having problems with creating a filter on stock.picking object. Just recently i build a simple "privilege relay" - in each stock location you can define "Assigned User Group", thanks to that users that are in particular group can or cannot confirm moves for or out of the location.

Stock.picking:location_id -> assigned_user_group -> users

Now I would like to create a filter (later to be set default) on stock picking tree view that will show only the moves which locations (source location and destination location; i use them in stock.picking object) can be managed by a viewing user.

By far I wrote a filter that looks like that, :

<filter icon="terp-check" name="locgroup" string="Location Group" domain="[(uid,'in',[user.id for user in location_id.user_group.users])]" context="{'group_by':'date'}"/>

I also added field location_id to the tree view.

But Im still getting an error (after choosing the filter) that even google doesnt know anything about:

TypeError: results.group_by is undefined

My questions are:

1. By looking on domain in filter field - what am i doing wrong?

2. Is something like that even possible?


I will gladly welcome any help.

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)


Asked: 5/23/14, 11:04 AM
Seen: 569 times
Last updated: 3/16/15, 8:10 AM