Make CORE key fields readonly when viewing equity payment

This commit is contained in:
Lance Edgar 2023-09-16 13:08:59 -05:00
parent 5a20904f79
commit f540dfce43

View file

@ -130,11 +130,21 @@ class MemberEquityPaymentViewSupplement(ViewSupplement):
g.set_sorter('corepos_datetime', model.CoreMemberEquityPayment.corepos_datetime) g.set_sorter('corepos_datetime', model.CoreMemberEquityPayment.corepos_datetime)
def configure_form(self, f): def configure_form(self, f):
f.append('corepos_card_number') f.append('corepos_card_number')
f.set_readonly('corepos_card_number')
f.append('corepos_transaction_number') f.append('corepos_transaction_number')
f.set_readonly('corepos_transaction_number')
f.append('corepos_transaction_id') f.append('corepos_transaction_id')
f.set_readonly('corepos_transaction_id')
f.append('corepos_department_number') f.append('corepos_department_number')
f.set_readonly('corepos_department_number')
f.append('corepos_datetime') f.append('corepos_datetime')
f.set_readonly('corepos_datetime')
def get_version_child_classes(self): def get_version_child_classes(self):
model = self.model model = self.model