Odoo Help

0

Domain filter based on user or group

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

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.

Register

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)

Stats

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