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

Domain filter based on user or group

By
Ayham
on 2/10/16, 1:24 AM 550 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 ....

0

Ahmed M.Elmubarak

--Ahmed M.Elmubarak--
2988
| 5 3 5
Sudan
--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 ...

Salam,

Thanks dear, I think its helpful, will check it

Ayham
on 2/10/16, 4:01 AM

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)

Stats

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