Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1715 Lượt xem

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


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
1332
2
thg 3 25
1580
0
thg 2 25
1226
0
thg 2 25
1431
0
thg 2 25
1367