On 2017-09-08 23:02, Khurram Shahzad wrote:
> What if we want to get the specialty of the current user using the
> user Id from context and use it in a domain rule to view list of only
> those records which contain the same specialty?

The context contains only basic value like integers, strings or list but
not record instance because it must be transferred through the network.

> If it is not possible, can we place some key/value data in context and
> refer to it in domain rules just as we referred to '_user'?

You can add more values in the context of the user by extending the list
User._context_fields

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/20170909082151.GA3631%40kei.

Reply via email to