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

Hello, 


How can i make edit and delete button invisible for users after request has been created and submitted?

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

You can override (create,delete and write) method and raise validation to prevent users to delete or create record.

Reference: http://learnopenerp.blogspot.com/2017/11/how-to-override-odoo-functions.html

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

What about setting a flag like submitted=True/False? You can set it in controller and check it on the website.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 6 20
2772
0
thg 6 20
2551
1
thg 6 21
3668
1
thg 3 21
3264
0
thg 1 21
2067