تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
3992 أدوات العرض

Hello, 


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

الصورة الرمزية
إهمال

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

أفضل إجابة

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

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يونيو 20
2754
0
يونيو 20
2505
1
يونيو 21
3642
1
مارس 21
3249
0
يناير 21
2026