This question has been flagged
1 Reply
8666 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 ....

Avatar
Discard
Best Answer

Hello Ayham,

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

Salam,

Avatar
Discard
Author

Thanks dear, I think its helpful, will check it