Odoo Help


Domain filter based on user or group

on 2/10/16, 1:24 AM 1,135 views

How I can make domain filter on many2one feilds like account_id field in purchase receipt based on user or group, i.e. if User1 open the form he can see only accounts of user_type "General Expenses" and if User2 open the form he can see accounts of type "expense" etc..

Logically it could be like : if user1: use domain1, if user2: use domain2 ....

--Ahmed M.Elmubarak--

Ahmed M.Elmubarak
On 2/10/16, 1:55 AM

Hello Ayham,

I think you need to override fields_view_get function, this question may give some clues ...


Thanks dear, I think its helpful, will check it

on 2/10/16, 4:01 AM

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.


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)


Asked: 2/10/16, 1:24 AM
Seen: 1135 times
Last updated: 2/10/16, 1:55 AM