view中怎么用domain筛选user的当前公司
-
-
-
请哪位高手指导下,谢谢
view中怎么用domain筛选user的当前公司current company
下面这样写报错。还有domain里面运算符后面能调用模型里面的方法么?
..............
[('company_id', '=' , self.env.user.company_id)]@sidi113
如果不介意的话,可以写一个m2o的compute字段,辅助view里的domain逻辑。如果要限制domain的话,最好可以在search_read方法里做逻辑,写在py中不是更好吗? -
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login