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 do I create a rule definition to filter leaves by the logged in user's department?

By
Kevin Carlo Samaniego
on 6/25/13, 8:48 AM 1,394 views

I'm trying to create a rule so that a particular group could only see leaves (requests and summary) from people under their own department.

The syntax in creating a Rule Definition (Domain Filter) is [('field name','operator','value')] am I right? Which fields can I use? I want to be able to get the logged-in user's department then use that value to control which leaves would show.

0
Stone
On 5/12/14, 11:38 PM

you can use this in Rule Definition inside Group : [('department_id','=',user.context_department_id.id)]

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

0 follower(s)

Stats

Asked: 6/25/13, 8:48 AM
Seen: 1394 times
Last updated: 3/16/15, 8:10 AM