Make sure status field is readonly when creating new batch
This commit is contained in:
parent
37b9a81344
commit
bdbb8e2a7d
|
@ -274,6 +274,9 @@ class BatchMasterView(MasterView):
|
||||||
f.set_label('rowcount', "Row Count")
|
f.set_label('rowcount', "Row Count")
|
||||||
|
|
||||||
# status_code
|
# status_code
|
||||||
|
if self.creating:
|
||||||
|
f.remove_field('status_code')
|
||||||
|
else:
|
||||||
f.set_readonly('status_code')
|
f.set_readonly('status_code')
|
||||||
f.set_renderer('status_code', self.make_status_renderer(self.model_class.STATUS))
|
f.set_renderer('status_code', self.make_status_renderer(self.model_class.STATUS))
|
||||||
f.set_label('status_code', "Status")
|
f.set_label('status_code', "Status")
|
||||||
|
|
Loading…
Reference in a new issue