İçereği Atla
Menü
Bu soru işaretlendi
3508 Görünümler

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.


Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Tem 17
4691
1
Şub 16
4115
2
Eki 15
5134
1
Haz 19
4791
1
Nis 19
5380