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

hello odoo community

I have a button in purchase requestion form, it's visible in states of "in_progress" for group1 and group 2 but I want invisible this button if one user of group2 creates purchase requestion in other words I don't want a user to approve his own request

how can I do that?

<button groups="group1,group2" name="tender_done" states="in_progress" string="Done" type="object" icon="gtk-jump-to" />

openerp V6

Ảnh đại diện
Huỷ bỏ

How to visible and invisible fields in odoo: https://goo.gl/BCxCpk

Câu trả lời hay nhất

Whenever you put groups attribute and define than it'll always accessible for that groups users only so why did you put group2 if you are not allow to proceed just remove it

You are defined the group1,group2 on button so basically this button can accessible for both groups access Users 

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 4 24
1424
1
thg 1 24
14257
1
thg 3 22
2279
2
thg 3 18
5062
0
thg 1 18
3174