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

I have been developing module for OpenERP-7. I wanted to know that how can I disable create/delete button for specific function. Like I am clicking on a button to open a tree view. All I want is to disable the create button form top of that tree view. How can I achieve this in OpenERP. I dont have any other ml view for this tree view. I am calling the only tree view. But this time I dont need the create/discard button. Can anyone guide me how to do this. Hopes for suggestion and guidance

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi

Try this code

 

<tree string="Your Tree view name" edit="false" create="false" delete="false">

This code remove create,write and delete button

 

Ảnh đại diện
Huỷ bỏ
Tác giả

But this will remove create/delete button from every tree view of the model. I just want to disable them when coming through my specific button

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 23
11842
3
thg 7 22
21973
2
thg 6 21
17744
0
thg 9 20
3135
0
thg 5 16
3469