I'm trying to get currently logged in user id similar to the usage of
<field name = "domain_force"> [('manager.id', 'in', user.id)] </field>
I want to use it like this
attrs = "{'invisible': [('state', 'in', ['draft', 'approved', 'rejected']), ('manager.id', 'in', user.id)]} "The above code is invalid as I cannot use it to get the current user so as to make it invisible.
It works in the case of domain but not in the case of attrs.