Hi!
Is there a way to hide a workflow button based on logged user?
I'm developping an OpenERP 7.0 Module and in a certain point of this process a user can take a the worflow of to his responsability.
I tried this <button name="take_request" string="Take request" help="Take this request to your responsability" attrs="{'invisible': ['|', ('state','!=','treatment'),('owner','=',user.id)]}" />
(like I would do in a domain rule), but I am getting the following error:
NameError: name 'user' is not defined
If I try <button name="take_request" string="Take request" help="Take this request to your responsability" attrs="{'invisible': ['|', ('state','!=','treatment'),('owner','=','user.id')]}" />
(whit user.id inside quotes) I get no error, but it isn't hiding the button.
Thanks in advance.