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

I have a py file and have set some read only states like this

READONLY_STATES = {

'waiting_admin_approval': [('readonly', True)], 

'done': [('readonly', True)],

'cancel': [('readonly', True)],

}

I have applied this states to the order line and it works fine.  But I need to make the field editable to the purchase manager and read only to the sales person when the order is in the 'waiting_admin_approval' state. 

Is it possible to update the state or override the state value in the view file ?

Thanks in advance.


الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
يوليو 17
4745
1
فبراير 16
4191
2
أكتوبر 15
5214
1
يونيو 19
4919
1
أبريل 19
5500