Skip to Content
Menu
This question has been flagged
1134 Views

[Sorry if this topic are duplicated, I land in a 404 page after post]

Hey, I'm in Odoo Studio and I try to make a button accessible (visible/not) depending on a selection field.

I tried multiple things, because I read somewhere that we can't use current user data in attrs. So I try with the domaine, but it didn't work (maybe it's not for this use case ?).

Then I tought about T tags and filled it with the current user and made my if-else condition like so:

(url) i.gyazo.com/e159f906ac9977ec9c96ecd5cbae2628.png

In the selection tag I got multiple value where 'HH' and 'LY' are mentionned, but it's appear that the T tags are not taking in count. Why so ? Even when I put the t-if directly in the ATTRIBUTE tag.

I can't use groups to make the job because I need to do some specific instructions, this section will help me so. But seems to not working.


Avatar
Discard
Related Posts Replies Views Activity
1
Sep 24
675
1
Sep 24
138
0
Aug 24
118
1
Apr 24
7138
3
Mar 24
600