I want the public user (id3) see all products of all companies on front-end shop.
So I add something to the original rule :
But I get this error :
Invalid leaf (8, '=', 3)
Somebody could help?
I think that kind of assignation ('user.id','=',3) does not logically make sense, as the left side argument is normally a field or property that comes from the model, and the right side argument is the value you want to compare it to.
For example, if the model had a field, user_id, then you could use:
('user_id','=',3) or ('user_id','=',user.id)
I don't know if this is a correct example, but your current record rule would be like trying to write a SQL query like:
select * from res_partner where 3=user_id
select * from res_partner where user_id=3;
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
|Asked: 8/10/15, 2:20 PM|
|Seen: 601 times|
|Last updated: 8/10/15, 6:03 PM|