跳至内容
菜单
此问题已终结
1655 查看

[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.


形象
丢弃
相关帖文 回复 查看 活动
1
7月 25
1246
2
3月 25
1502
0
2月 25
1162
0
2月 25
1327
0
2月 25
1273